Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XOrg can't load NVidia
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Tweakin
n00b
n00b


Joined: 07 Sep 2003
Posts: 68
Location: Minneapolis, MN

PostPosted: Mon Oct 24, 2005 2:06 am    Post subject: XOrg can't load NVidia Reply with quote

I have a problem. I just built up a new system and am having some issues getting xorg to use the nvidia kernel. I have nvidia-kernel, nvidia-glx, opengl-update, and xorg-x11 merged, I ran the xorgconfig and thne edited the config file to change nv to nvidia. I also added nvidia to modules.autoload.d, ran modprobe and modules-update. That's all the stuff I usually do and it usually just works. This time, though, I am getting (EE)'s about the nvidia module.

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module.
(EE) NVIDIA(0): *** Aborting ***

The only thing different I have done durring this install (I have installed Gentoo dozens of times on many setups) is use genkernel. I have never used it and have a feeling it may be a weird kernel issue, but I am not 100% sure.

Anyone have any thoughts?
Back to top
View user's profile Send private message
TheWitePony
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 211

PostPosted: Mon Oct 24, 2005 2:53 am    Post subject: Reply with quote

Make sure you emerged nvidia-kernel and nvidia-glx after you compiled your kernel.

Did you modprobe nvidia?

Have you tried this as well, after doing the above?
Code:

opengl-update nvidia
Back to top
View user's profile Send private message
drhanus
n00b
n00b


Joined: 24 Oct 2005
Posts: 1

PostPosted: Mon Oct 24, 2005 7:59 am    Post subject: Re: XOrg can't load NVidia Reply with quote

I bet the device nodes are missing. Check

Code:
ls -l /dev/nvidia*
Back to top
View user's profile Send private message
Tweakin
n00b
n00b


Joined: 07 Sep 2003
Posts: 68
Location: Minneapolis, MN

PostPosted: Mon Oct 24, 2005 4:48 pm    Post subject: Re: XOrg can't load NVidia Reply with quote

TheWitePony wrote:
Make sure you emerged nvidia-kernel and nvidia-glx after you compiled your kernel.

Did you modprobe nvidia?

Have you tried this as well, after doing the above?
Code:
opengl-update nvidia


Yes to all of the above.

drhanus wrote:
I bet the device nodes are missing. Check

Code:
ls -l /dev/nvidia*


Hmm, seems like a problem.

'No such file or directory.'

How should I get around this? I tried remerging everything again with no luck.
Back to top
View user's profile Send private message
paul555
l33t
l33t


Joined: 22 Nov 2004
Posts: 612
Location: Greece

PostPosted: Mon Oct 24, 2005 5:35 pm    Post subject: Reply with quote

I had the same problem i solved it by emerging the
Quote:
~x86
version of the nvidia-kernel and nvidia-glx
_________________
"LINUX, MS-DOS, Windows : known as the Good, the Bad and the Ugly." :)
http://www.gnome.gr
Back to top
View user's profile Send private message
Tweakin
n00b
n00b


Joined: 07 Sep 2003
Posts: 68
Location: Minneapolis, MN

PostPosted: Mon Oct 24, 2005 5:48 pm    Post subject: Reply with quote

paul555 wrote:
I had the same problem i solved it by emerging the
Quote:
~x86
version of the nvidia-kernel and nvidia-glx


I gave that a try, it increased the error output to this...

Code:
Error: API mismatch: the NVIDIA kernel module is version 7.1.0, but
this X module is version 1.0.7676. Please be sure that your kernel
module and all NVIDIA driver files have the same driver version.
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA(0):      that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA(0):      that the NVIDIA device files have been created properly.
(EE) NVIDIA(0):      Please consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.
Back to top
View user's profile Send private message
FranZ
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 212
Location: Enschede, Holland

PostPosted: Mon Oct 24, 2005 6:13 pm    Post subject: Reply with quote

Try
Code:
/sbin/NVmakedevices.sh
. It did the job for me.

Cheerio
_________________
Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

Ask Smart Questions
Back to top
View user's profile Send private message
Tweakin
n00b
n00b


Joined: 07 Sep 2003
Posts: 68
Location: Minneapolis, MN

PostPosted: Mon Oct 24, 2005 6:19 pm    Post subject: Reply with quote

FranZ wrote:
Try
Code:
/sbin/NVmakedevices.sh
. It did the job for me.

Cheerio


Hmmm, I don't seem to have that file, or any similair file in /sbin/. Clearly that's an issue :)
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Mon Oct 24, 2005 6:26 pm    Post subject: Reply with quote

I just did a clean install of gentoo 2005.1 over the last weekend, with an nvidia 6600GT card.

I don't use genkernel so I'm not sure how applicable this is.

1) the default gentoo-sources right now is 2.6.13-gentoo-r1, this kernel source requires the ~x86 branch of nvidia-kernel and nvidia-glx (version 7676 now i believe)

2) the default x86 branch of nvidia-kernel is 6629 still... just by emerging the stable portage tree with an nvidia card you are setting up a system that won't work out of the box, so to speak.

you'll need to
add nvidia-kernel and nvidia-glx to /etc/portage/package.keywords

like:
Code:
echo "media-video/nvidia-kernel ~x86" >> /etc/portage/package/keyword

do this for both packages. the ~x86 of these packages also requires that eselect and eselect-opengl are also installed, so they too much be added to the package.keywords file.

make sure that your currently running kernel matches the kernel sources version pointed to by /usr/src/linux

if that symlink is incorrect, emerging the drivers will typically fail either on modprobe or in xorg.

- Jon
Back to top
View user's profile Send private message
Tweakin
n00b
n00b


Joined: 07 Sep 2003
Posts: 68
Location: Minneapolis, MN

PostPosted: Tue Oct 25, 2005 2:01 am    Post subject: Reply with quote

Well, after trying everyones suggestions and messing around myself for a day, I wasn't able to get it working. I completely reinstalled Gentoo (it was a fresh install) again and did not use genkernel. X is working fine now, and I had no problems. I did everything the same way, minus genkernel, so that leads me to believe there is something being included in genkernels kernel that the nvidia-kernel isn't playing nicely with.

Wish I could have gotten to the bottom of it, i hate leaving things open like that, but the system needs to be built and dropped into place tomorrow.
Back to top
View user's profile Send private message
Shaocaholica
n00b
n00b


Joined: 15 Oct 2005
Posts: 7

PostPosted: Tue Oct 25, 2005 2:10 pm    Post subject: Reply with quote

jonnevers wrote:
I just did a clean install of gentoo 2005.1 over the last weekend, with an nvidia 6600GT card.
...

Im having the exact same problems with the nvidia driver. In gentoo and FC4. I kinda lost you at the part about keywords. Could you please elaborate on the correct way to install the nvidia 7676 drivers on 2005.1 with more detailed instructions/explainations.
Back to top
View user's profile Send private message
krasnik
n00b
n00b


Joined: 28 Sep 2005
Posts: 8

PostPosted: Tue Oct 25, 2005 2:34 pm    Post subject: Reply with quote

ok, here is what my solution was.

i installed the 1.0.6629-r4 Version of nvidia-driver and nvidia-glx. in this ebuild you will find /sbin/NVmakedevices.sh.
copy this to some other dir and emerge version 1.0.7676 of driver and glx.

after all this emerging is done run ${some other dir}/NVmakedevices.sh and everthing works best.

i don't know but with and emerge -sync and emerge --update --deep world i got a new udev version and it seems that it fix the problem too.

cheers,
krasnik
Back to top
View user's profile Send private message
Shaocaholica
n00b
n00b


Joined: 15 Oct 2005
Posts: 7

PostPosted: Tue Oct 25, 2005 2:49 pm    Post subject: Reply with quote

krasnik wrote:
ok, here is what my solution was.

i installed the 1.0.6629-r4 Version of nvidia-driver and nvidia-glx. in this ebuild you will find /sbin/NVmakedevices.sh.
copy this to some other dir and emerge version 1.0.7676 of driver and glx.

after all this emerging is done run ${some other dir}/NVmakedevices.sh and everthing works best.

i don't know but with and emerge -sync and emerge --update --deep world i got a new udev version and it seems that it fix the problem too.

cheers,
krasnik

emerge 7676? I thought this wasn't in portage. Or do you mean install the 7676 drivers using the .run file as per nvidias instructions?
Back to top
View user's profile Send private message
Sachankara
l33t
l33t


Joined: 11 Jun 2004
Posts: 696
Location: Stockholm, Sweden

PostPosted: Tue Oct 25, 2005 3:17 pm    Post subject: Reply with quote

Tweakin wrote:
FranZ wrote:
Try
Code:
/sbin/NVmakedevices.sh
. It did the job for me.

Cheerio


Hmmm, I don't seem to have that file, or any similair file in /sbin/. Clearly that's an issue :)
Code:
rmmod nvidia
mknod /dev/nvidiactl c 195 255
mknod /dev/nvidia0 c 195 0
modprobe nvidia
(Still have problems here?)
cd /usr/lib/modules/drivers/
ln -s /usr/lib/xorg/modules/drivers/nvidia_drv.o

_________________
Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak)
Back to top
View user's profile Send private message
krasnik
n00b
n00b


Joined: 28 Sep 2005
Posts: 8

PostPosted: Tue Oct 25, 2005 3:29 pm    Post subject: Reply with quote

Shaocaholica wrote:

emerge 7676? I thought this wasn't in portage. Or do you mean install the 7676 drivers using the .run file as per nvidias instructions?


no the 7676 drivers are in portage but they are masked.

but i would update the system first because of the new udev. i did the install on two different machines, one time with the script and the other after update of udev without. both are 7676 drivers and glx. i got the solution from googling one week ;).
Back to top
View user's profile Send private message
Shaocaholica
n00b
n00b


Joined: 15 Oct 2005
Posts: 7

PostPosted: Tue Oct 25, 2005 9:19 pm    Post subject: Reply with quote

Thanks. Can you go over the entire process because its all new to me. Especially unmasking packages in portage.
Back to top
View user's profile Send private message
krasnik
n00b
n00b


Joined: 28 Sep 2005
Posts: 8

PostPosted: Tue Oct 25, 2005 9:57 pm    Post subject: Reply with quote

look on my postcounter, i am noob too :). but i will have a try.

1) to start:

Code:
emerge nvidia-kernel nvidia-glx


2) next copy device creating script:

Code:
cp /sbin/NVmakedevices.sh ~/NVmakedevices.sh


3) next is to unmask the packages, write this into /etc/portage/package.keywords

Code:
=media-video/nvidia-kernel-1.0.7676 ~x86
=media-video/nvidia-glx-1.0.7676-r1 ~x86


4) and emerge nvidia
Code:

emerge nvidia-kernel-1.0.7676 nvidia-glx-1.0.7676-r1


5) run device make script:
Code:
~/NVmakedevices.sh


6) add the script your local startscript.

or if the update of udev realy works just do this (i dont read the changelog, i just saw that a new version was emerged):

Code:
emerge -sync
emerge --update --deep world
echo "=media-video/nvidia-kernel-1.0.7676 ~x86" >> /etc/portage/package.keywords
echo "=media-video/nvidia-glx-1.0.7676-r1 ~x86" >> /etc/portage/package.keywords
emerge nvidia-kernel-1.0.7676 nvidia-glx-1.0.7676-r1


as i said both, worked for me on two different pc's. i would try the udev thing first.

good luck,
krasnik

ps.: if someone can see crap in the things i wrote, correct me :)
Back to top
View user's profile Send private message
Shaocaholica
n00b
n00b


Joined: 15 Oct 2005
Posts: 7

PostPosted: Wed Oct 26, 2005 1:51 pm    Post subject: Reply with quote

Thanks a ton. I'll try it out when I get back in to work.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Wed Oct 26, 2005 11:50 pm    Post subject: Reply with quote

Shaocaholica wrote:
Thanks a ton. I'll try it out when I get back in to work.



Without the devices it won't work - to have /dev/nvidia0 and /dev/nvidiactl is the must.
If you don't have a script with nvidia-kernel, you have to do it by hand

cd /dev
mknod nvidia0 c 195 0
mknod nvidiactl c 195 255

and then set them to be owned by root:video
chown root:video nvidia*

and permission to 666 or 660

chmod 666 nvidia*


Udev won't help, it can't handle nvidia devices due to changes in kernel side sysfs
Back to top
View user's profile Send private message
StormChaserUK
n00b
n00b


Joined: 14 Nov 2005
Posts: 5

PostPosted: Mon Nov 14, 2005 1:38 am    Post subject: Reply with quote

Tweakin wrote:
paul555 wrote:
I had the same problem i solved it by emerging the
Quote:
~x86
version of the nvidia-kernel and nvidia-glx


I gave that a try, it increased the error output to this...

Code:
Error: API mismatch: the NVIDIA kernel module is version 7.1.0, but
this X module is version 1.0.7676. Please be sure that your kernel
module and all NVIDIA driver files have the same driver version.
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA(0):      that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA(0):      that the NVIDIA device files have been created properly.
(EE) NVIDIA(0):      Please consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.


I seem to be ahaving the same problem.

At first i got the "unable to initialise the module" error even with using NVmakedevices. I did the ~x86 emerge etc and now it installs fine, but i get the same error as above.

I have the relevent device nodes in /dev.

EDIT: SOLVED!!!!!

the glx modules are 7676-r2 and the kernel module is 7676-r1

remove the r2 glx module and emerge the r1 and it works fine

now to try it with a fbsplash :D
Back to top
View user's profile Send private message
lorenct
n00b
n00b


Joined: 20 May 2004
Posts: 31

PostPosted: Tue Nov 15, 2005 5:25 am    Post subject: Reply with quote

Hmm... downgrading to nvidia-glx-1.0.7676-r1 from r2 did not resolve this problem for me.

System configuration:
HP Kayak XU with Dual Pentium 3 550MHz CPUs
nVidia FX5200

Everything works fine with gentoo-sources-2.6.12-r10 but once I go to gentoo-sources-2.6.14-r2, nvidia falls over and cannot get up.

I get the message of not finding /dev/nvidia0 and failing to initialize, but I added /sbin/NVmakedevices.sh into /etc/conf.d/local.start.

(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: "nvidia"
(EE) Screen(s) found, but none have a usable configuration.

I even recompiled the 2.6.14-r2 kernel with CONFIG_FB_NVIDIA=m from reading the following thread:
https://forums.gentoo.org/viewtopic-t-375466-start-25-postdays-0-postorder-asc-highlight-nvidia+module.html

The real bizarre thing is that I have another system:

System configuration:
Supermicro X5DAL-TG2 with Dual Pentium 4 XEON 2.8GHz
nVidia 6800OC

And this system has no problem with the nvidia driver loading and Xorg running like a champ with 2.6.14-r2. I do not even have the CONFIG_FB_NVIDIA module added to it.

So I am stuck right now with one sysetm staying at 2.6.12-r10 (even tried 2.6.13-r5 with failed results as well) until someone comes up with some answers as to why it works on some systems and not on others.

Thanks for all the information in the thread so far... at least it gave me something to try and play with.
_________________
--
That's my story and I am sticking to it...
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Wed Dec 07, 2005 8:47 pm    Post subject: Reply with quote

FranZ wrote:
Try
Code:
/sbin/NVmakedevices.sh
. It did the job for me.

Cheerio


I bumped into this problem back at 2.6.13, but haven't had the time/inclination to really look at it until today. Actually, I'm prodded on by the gcc 3.4 upgrade of this past weekend. I like to stay close to the stable front, but I wasn't about to upgrade my compiler until I understood why the heck I couldn't move to a new kernel. After lamenting the inability to search for version strings with Gentoo Forums, I saw the idea of google with site:forums.gentoo.org (Doh!) and wound up on this thread, shortly.

So for my piece, I offer "/etc/init.d/nvidia":
Code:
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/coldplug/files/coldplug.rc,v 1.3 2005/01/28 12:20:20 wolf31o2 Exp $

depend() {
   before xdm
}

start() {
   # Create /dev/nvidia*, if necessary.
   if [ -e /sbin/NVmakedevices.sh ]
   then
      ebegin "Running NVmakedevices.sh script"
      /sbin/NVmakedevices.sh
      eend $?
   else
      eerror "Script NVmakedevices.sh not found"
      return 1
      
   fi
}

Rather obviously a plagerized "coldplug" script, but given that I don't use the udev tarball, it quite simply gets me my nVidia device nodes before xdm tries to start. A quick glance shows that NVmakedevices.sh only does the mknod if it needs to. I'm not quite sure how this would get done for text-mode login.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
n00bix
n00b
n00b


Joined: 12 Dec 2005
Posts: 2

PostPosted: Mon Dec 12, 2005 5:53 pm    Post subject: Reply with quote

Thx Sachankara, Ur' nifty little note trick, did it for me 8)
_________________
Software want's to be free !
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1609
Location: indiana

PostPosted: Fri Dec 16, 2005 8:14 pm    Post subject: Reply with quote

gentoo-2005.1 with 2.6.14-gentoo-r4 , i had

Failed to load NVIDIA kernel... when starting X , i tried all available NVIDIA drivers but then my hint was just :

ls -l /dev/nvidia*

and "no such dir.."

so i just tried

/sbin/NVmakedevices.sh and everything is working FINE :D

thx
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1609
Location: indiana

PostPosted: Fri Dec 16, 2005 9:05 pm    Post subject: Reply with quote

Mgiese wrote:
gentoo-2005.1 with 2.6.14-gentoo-r4 , i had

Failed to load NVIDIA kernel... when starting X , i tried all available NVIDIA drivers but then my hint was just :

ls -l /dev/nvidia*

and "no such dir.."

so i just tried

/sbin/NVmakedevices.sh and everything is working FINE :D

thx


but then ALL nvidia-kernel drivers are failing to install, even if they emerged fine before ...
so i just have the already installed nvidia-kernel-7174 with nvidia-glx-7174-r5 .... ?? so i dont know whats wrong now...

all drivers putting out this error :

WARNING : Symbol version dumb /usr/src/linux-2.6.14-gentoo-r4/Module.symvers is missing: Modules will have no dependencies and modversion.

and then the merge crashes at this point :
/bin/sh : scripts/mod/modpost: No such file or dir...

PS : i can post later on the complete error (when firefox merge is done)
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
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
Goto page 1, 2  Next
Page 1 of 2

 
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