LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   quick questions about modules (https://www.linuxquestions.org/questions/slackware-14/quick-questions-about-modules-289081/)

mcd 02-11-2005 05:20 PM

quick questions about modules
 
how exactly does /etc/rc.d/rc.modules fit into things? when it's run at startup it consults /lib/modules/$REALEASE/modules.dep (that's what it says anyway), and loads any modules listed there? is that correct?

i'm asking because i'm trying to clean out my lsmod list. i've got some stuff i don't need, like agpgart for instance. i found that in rc.modules and commented out the line, so that's ok. but lsmod lists a bunch of OSS modules, and i'm pretty sure i don't need those. they're not listed in rc.modules though...in fact, the only uncommented line is apm. so i can't clean any more out by editing rc.modules.

now i've looked at /lib/modules/2.4.26/modules.dep and it's a very long file. there are a lot of modules listed that i don't recognize. as i understand it, modules.dep is created when you compile your kernel (make modules, make modules install), so i'm not even sure i should be editing it in the first place (i haven't touched it yet). is that the way to remove unwanted modules? or do i need to generate a new modules.dep file by recompiling the kernel?

Peacedog 02-11-2005 05:40 PM

What does lsmod look like? You shouldn't have any oss modules loaded for any other sound device with the exception of the card you have.
good luck.

egag 02-11-2005 05:40 PM

hi there,

i think those OSS modules are loaded by hotplug.
if you put them on the blacklist ( /etc/hotplug/blacklist : just add the names to the list )
then they won't load anymore on boot.

egag

mcd 02-11-2005 05:46 PM

root@lightstar $ lsmod
Module Size Used by Not tainted
usb-storage 66176 0
snd-pcm-oss 37736 0 (unused)
snd-mixer-oss 12504 0 [snd-pcm-oss]
uhci 24444 0 (unused)
usbcore 59308 1 [usb-storage uhci]
snd-intel8x0 18924 0
snd-ac97-codec 49500 0 [snd-intel8x0]
gameport 1420 0 [snd-intel8x0]
snd-pcm 56072 0 [snd-pcm-oss snd-intel8x0]
snd-timer 13604 0 [snd-pcm]
snd-page-alloc 6328 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3200 0 [snd-intel8x0]
snd-rawmidi 12740 0 [snd-mpu401-uart]
snd-seq-device 3888 0 [snd-rawmidi]
snd 30852 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3396 4 [snd]
3c59x 25648 1
orinoco_cs 4244 0
orinoco 33076 0 [orinoco_cs]
hermes 5668 0 [orinoco_cs orinoco]
ds 6548 3 [orinoco_cs]
yenta_socket 10336 3
pcmcia_core 39972 0 [orinoco_cs ds yenta_socket]
ide-scsi 9328 0
agpgart 43940 0 (unused)


so i removed ide-scsi and agpgart from rc.modules, i don't know what uhci is, or usbstorage, but it looks like those two and usbcore are somehow all connected. i have a usb jumpdrive which i'd like to keep using, so i'll probably leave them until i can verify exactly what they do. you can see though what i meant about sound modules. they're not all OSS like i thought they were, but easily 3/4 of all those entries are sound modules....i must be able to get rid of some of those, right?

Peacedog 02-11-2005 05:50 PM

No those are your alsa modules, and I'd advise leaving them be unless you would like to wreak havoc on your sound. :D
good luck.

mcd 02-11-2005 05:51 PM

all of them? wow!

Peacedog 02-11-2005 05:56 PM

Alsa uses different modules for different devices and features. I'm not 100% certain that you need all of them, but, if all of your sound functions are working I'd leave them alone. On the other hand, if you don't break anything, you won't know how to fix anything. :D
good luck.

mcd 02-11-2005 05:58 PM

hehe, alright thanks man. i appreciate your help!

Peacedog 02-11-2005 06:02 PM

Glad to be of service sir. Take care.
good luck.


All times are GMT -5. The time now is 05:53 AM.