Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.13 kernel, udev and Nvidia module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gattu_marrudu
n00b
n00b


Joined: 30 Dec 2004
Posts: 65
Location: Sardinia, Italy

PostPosted: Wed Oct 12, 2005 7:10 am    Post subject: 2.6.13 kernel, udev and Nvidia module Reply with quote

I have read some previous forums about this issue, but after switching to udev (Kernel 2.6.13-gentoo-r3/i386, nvidia kernel module) to manage my devices, I still cannot start my X server. I re-emerged nvidia-kernel and nvidia-glx, recompiled the kernel, the X server always answers "failed to initialize NVIDIA kernel module".
The nvidia and agpgart modules are properly loaded, but I cannot find any /dev/nvidia* entry on my filesystem.
Any hints?
gm
Back to top
View user's profile Send private message
H4wk
n00b
n00b


Joined: 09 Oct 2005
Posts: 16

PostPosted: Wed Oct 12, 2005 7:28 am    Post subject: Reply with quote

did you follow the guide? Its possible you didn't add a paramater to your kernel in GRUB/LILO.

http://www.gentoo.org/doc/en/udev-guide.xml
Back to top
View user's profile Send private message
gattu_marrudu
n00b
n00b


Joined: 30 Dec 2004
Posts: 65
Location: Sardinia, Italy

PostPosted: Wed Oct 12, 2005 8:14 am    Post subject: Reply with quote

Yes, I did. I modified the /etc/conf.d/rc file and added the entries "udev nodevfs devfs=nomount. In addition, if I remove these entries, I'm no longer able to boot with devfs.
Back to top
View user's profile Send private message
hede
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 160
Location: Siegen/Germany

PostPosted: Wed Oct 12, 2005 9:11 am    Post subject: Reply with quote

if you don't want an udev-only-system a workaround would be to create these nodes manually:
Code:
/sbin/NVmakedevices.sh

(if you have RC_DEVICE_TARBALL="no" in your /etc/conf.d/rc this won't work after reboot)

btw: i'm writing this cause i'm searching a solution too and im expecting some answers here forwarded to my email ;-)
_________________
Der süsse Pinguin ist mir lieber als die kleinen weichen, die einem nur kaputte Fenster verkaufen
Back to top
View user's profile Send private message
el_chavo
n00b
n00b


Joined: 27 Jun 2005
Posts: 18

PostPosted: Mon Oct 17, 2005 12:38 am    Post subject: Reply with quote

Running /sbin/NVmakedevices.sh solved my problem, though I've wasted quite a few hours already trying to figure that out! Thanks for the tip.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Mon Oct 17, 2005 4:58 am    Post subject: Reply with quote

hede wrote:
if you don't want an udev-only-system a workaround would be to create these nodes manually:
Code:
/sbin/NVmakedevices.sh

(if you have RC_DEVICE_TARBALL="no" in your /etc/conf.d/rc this won't work after reboot)

btw: i'm writing this cause i'm searching a solution too and im expecting some answers here forwarded to my email ;-)


You have to do it on udev-only system as well. Since 2.6.13 sysfs seems unable to handle non-GPL devices
Back to top
View user's profile Send private message
raf
Apprentice
Apprentice


Joined: 16 Jan 2005
Posts: 158

PostPosted: Mon Oct 17, 2005 1:20 pm    Post subject: Reply with quote

Hi,

I'm running 2.6.13-gentoo-r3 with nvidia-7676. I have everything running perfectly, X, fb, suspend to disk, udev, glx, everything rock solid. I didn't have to do anything special to get the nvidia module to load. I did have to hack nv.c in the nvidia binary drivers to get suspend to disk to work but that's it. That's off topic but I can provide the patch and e-build I made for anyone who wants it.

I remember getting an error similar to "failed to initialize NVIDIA kernel module" if I tried to use fb-nvidia. If I just use the standard vesa-tng and fb, plus console fb everything worked fine.

Please let me know if I can help out here. Perhaps post some config files?
_________________
-Raf
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Mon Oct 17, 2005 10:06 pm    Post subject: Reply with quote

raf wrote:
Hi,

I'm running 2.6.13-gentoo-r3 with nvidia-7676. I have everything running perfectly, X, fb, suspend to disk, udev, glx, everything rock solid. I didn't have to do anything special to get the nvidia module to load. I did have to hack nv.c in the nvidia binary drivers to get suspend to disk to work but that's it. That's off topic but I can provide the patch and e-build I made for anyone who wants it.

I remember getting an error similar to "failed to initialize NVIDIA kernel module" if I tried to use fb-nvidia. If I just use the standard vesa-tng and fb, plus console fb everything worked fine.

Please let me know if I can help out here. Perhaps post some config files?


if you set RC_DEVICE_TARBALL="no" in /etc/conf.d/rc and delete /dev/nvidia* devices,
while they be recreated on the next reboot (or nvidia module reload) ?

I tried 7676 on my amd64 machine, and the devices are not created under 2.6.13
Back to top
View user's profile Send private message
raf
Apprentice
Apprentice


Joined: 16 Jan 2005
Posts: 158

PostPosted: Tue Oct 18, 2005 1:13 am    Post subject: Reply with quote

I guess I didn't read this thread close enough when I posted. I am running udev, but not a udev-only system. I stopped the udev guide at:
Quote:
If you want to use the udev-tweaks Gentoo added to make your life comfortable, then read no more
I don't want to make my life more complicated then it has to be.
_________________
-Raf
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Tue Oct 18, 2005 2:10 am    Post subject: Reply with quote

raf wrote:
I guess I didn't read this thread close enough when I posted. I am running udev, but not a udev-only system. I stopped the udev guide at:
Quote:
If you want to use the udev-tweaks Gentoo added to make your life comfortable, then read no more
I don't want to make my life more complicated then it has to be.


Sure :D
The only issue with nvidia and 2.6.13 seems to be that the /dev/nvidia0 and /dev/nvidiactl devices are not created automatically when nvidia module is loaded. When they are created one way or another (by hand, or preserved from previous run through device tarball) everything is working fine.
Why I asked is that there were some reports of 7676 working (i.e creating devices), I was wondering whether this is really the case, since they did not do it for me, and from explanation in different forums - they should not.
Back to top
View user's profile Send private message
$moke
n00b
n00b


Joined: 10 May 2005
Posts: 17

PostPosted: Tue Oct 18, 2005 6:22 am    Post subject: Reply with quote

See HERE!
Hope works for you too!!!
_________________
There is nothing that can`t be done with Linux, you only have to figure it out!!!
Back to top
View user's profile Send private message
roguetoad
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2005
Posts: 124
Location: Office chair

PostPosted: Mon Oct 24, 2005 8:18 pm    Post subject: Post patch for nv.c to fix suspend please! Reply with quote

My laptop suspends to disk ok, but dies a horrible "must push the power button as the only way to shut it off" death on resume from hibernation. Who here had the patch that helps the nvidia suspend to disk do so more correctly? Please post modded ebuild + patch?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum