LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2005, 06:20 PM   #1
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
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?
 
Old 02-11-2005, 06:40 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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.
 
Old 02-11-2005, 06:40 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
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
 
Old 02-11-2005, 06:46 PM   #4
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
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?
 
Old 02-11-2005, 06:50 PM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
No those are your alsa modules, and I'd advise leaving them be unless you would like to wreak havoc on your sound.
good luck.
 
Old 02-11-2005, 06:51 PM   #6
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
all of them? wow!
 
Old 02-11-2005, 06:56 PM   #7
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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.
good luck.
 
Old 02-11-2005, 06:58 PM   #8
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
hehe, alright thanks man. i appreciate your help!
 
Old 02-11-2005, 07:02 PM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Glad to be of service sir. Take care.
good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A few quick questions... gflores Linux - Newbie 3 01-10-2005 01:47 AM
Quick Question: permanently remove modules? 000 Linux - Newbie 2 12-31-2003 07:26 PM
A quick question reguading modules, and how to activate. Cecil Linux - Software 3 06-23-2003 02:20 AM
Two quick questions rand07 Linux - Newbie 1 12-09-2001 03:57 AM
Two quick questions. Will Linux - General 4 11-09-2001 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration