LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-01-2004, 12:50 AM   #1
dude_a_b_c
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
Lightbulb solved -- 'nvidia' module doesn't persist for nVidia GeForce2 DDR card


The system is Mandrake 10.0, kernel 2.6.3-4mdk

I installed the nvidia driver from the pkg file from their site (using 5336 version)
After installation, I changed XF86Config-4, replacing 'nv' with 'nvidia' in the drivers section (as listed in the README)
Issuing startx from the console worked fine.

But... after a reboot, the nvidia kernel module is not loaded again.
From the forum, I learnt that "modprobe nvidia" will load the module. This works fine.

How do I make this persist? There are similar posts, but I am unclear as to what I have to write in /etc/modules.conf to ensure that the nvidia module is loaded by the kernel everytime?

I looked at the /etc/modules.conf file from Mdk 9.1..

probeall scsi_hostadapter usb-storage ide-scsi
probeall usb-interface usb-uhci
above snd-cmipci snd-pcm-oss
alias sound-slot-0 snd-cmipci
alias /dev/nvidia* nvidia

This is the /etc/modules.conf in 10.0:

probeall scsi_hostadapter imm ppa
probeall usb-interface usb-uhci
above snd-cmipci snd-pcm-oss
alias sound-slot-0 cmpci
alias /dev/nvidia* nvidia #####

The last line marked ##### was added by me, but still a manual modprobe is required.

Any advice appreciated.
Thanks in advance.

Last edited by dude_a_b_c; 04-02-2004 at 02:39 AM.
 
Old 04-01-2004, 08:55 PM   #2
dude_a_b_c
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Googling and stumbling around a bit, here's what I understand so far:

1. the nvidia kernel module is /lib/modules/`uname -r`/kernel/drivers/video/nvidia.ko , ascertained after doing a modprobe --nv nvidia

2. modprobe depends on entries in the following files: /etc/modules.conf , /etc/modprobe.conf , /etc/modules

However I am still not able to follow how to load the nvidia module at startup What should be entered/changed where to enable this?

Any advice or suggestions gratefully accepted.

Thanks and regards.
 
Old 04-02-2004, 02:37 AM   #3
dude_a_b_c
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thumbs up

Solution:

Putting an entry for the module in `/etc/modprobe.preload` is required for kernels 2.5 and above.
I was making the entry in /etc/modules, but kernel 2.6.x does not read that...

This is what the file looks like on mdk 10.0 on my system now...

# /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

scsi_hostadapter
intel-agp
nvidia

I hope this is helpful to others also!
 
Old 04-02-2004, 08:51 AM   #4
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30
Ethier turn of hardrake at startup or update harddrake. This is a known problem
 
Old 04-02-2004, 10:31 AM   #5
Rnd227
Member
 
Registered: Mar 2004
Location: Copenhagen, Denmark
Distribution: Mandrake 10.1 Community
Posts: 39

Rep: Reputation: 15
Funny...

I also use that same nvidia driver, and I don't have to load it manually, but it is not in /etc/modprobe.preload

Works, though...
 
Old 04-18-2004, 05:59 AM   #6
Flatline23
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
This may not be relevant to Mandrake, but it worked for me...

I upgraded my RedHat 9.0 from 2.4.22 to kernel 2.6.5, and then installed the latest nvidia drivers (5536), but it wouldnt load the nvidia module automatically anymore... I put it in rc.local and it worked ok but it still bugged me. I kept playing with other things and found no modules were loading automatically anymore... I thought I messed up my kernel compile, but I did some reading. In the FAQ for the module-init-tools-3.0, it says:

Quote:
Q) I'm using RedHat and modules don't autoload any more.
A) RedHat turns module autoloading off if /proc/ksyms isn't found.
Change line 337 of /etc/rc.d/rc.sysinit from:

if ! grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f /proc/ksyms ]; then

to

if ! grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f /proc/modules ]; then
My rc.sysinit wasnt exactly like that, but I found the line that was looking for ksyms and changed it to modules. Removed my modprobe from the rc.local (startup script), and rebooted. Lo and behold, the nvidia module loaded automatically at boot when X started, and so did a bunch of other things that had stopped working.

Hope this helps.
 
Old 05-18-2004, 07:13 PM   #7
refowe
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Talking no problem

Hi there,

to autoload the nvidia driver is verry simple. Fist at all you have to understand how the modules.conf / modprobe.conf works. Then you add a line : alias char-major 195 nvidia ... have a look at u're /usr/src/linux-`uname-r`/Documentation/devices.txt to find out more about char & block device major and minor numbers - it is usefull to mknod too ;-)

have a lot of fun but from the scratch !

--
WHOOPS: Posted to the wrong thead - but maybe this helps on you're distribution

Last edited by refowe; 05-18-2004 at 07:15 PM.
 
Old 05-19-2004, 12:00 AM   #8
Rnd227
Member
 
Registered: Mar 2004
Location: Copenhagen, Denmark
Distribution: Mandrake 10.1 Community
Posts: 39

Rep: Reputation: 15
nvidia driver "disappears" when network change

I have this strange problem : every time I update my network configuration (to change from dhcp client to a static IP, or whatever), the next time I want to start X, itwon't start, and tells me of en error in /etc/X11/XF86Config-4, with "no screen found".

As far as I know, my XFConfig-4 has *not* been modified a bit.

What I have to do to get X to start again, is to reinstall the nvidia driver.

And the punchline is : I don't have to modify XFConfig-4, which proves it was not changed.

Does anyone have an idea of what and why ?

I'm running Mandrake 10 Community.

Last edited by Rnd227; 05-19-2004 at 12:01 AM.
 
Old 05-19-2004, 02:50 PM   #9
dotT
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: Mandrake 9.2
Posts: 17

Rep: Reputation: 0
I put 'alias char-major-195 nvidia' in /etc/modules.conf.
But it didnt work until i put 'nvidia' in /etc/modprobe.preload. As required for kernels 2.5 and above.

Nvidia loads at every boot now.
 
  


Reply



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
DVI LCD with nVidia GeForce2 MX400 video card? Utah Fedora 0 03-22-2005 11:02 PM
Nvidia FX 5200 PCI Card (System bus / DDR Ram Question) sergeantroach Linux - Hardware 6 02-08-2004 12:05 AM
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Stan the caddy Linux - Hardware 8 01-18-2004 04:21 PM
nVidia geforce fx5200 128 ddr 8x agp video card mcslinux Linux - Hardware 1 11-04-2003 11:26 AM
(EE) NVIDIA (0) Failed to initialize the NVIDIA kernel module Isjhe Mandriva 14 09-25-2003 09:29 PM

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

All times are GMT -5. The time now is 12:28 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