Loading Modules at startup - turning off hotplug?
If I a lsmod with hotplugging enabled then to an lsmod with hotplug disabled... can I just copy all of the things from the hotplugged lsmod into rclocal or something like that... then turn off hotplugging until I get some new hardware etc??
Or is there a totally different way to be able to turn off hotplugging and get everything to work? thanks in advance EDIT: I am using kernel 2.6.10 and 10.1 release. I have a usb wireless card and a usb cdr. |
you can just disable hotplug and load the modules in /etc/rc.d/rc.modules.
that will work. egag |
im not really sure what you are trying to do.
but if you wanna turnoff hotplug, pass the nohotplug flag to your kernel from LILO, or whatever loader you use alternativly, remove the exectuable permission from the /etc/rc.d/rc.hotplu script it can be done this way su chmod 644 /etc/rc.d/rc.hotplu |
Quote:
|
hotplug is searching hardware everytime you boot..
compared with M$ it's very fast but still, searching takes a while. loading modules goes very fast so, if you don't use hotplug, the boot process is much faster. egag |
what is the safest was to turn hotplug off... and how would I turn it back on also.. just in case ;)
|
Quote:
As root, chmod -x /etc/rc.d/rc/hotplug To turn it back on: As root, chmod +x /etc/rc.d/rc.hotplug |
ok.. i added the following to my rc.module file (put them at the bottom) I arrived at that list by lsmod with hotplut on.. then lsmod with hotplug off.. and the following were the ones not loaded with hotplug off..
2 problems: 1. Everything works except my sound card** Anyone have an ideas on why the sound card won't load?? 2. At boot.. there is a pause where something is determining the mac address.. i am guessing it has something to do with dhcpcd wlan0 (wireless startup) I don't think it needs to be done until I start the wireless card later though.. how do i turn that off at boot? thanks for any help Code:
/sbin/modprobe snd_pcm_oss |
Quote:
|
thanks.. I have question 2 worked out now
Anyone, want to take a shot at question 1?? (2 posts back to see question) |
i can't tell from your post above whether those modules you list are loaded now or not...but half of them are your sound modules and if you want sound they need to be loaded. ie, when youtype lsmod you need to see all those snd_ modules.
if that's already the case, then maybe try running alsamixer alsactl store |
are all the snd-modules loaded ?
also maybe this is caused by rc.alsa. I believe it's executed by rc.M . take a look at that script, i think you should not load all snd-modules in rc.modules, but leave some of it to rc.alsa ( i guess it's the oss-emulation modules , not sure... ) egag |
lsmod shows that they are all loaded.. I checked and rechecked this...
I tried commenting out the ones that were listed in the rc.alsa file.. but that didn't help either. I tried to run alsamixer it failed with this output Code:
bash-3.00# alsamixer One other question.. I noticed I have a rc.modules file and a rc.modules2.6.10 ...which one should I be editing?? they appear to have been created at the same time... that being when I upgraded the kernel to 2.6 .. I have just been editing rc.modules |
at boot the rc.modules is called from rc.S.
so you edited the correct file ( else the modules wouldn't load i guess... ) maybe some of your device-nodes in /dev/sound are missing. ? i have : -------- egag@Slack21:~$ ls /dev/sound/* /dev/sound/adsp /dev/sound/audio /dev/sound/dsp /dev/sound/mixer /dev/sound/mixer1 egag@Slack21:~$ -------- check if they exist.....? egag |
no they don't exist.. in fact the directory /dev/sound doesn't exist...
|
All times are GMT -5. The time now is 11:39 PM. |