You are not logged in.

#1 2009-01-05 23:49:48

big_gie
Member
Registered: 2005-01-19
Posts: 637

Preventing modules loading (bluetooth)

Hi,

I want to speed up the boot process (Asus EeePC 1000) by disabling autoload of modules. I've included already in the kernel the modules I know I need.

I still have a couple left and I like your advice.

Here is my lsmod:

Module                  Size  Used by
ipv6                  215592  10 
snd_seq_oss            24732  0 
snd_seq_midi_event      5632  1 snd_seq_oss
snd_seq                40256  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          5900  2 snd_seq_oss,snd_seq
video                  16272  0 
output                  2688  1 video
iTCO_wdt                9764  0 
iTCO_vendor_support     3076  1 iTCO_wdt
i2c_i801                8080  0 
i2c_core               17684  1 i2c_i801
serio_raw               4868  0 
psmouse                32016  0 
i915                   25856  2 
rt2860sta             430528  1 
atl1e                  27668  0 
snd_pcm_oss            32128  0 
snd_mixer_oss          12160  1 snd_pcm_oss
ata_generic             4740  0

Here is the relevant rc.conf section:

MOD_AUTOLOAD="no"
MODULES=(
!bluetooth !uvcvideo \
rt2860 rt2860sta atl1e \
snd-pcm-oss pciehp i915 psmouse serio_raw \
i2c_i801 i2c_core iTCO_wdt iTCO_vendor_support \
video output snd_seq_oss snd_seq_midi_event snd_seq \
snd_seq_device atl1e snd_pcm_oss snd_mixer_oss ata_generic \
)

As you can see, I disable autoload and put all the modules given by lsmod when autoload was "yes".

Two problems here: bluetooth has been loaded even if I blacklisted it. Also, lsmod report ipv6 even though it is not in the MODULES array.

Is someething else loading these modules??

My DE is xfce.

Thank you!

Offline

#2 2009-01-06 00:13:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Preventing modules loading (bluetooth)

To prevent modules being loaded by anything, blacklist them in /etc/modprobe.conf, or /etc/modprobe.d/some_file. See man modprobe.conf.

AFAIR there's also a wiki page about disabling ipv6.

Offline

#3 2009-01-06 00:21:42

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Preventing modules loading (bluetooth)

Thanx tom wink I disabled the ipv6 module: http://wiki.archlinux.org/index.php/IPv … the_Module

As for bluetooth, I did blacklisted it with !bluetooth.... Could it be that it is loaded as an alias too?

Offline

#4 2009-01-07 14:48:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Preventing modules loading (bluetooth)

It's being loaded at some stage, by something (I know, very helpful.. tongue )

/etc/rc.conf blacklisting works at boot-time only. /etc/modprobe.conf blacklisting works all the time - hence the suggestion.

Offline

#5 2009-01-07 15:38:06

chimeric
Member
From: Munich, Germany
Registered: 2007-10-07
Posts: 254
Website

Re: Preventing modules loading (bluetooth)

tomk wrote:

/etc/rc.conf blacklisting works at boot-time only

Hmmm, the Wiki [1] says something different

[...] Once blacklisted, udev will never load that module. Not at boot-time or later on when a hotplug event is received. [...]

what's correct (just curious)?

[1] http://wiki.archlinux.org/index.php/Ude … ng_Modules

Offline

Board footer

Powered by FluxBB