Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia problems on amd64 2005.0 [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Mon May 02, 2005 8:12 am    Post subject: nvidia problems on amd64 2005.0 [SOLVED] Reply with quote

I emerged xorg-x11 yesterday and everything worked fine,
then I emerged nvidia-glx and modified xorg.conf as written in
the docs under desktop systems on gentoo.org.

I get:

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.

But no error message about, not in the xorg log file either.

Any ideas? I've searched the forum for nvidia but most people seem to get some kind of error message or code. I just get "failed to initialize".
And oh, the nvidia module is loaded (w modprobe now)


Last edited by Jahoviah on Tue May 10, 2005 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
kiksen
Guru
Guru


Joined: 24 Jun 2002
Posts: 401
Location: Denmark

PostPosted: Mon May 02, 2005 5:41 pm    Post subject: Reply with quote

you have to emerge nvidia-kernel too (and load in in /etc/modules.autoload.d/kernel-2.6)

/kiksen
Back to top
View user's profile Send private message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Wed May 04, 2005 6:56 am    Post subject: Reply with quote

kiksen wrote:
you have to emerge nvidia-kernel too (and load in in /etc/modules.autoload.d/kernel-2.6)

/kiksen


When I emerged nvidia-glx, the nvidia-kernel was emerged too since glx is dependent of kernel. Also I have added nvidia to modules.autoload.d/kernel-2.6. As I said, I have followed the docs under gentoo.org regarding desktops / nvidia.

The module is loaded but I still get this error.
Back to top
View user's profile Send private message
c0bblers
Guru
Guru


Joined: 28 Mar 2003
Posts: 403

PostPosted: Wed May 04, 2005 9:44 am    Post subject: Reply with quote

Hi,

Have you checked the permissions for the /dev/nvidia* device nodes? If they're not visible to X then it may think that the module is not loaded. Also, check your system logs to see that the module has loaded properly and that the above device nodes exist.

Cheers,
James
Back to top
View user's profile Send private message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Wed May 04, 2005 9:53 am    Post subject: Reply with quote

c0bblers wrote:
Hi,

Have you checked the permissions for the /dev/nvidia* device nodes? If they're not visible to X then it may think that the module is not loaded. Also, check your system logs to see that the module has loaded properly and that the above device nodes exist.

Cheers,
James


A newbie question, but what permissions should be given to these device nodes in order for X to get access to them? Or is it related to the user? Because as of now I'm logging in as root because I'm in the middle of setting up the system and I thought I'd wait to create a regular user (I usually do that straight from the beginning as one should do) and the root user should have access to everything.

Also, all I can see (with dmesg) is that the module is loaded ok, but is there any other log with more detailed info?
Back to top
View user's profile Send private message
c0bblers
Guru
Guru


Joined: 28 Mar 2003
Posts: 403

PostPosted: Wed May 04, 2005 10:11 am    Post subject: Reply with quote

Jahoviah wrote:
c0bblers wrote:
Hi,

Have you checked the permissions for the /dev/nvidia* device nodes? If they're not visible to X then it may think that the module is not loaded. Also, check your system logs to see that the module has loaded properly and that the above device nodes exist.

Cheers,
James


A newbie question, but what permissions should be given to these device nodes in order for X to get access to them? Or is it related to the user? Because as of now I'm logging in as root because I'm in the middle of setting up the system and I thought I'd wait to create a regular user (I usually do that straight from the beginning as one should do) and the root user should have access to everything.

Also, all I can see (with dmesg) is that the module is loaded ok, but is there any other log with more detailed info?

If you're running X as root (which I don't recommend) you should be ok for permissions..for reference though here's what mine look like:
Code:

# ls /dev/nvidia* -la
crw-rw----  1 root video 195,   0 May  3 23:43 /dev/nvidia0
crw-rw----  1 root video 195, 255 May  3 23:43 /dev/nvidiactl

The "Failed to initialize the NVIDIA kernel module" may be due to some kind of driver/hardware incompatibility, which has been a problem with a number of nvidia drivers. What version are you using currently? Assuming you're using stable, I'm guessing 1.0.6629-r4....it may be worth trying an older/newer version since that's 2 releases down the road now.

Cheers,
James
Back to top
View user's profile Send private message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Wed May 04, 2005 11:41 am    Post subject: Reply with quote

c0bblers wrote:

If you're running X as root (which I don't recommend) you should be ok for permissions..for reference though here's what mine look like:
Code:

# ls /dev/nvidia* -la
crw-rw----  1 root video 195,   0 May  3 23:43 /dev/nvidia0
crw-rw----  1 root video 195, 255 May  3 23:43 /dev/nvidiactl


I usually don't run as root either :) I installed Gentoo this sunday (1st of May) since I was pressed for time I just tried to get all hardware to work and I am going to perform other stuff like creating users and such when I get back from a little trip. From what I can see on your listing, it should be no problem for me as root (and member of video group) to have access to these device nodes, but I am going to investigate my own device nodes when I get back home (monday).
c0bblers wrote:

The "Failed to initialize the NVIDIA kernel module" may be due to some kind of driver/hardware incompatibility, which has been a problem with a number of nvidia drivers. What version are you using currently? Assuming you're using stable, I'm guessing 1.0.6629-r4....it may be worth trying an older/newer version since that's 2 releases down the road now.


Ok. I'll see what version I use when I get back home, though I'm running amd64 2005.0 and I synced this Sunday if that helps (i.e. it should be the latest stable version out for the amd64 platform).
Back to top
View user's profile Send private message
c0bblers
Guru
Guru


Joined: 28 Mar 2003
Posts: 403

PostPosted: Wed May 04, 2005 12:19 pm    Post subject: Reply with quote

Jahoviah wrote:
c0bblers wrote:

If you're running X as root (which I don't recommend) you should be ok for permissions..for reference though here's what mine look like:
Code:

# ls /dev/nvidia* -la
crw-rw----  1 root video 195,   0 May  3 23:43 /dev/nvidia0
crw-rw----  1 root video 195, 255 May  3 23:43 /dev/nvidiactl


I usually don't run as root either :) I installed Gentoo this sunday (1st of May) since I was pressed for time I just tried to get all hardware to work and I am going to perform other stuff like creating users and such when I get back from a little trip. From what I can see on your listing, it should be no problem for me as root (and member of video group) to have access to these device nodes, but I am going to investigate my own device nodes when I get back home (monday).
c0bblers wrote:

The "Failed to initialize the NVIDIA kernel module" may be due to some kind of driver/hardware incompatibility, which has been a problem with a number of nvidia drivers. What version are you using currently? Assuming you're using stable, I'm guessing 1.0.6629-r4....it may be worth trying an older/newer version since that's 2 releases down the road now.


Ok. I'll see what version I use when I get back home, though I'm running amd64 2005.0 and I synced this Sunday if that helps (i.e. it should be the latest stable version out for the amd64 platform).

1.0.6629-r5 is the latest stable release so that's probably what you're using...you might want to take a look at https://forums.gentoo.org/viewtopic-t-324246-highlight-.html where a similar problem is discussed. There's some problems with the newer drivers/older chipsets. The most compatible driver release was probably 6111, but the kernel has moved on a lot since then and I'm not sure it'll compile anymore...You might also want to try fiddling with AGP, i.e. using kernel AGP, nvidia AGP, no AGP to see if any of that helps. Anway, quick things to try are 6111 nvidia drivers (probably wont compile with very recent kernel):
Code:

emerge "<media-video/nvidia-kernel-1.0.6629" --oneshot
emerge "<media-video/nvidia-glx-1.0.6629"

and the latest drivers..
Code:

echo "media-video/nvidia-glx ~x86" >> /etc/portage/package.keywords
echo "media-video/nvidia-kernel ~x86" >> /etc/portage/package.keywords
emerge nvidia-kernel --oneshot
emerge nvidia-glx


EDIT: Obviously change the above for you architecture :oops:

Cheers,
James
Back to top
View user's profile Send private message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Wed May 04, 2005 12:27 pm    Post subject: Reply with quote

Ok, I'll give this a try when I get back. Thanks for all the help!

And also, I've got a PCI Express card (MSI Geforce 6800 Ultra PciE) and not an AGP card.
Could this fact has something to do with the problems?!
Back to top
View user's profile Send private message
c0bblers
Guru
Guru


Joined: 28 Mar 2003
Posts: 403

PostPosted: Wed May 04, 2005 12:36 pm    Post subject: Reply with quote

Jahoviah wrote:
Ok, I'll give this a try when I get back. Thanks for all the help!

And also, I've got a PCI Express card (MSI Geforce 6800 Ultra PciE) and not an AGP card.
Could this fact has something to do with the problems?!

PCI-E is pretty new to the linux drivers so you'll probably want the newest drivers, if the driver doesn't recognise the card it can have problems getting it going properly, usually says "unrecognised" or "unknown" somewhere in your Xorg.log. A quick look at the driver Changelog shows
Quote:

* Added a workaround for an X server bug with PCI-E GeForce 6800
and GeForce 6600; a fix has been provided to XFree86 and XOrg.

* Fixed stability problems on x86_64 PCI-E systems.

Since 6629 so I'd definately try the newer drivers.

Cheers,
James
Back to top
View user's profile Send private message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Tue May 10, 2005 3:11 pm    Post subject: Reply with quote

Just got home and tried emerging the newest nvidia drivers and it still doesn't work. I get the same error as detailed in the top of this thread. I checked the dmesg and got:
nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA Linux x86_64 NVIDIA Kernel Module 1.0-6629

X.org log tells me:

PCI:*(5:0:0) nVidia Corporation unknown chipset (0x00f9) rev 162

The card is a MSI 6800 Ultra.

This is very frustrating. Any suggestions?

With lspci the card is displayed as NV40 [Nvidia Geforce 6800 Ultra]
_________________
MSI-K8n Diamond - AMD T-64 1.8GHz - 2GB - MSI Geforce 6800 Ultra - Hauppage PVR350 - 74GB Raptor (win32) - 36GB Raptor (amd64 2006.1 gentoo) - 250GB storage
Back to top
View user's profile Send private message
c0bblers
Guru
Guru


Joined: 28 Mar 2003
Posts: 403

PostPosted: Tue May 10, 2005 4:02 pm    Post subject: Reply with quote

Jahoviah wrote:
Just got home and tried emerging the newest nvidia drivers and it still doesn't work. I get the same error as detailed in the top of this thread. I checked the dmesg and got:
nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA Linux x86_64 NVIDIA Kernel Module 1.0-6629

X.org log tells me:

PCI:*(5:0:0) nVidia Corporation unknown chipset (0x00f9) rev 162

The card is a MSI 6800 Ultra.

This is very frustrating. Any suggestions?

With lspci the card is displayed as NV40 [Nvidia eforce 6800 Ultra]


Hi,

It's not detecting your chipset still....according to that dmesg log you're still using an old kernel module version....it should be 1.0-7176(?), 7-something anyway. You sure you did the keyword bit properly? Whats the output of emerge -s nvidia?

Cheers,
James
Back to top
View user's profile Send private message
tam
Guru
Guru


Joined: 04 Mar 2003
Posts: 569

PostPosted: Tue May 10, 2005 4:06 pm    Post subject: Reply with quote

Jahoviah wrote:
This is very frustrating. Any suggestions?


Make sure you have hotplug compiled into your kernel.

Code:
CONFIG_HOTPLUG=y
Back to top
View user's profile Send private message
Jahoviah
n00b
n00b


Joined: 02 May 2005
Posts: 38
Location: Karlskrona, Sweden

PostPosted: Tue May 10, 2005 5:57 pm    Post subject: Reply with quote

I fixed the keywords, emerged the latest nvidia ebuilds and compiled my kernel with hotplug support and everything works fine now!
_________________
MSI-K8n Diamond - AMD T-64 1.8GHz - 2GB - MSI Geforce 6800 Ultra - Hauppage PVR350 - 74GB Raptor (win32) - 36GB Raptor (amd64 2006.1 gentoo) - 250GB storage
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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