LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   modprobe requisition... (https://www.linuxquestions.org/questions/linux-software-2/modprobe-requisition-265809/)

coremax 12-13-2004 03:15 AM

modprobe requisition...
 
Hi Dear Friends,

I installed Mandrake 10.1 and successfully set my nvidia fx5200. It's working if i enter that command "modprobe nvidia" after every reboot. So, of course, i don't wanna enter that command everytime :) How can i have that command automated? How can it probed every linux starts?

Thank a lot...

b0uncer 12-13-2004 03:30 AM

I'm not sure what kind of files Mandrake uses for this task (many distros use somekind of rc-files) but as a first-aid you could open /etc/rc.local if it exists and add there that modprobe line. that helps, but is perhaps not the most elegant way...so find out in which file Mandrake configures the modules to be loaded (is it somekind of rc.conf or what?) and after you've found out, remove that line from rc.local and add it to the "right" file.

adding the line to rc.local ought to work (rc.local is run after all the other startup scripts) but really, find out how Mandrake handles modules at boot :)

kidcharles 01-07-2005 09:44 PM

I was wondering if this problem had been resolved, i.e. how can Mandrake 10.1 be set up to load the nvidia module at boot? I have the same problem where I can manually load the nvidia driver and it works fine, but it doesn't do so automatically at startup. Thanks.

Travers 01-07-2005 10:20 PM

Perhaps you have the file /etc/modules.autoload.d/kernel-2.6? If so, just add "nvidia" to the list.

Lakota 01-08-2005 02:46 AM

I had to add nvidia to /etc/modprobe.preload in Mandrake 10.0 as well after I had upgraded 10.0 to a newer kernel, or it would boot with nv driver. Ignore the "bttv" entry, that is to load my tv tuner card at start up. (Some others seem to find that not to work so here is the thread I followed): http://www.linuxquestions.org/questi...hreadid=266084

This is what my modprobe.preload file looks like.
Code:

# /etc/modprobe.preload: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules

nvidia
bttv
sis-agp

Also for those new to editing config files that read this thread. Never delete lines you think you don't need, comment them out instead. If you think you may not remember what you have added, you can make a note to yourself above your additions and comment it out. Just thought I would add that as I learned the hard way by deleting some important stuff in the past and spent tons of time googling to find samples of those config files to fix them after.

coremax 01-13-2005 01:08 AM

Actually, if we login as root and use X as root, there is no problem :) no need to enter "modprobe nvidia" command then... just i give up login as another user. I'm using root only :)

Yes, i'm newbie... :)

kidcharles 01-21-2005 03:57 PM

I'm no expert, but you may not want to log into X as root routinely. It may give permissions to things that could alter important files accidently. I could be wrong about that though. It's usually good practice to only use the root login when necessary.

By the way, adding "nvidia" to /etc/modprobe.preload did work for me, my drivers load fine now.

infinate|staff 02-04-2005 03:53 AM

great
 
very helpful, thanks :)


All times are GMT -5. The time now is 10:58 PM.