Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to initialize the NVIDIA graphics device PCI:1:0:0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Dec 05, 2010 12:19 pm    Post subject: Failed to initialize the NVIDIA graphics device PCI:1:0:0 Reply with quote

Hi all,

I'm in the process of installing Gentoo onto a new machine, and I've run into some problems with getting X working. The machine originally came with Ubuntu on it, and everything worked fine then, so I'm fairly confident that the hardware should be okay.

I have an NVidia GeForce GT430, and I've emerged the nvidia-drivers-195.36.31. When I run startx, X crashes with:

Code:

(II) LoadModule: "nvidia"
(II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  195.36.31  Thu Jun  3 08:27:29 PDT 2010
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib64/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib64/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Dec 05 12:08:47 NVIDIA(0): Enabling RENDER acceleration
(II) Dec 05 12:08:47 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) Dec 05 12:08:47 NVIDIA(0):     enabled.
(EE) Dec 05 12:08:51 NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
(EE) Dec 05 12:08:51 NVIDIA(0):     Please check your system's kernel log for additional error
(EE) Dec 05 12:08:51 NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
(EE) Dec 05 12:08:51 NVIDIA(0):     README for additional information.
(EE) Dec 05 12:08:51 NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.


The console output also mentions the error "NVIDIA: could not open the devie file /dev/nvidia0 (Input/output error)." The file /dev/nvidia0 does exist.

I've created an xorg.conf using nvidia-xconfig. The nvidia module is loaded. I compiled the nvidia drivers after re-building the kernel, and have tried since rebooting. I've selected nvidia using "eselect opengl".

lspci output for NVidia is:

Code:

01:00.0 VGA compatible controller: nVidia Corporation Device 0de1 (rev a1)


If I try running startx without an xorg.conf, then it fails trying to find any modules (dri etc), but doesn't try to load nvidia or nouveau modules.

My make.conf:

Code:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2"

VIDEO_CARDS="nvidia nouveau"
INPUT_DEVICES="evdev"


Is anyone able to point out what I've done wrong?

Thanks,
Sam.
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 399
Location: Leeds

PostPosted: Sun Dec 05, 2010 12:27 pm    Post subject: Reply with quote

Hi, I don't know if this will be of any use.. I have a 330M and found that version 195 of the nvidia drivers does not work.. I had to add x11-drivers/nvidia-drivers to /etc/portage/package.keywords and install version 256.53. I found that version 260.19.21 would just hang my system. However, manually installing 260.19.26 works like a charm. Get them here ftp://download.nvidia.com/XFree86/Linux-x86_64/260.19.26/

Also, the nuveau fb driver didn't work for me, I had to use the uvesafb to get my vt to work.
_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 114
Location: UK

PostPosted: Sun Dec 05, 2010 3:33 pm    Post subject: Reply with quote

Using nvidia-driver-260.19.21 seems to work. At least X is starting now.

Thanks.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 857

PostPosted: Sun Jan 02, 2011 10:23 am    Post subject: Reply with quote

hi,

also fighting with a gt330m.
could someone be so nice to post his
Quote:
xorg.conf
?

thanks a lot!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 399
Location: Leeds

PostPosted: Sun Jan 02, 2011 10:42 am    Post subject: Reply with quote

here ya go.. this is from my Sony Vaio Nvidia 330M

http://cdstealer.com/filez/gentoo-info/xorg.conf
_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 857

PostPosted: Sun Jan 02, 2011 10:50 am    Post subject: Reply with quote

that was quick - thanks!

Quote:
/Xorg.0.log

shows this error
Code:
(EE) config/hal: couldn't initialise context: unknown error (null)


what's that gonna tell me?


cheers again!

_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 857

PostPosted: Sun Jan 02, 2011 11:26 am    Post subject: Reply with quote

ok - that seems kinda sorted,
but how did you actually get to install the version 260.19.21 ?

if
Code:
echo ">=x11-drivers/nvidia-drivers-260.19.29" >> /etc/portage/package.mask


i get downgraded to
Quote:
nvidia-drivers-195.36.31


which do not work for me...

cheers!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 399
Location: Leeds

PostPosted: Sun Jan 02, 2011 11:54 am    Post subject: Reply with quote

That's because you've added the package to the mask file which blocks packages. You need to add
Code:
echo "x11-drivers/nvidia-drivers >> /etc/portage/package.keywords


Make sure you remove the entry from package.mask :)
_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 857

PostPosted: Sun Jan 02, 2011 12:06 pm    Post subject: Reply with quote

that worked, but X still fails with
Code:

.
.
.
(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "dri2" (module does not exist, 0)
/etc/X11/xinit/xinitrc: line 58: twm: command not found
/etc/X11/xinit/xinitrc: line 59: xclock: command not found
/etc/X11/xinit/xinitrc: line 60: xterm: command not found
/etc/X11/xinit/xinitrc: line 61: exec: command not found
/etc/X11/xinit/xinitrc: line 62 xterm: command not found

waiting for X seerver to shut down.

:(
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 399
Location: Leeds

PostPosted: Sun Jan 02, 2011 12:07 pm    Post subject: Reply with quote

do you need to perform a
Code:
revdep-rebuild

_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2650
Location: Slovenia

PostPosted: Sun Jan 02, 2011 12:29 pm    Post subject: Reply with quote

lo-jay wrote:
that worked, but X still fails with
Code:

.
.
.
(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "dri2" (module does not exist, 0)
/etc/X11/xinit/xinitrc: line 58: twm: command not found
/etc/X11/xinit/xinitrc: line 59: xclock: command not found
/etc/X11/xinit/xinitrc: line 60: xterm: command not found
/etc/X11/xinit/xinitrc: line 61: exec: command not found
/etc/X11/xinit/xinitrc: line 62 xterm: command not found

waiting for X seerver to shut down.

:(

Install and configure something that will run in X. I've seen this at least three times in the past few days. People think something is wrong, but in reality they have nothing that will run in X, so it simply shuts down.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 857

PostPosted: Sun Jan 02, 2011 12:30 pm    Post subject: Reply with quote

Quote:
Dynamic linking on your system is consistent..All done


thats not my prob.
but running out of ideas why .xorg keeps failing on me :?:

cheers!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 399
Location: Leeds

PostPosted: Sun Jan 02, 2011 9:28 pm    Post subject: Reply with quote

With the command not found, are you running a local terminal or are you sshing into the box?
What is the output of echo $SHELL
_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 857

PostPosted: Sun Jan 02, 2011 9:36 pm    Post subject: Reply with quote

i did mess up some nvidia kernel settings before - got Xorg running now :)

but still not in the dry - can't set my locales in X now - arrrgh!

https://forums.gentoo.org/viewtopic-t-825994-highlight-keymaps.html

thanks for all the great support!!!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2650
Location: Slovenia

PostPosted: Sun Jan 02, 2011 9:42 pm    Post subject: Reply with quote

Setting keyboard layout in X: https://forums.gentoo.org/viewtopic-p-6528351.html#6528351
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 399
Location: Leeds

PostPosted: Sun Jan 02, 2011 9:48 pm    Post subject: Reply with quote

glad you got X sorted :) and you're welcome.

Hope the above post gets your keyboard fixed.
_________________
# touch it
touch: cannot touch `it': Permission denied
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