You are not logged in.

#1 2008-11-16 20:08:50

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

[SOLVED] how do i prevent my souncard modules from being loaded ?

hello there,

i'm setting up a very small server out of an old computer. it will mainly be used as a printing server (it ha no keyboard, screen, mouse and is remotely accessed via ssh). because it shouldn't be used very often (we rarely print stuff here - i plan to power it on/off almost exclusively for this purpose), i need it to boot quickly. Many unused peripherals are disabled (sound is one of them, it is disabled in bios), still i think i can disable some more…

i still have some sound modules loaded at boot time, and i don't know how to get rid of them. Check out my lsmod :

# lsmod
Module                  Size  Used by
ext2                   66056  1
thermal                17052  0
processor              34732  1 thermal
fan                     6148  0
button                  7824  0
battery                12036  0
ac                      6020  0
snd_seq_oss            31872  0
snd_seq_midi_event      8192  1 snd_seq_oss
snd_seq                49968  4 snd_seq_oss,snd_seq_midi_event
snd_timer              21384  1 snd_seq
snd_seq_device          8332  2 snd_seq_oss,snd_seq
snd                    50724  4 snd_seq_oss,snd_seq,snd_timer,snd_seq_device
soundcore               8160  1 snd
slhc                    7680  0
sis900                 21248  0
ne2k_pci               10336  0
mii                     6528  1 sis900
8390                   10112  1 ne2k_pci
parport_pc             36804  1
lp                     11108  0
parport                33004  2 parport_pc,lp
psmouse                38288  0
rtc_cmos               11424  0
rtc_core               17564  1 rtc_cmos
rtc_lib                 4480  1 rtc_core
ext3                  126472  1
jbd                    46100  1 ext3
mbcache                 8708  2 ext2,ext3
sr_mod                 16708  0
cdrom                  35360  1 sr_mod
sd_mod                 27160  4
ata_generic             6788  0
pata_sis               12036  3
pata_acpi               6016  0
libata                152992  3 ata_generic,pata_sis,pata_acpi
scsi_mod               96460  3 sr_mod,sd_mod,libata
dock                    9488  1 libata

and my rc.conf :

MOD_AUTOLOAD="no"
#MOD_BLACKLIST=() #deprecated
MODULES=(psmouse lp parport parport_pc 8390 mii ne2k-pci sis900 slhc !ac97_bus !snd !snd-mixer-oss !snd-pcm-oss snd-seq-oss !snd-seq-device !snd-seq-midi-event !snd-seq !snd-page-alloc !snd-pcm !snd-rawmidi !snd-timer !snd !snd-mpu401-uart !snd-mpu401 !snd-ac97-codec !snd-trident !soundcore !snd-util-mem)

why do these snd* modules keep loading ??

also, if you have advices to get my little server as light as possible, i'd be glad to read them.

thanks.

Last edited by brazzmonkey (2008-11-16 20:32:41)


what goes up must come down

Offline

#2 2008-11-16 20:14:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] how do i prevent my souncard modules from being loaded ?

Replaced stupid post with this less stupid post....

Last edited by skottish (2008-11-16 20:19:47)

Offline

#3 2008-11-16 20:16:03

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [SOLVED] how do i prevent my souncard modules from being loaded ?

1. Check if it's possible to disable the soundcard in bios -- that would be the cleanest solution.
2. One ofthe ^snd modules in your rc.conf is missing the exclamation mark.
3. Sometimes after blacklisting modules in rc.conf it is also necessary to rebuild boot images (mkinitcpio -p kernel26) -- since mkinitcpio, if I recall correctly, checks the MODULES array in rc.conf when decides which modules ought to be built into the boot image.

Offline

#4 2008-11-16 20:29:24

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [SOLVED] how do i prevent my souncard modules from being loaded ?

1. done already
2. true, that was actually the culprit (shame on me, i've checked it twice before posting - looks like my eyes are tired…)
3. not needed because of 2.

thanks for your eagle eyes fwojciec !


what goes up must come down

Offline

Board footer

Powered by FluxBB