LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Disable Modules on startup (https://www.linuxquestions.org/questions/slackware-14/disable-modules-on-startup-280877/)

Kane2002 01-22-2005 11:44 AM

Disable Modules on startup
 
hi
well ive managed to get my sound working in slackware 10

using the nvsound drivers.

but the problem i have now is that everytime i reboot i have to type

/etc/init.d/alsasound stop

then

modprobe nvsound

before i can have sound working.

im pretty much new and dont know much about modules. but looked in /etc/modules.conf and it was blank.

and looked in the rc.modules ...but i couldnt see anything related to alsa being loaded.

so what do i need to do to stop alsa from loading and automatically load nvsound?

thanks alot guys
Kane

egag 01-22-2005 11:49 AM

you could put them in /etc/hotplug/blacklist.
that will prevent loading them by hotplug

and to load the other module at boot, add a line like
" /sbin/modprobe nvsound "
in rc.modules.

egag

Kane2002 01-22-2005 12:00 PM

sorry to be so n00bish .. but what would i need to add to the blacklist file?

i have no idea what im looking for :p

but have added the nvsound to the modules file :)

egag 01-22-2005 12:06 PM

look at the output of " $lsmod "
all modules starting with " snd " are alsa.

but i remember there was another way to stop alsa but i wonder where i saw that.......

maybe someone else can answer that.
meanwhile you could check if the blacklist option works for you....

egag

sybille 01-22-2005 12:14 PM

In /etc/rc.d, do you find a file called "rc.alsa"? Is it executable?

If so, then I'd think that this is what is loading the alsa drivers at boot. You could prevent this by changing the permissions of the rc.alsa file, so that it no longer can be executed.

Kane2002 01-22-2005 12:19 PM

^^ yeh i think i do remember seeing a rc.alsa in there

i'll have a look later.

and so to change it so it cant be execute i just use chmod 0666 ?

(im still learning :study: )

thanks
Kane

egag 01-22-2005 12:26 PM

me to......
guess that's it.
thanks sybille

egag

sybille 01-22-2005 12:31 PM

Well, I'm still learning, too.

In fact, I find the whole thing with permissions kind of confusing and I often resort to setting them ROX-Filer, which I suppose some of you out there will find amusing...

However, I've also read this HOWTO:
http://www.linuxquestions.org/questi...ticle&artid=20

In order to remove the permission to execute for owner, group, and everyone else, this is what I think you want:
Code:

chmod 600 /etc/rc.d/rc.alsa
I sure someone will be along to straighten things out if that isn't correct.
:)

egag 01-22-2005 12:40 PM

or you can use :

#chmod -x /etc/rc.d/rc.alsa

egag

Kane2002 01-22-2005 04:06 PM

Quote:

Originally posted by egag
or you can use :

#chmod -x /etc/rc.d/rc.alsa

egag

thanks that worked fine

its working great now :D

(starting to love linux hehe)

although i get a warning message, i got the same message just after i installed the drivers. and its:
/something/nvsound.o will taint the kernell: no license

i still works fine ...but does anyone know what this means? and if i cant stop it?

thanks once again everyone

Kane

egag 01-22-2005 04:26 PM

------------
/something/nvsound.o will taint the kernell: no license
------------

that's just a message. ( don't think it's bad....)

egag


All times are GMT -5. The time now is 06:37 PM.