Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg Failed to initialize the NVIDIA graphics device
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
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Wed Oct 17, 2012 6:40 am    Post subject: Xorg Failed to initialize the NVIDIA graphics device Reply with quote

Hi,

I'm having some problems getting Xorg working on my 2008 Macbook Pro 4,1 Gentoo install. I have been going through these forums all afternoon but am not able to find an *exact* match to my problem...

Like allot of people posting to these forums I am having problems getting Xorg to work with the Nvidia proprietary drivers. I have been searching these forums but none of the posts I've read seem to solve my problem. When I type 'startx' I get the error message;

Code:
NVIDIA: could not open the device file /dev/nvidia0 (Input/Output error)


Before I went any further I checked /dev to see if the device node existed. it was there. In my /dev directory I have an entry for nvidia0 and nvidiactl. 'lsmod' shows that the nvidia kernel module is loaded.I have noticed on some forum posts that these being absent causes the problem. Listed below is my /etc/X11/xorg.conf file, which was created with 'nvidia-xconfig'

http://bpaste.net/show/51732/

Below is my /var/log/Xorg.0.log

http://bpaste.net/show/51733/

The log files seems to show everything going ok up until the line;

Code:
[ 14303.011] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0


So I checked /var/log/messages for entries and came across the following;

http://bpaste.net/show/51739/

I'm scratching my head here. There are allot of posts by people having trouble with the nvidia drivers but none match my problem.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Wed Oct 17, 2012 7:48 am    Post subject: Reply with quote

Your menuconfig should look like
Quote:
Device Drivers --->

Input device support --->
<*> Event interface
[*] Mice --->
--- Mice
<*> PS/2 mouse
[ ] Elantech PS/2 protocol extension
[ ] Sentelic Finger Sensing Pad PS/2 protocol extension
[ ] eGalax TouchKit PS/2 protocol extension
< > Serial mouse
<*> Apple USB Touchpad support
<*> Apple USB BCM5974 Multitouch trackpad support
< > DEC VSXXX-AA/GA mouse and VSXXX-AB tablet
<*> Synaptics I2C Touchpad support
<*> Synaptics USB device support[/color]


Graphics support --->
<M> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
< > AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
< > Intel GMA500 Stub Driver
<*> Lowlevel video output switch controls
<M> Support for frame buffer devices --->
--- Support for frame buffer devices
[*] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support (EXPERIMENTAL)
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Exynos Video driver support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
<*> Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > Apple Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight driver for TI LP855X
[*] Backlight & LCD device support --->
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(256) Scrollback Buffer Size (in KB)
<M> Framebuffer Console support
[*] Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo

[*] X86 Platform Specific Device Drivers --->



If change required to match it, make the change, recompile and recopy kernel
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mvaterlaus
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2010
Posts: 145
Location: Switzerland

PostPosted: Wed Oct 17, 2012 8:02 am    Post subject: Reply with quote

bawig1,
is your user in the video group? if not, add it with gpasswd -a $user video
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Wed Oct 17, 2012 8:04 am    Post subject: Reply with quote

Changed my kernel config and same problem

.. My user is in the video group..
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Wed Oct 17, 2012 8:23 am    Post subject: Reply with quote

Code:
grep -i mtrr /usr/src/linux/.config
should show
Quote:
CONFIG_MTRR=y
if not, menuconfig needs
Quote:
Processor and Features --->
[*] MTRR (Memory Type Range Register) support


Quote:
[*] MTRR cleanup support
(0) MTRR cleanup enable value (0-1) (NEW)
(1) MTRR cleanup spare reg num (0-7) (NEW)
Might be worth doing
_________________
Defund the FCC.
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Wed Oct 17, 2012 11:24 am    Post subject: Reply with quote

Quote:
CONFIG_MTRR=y


check, My kernel config contains everything that I have found in these forums this afternoon. The guides I've been following are listed below;

http://www.gentoo.org/doc/en/nvidia-guide.xml
http://en.gentoo-wiki.com/wiki/Apple_Macbook_Pro

http://www.odi.ch/prog/macbookpro/index.php
http://bbbart.eu/blog/gentoo-on-a-macbook/
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2060
Location: Near Toronto

PostPosted: Wed Oct 17, 2012 12:22 pm    Post subject: Reply with quote

Which nvidia driver are you currently using? How many
others have you tried already (masked or unmasked)?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Wed Oct 17, 2012 12:43 pm    Post subject: Reply with quote

this may sound like a stupid question.. but how do I tell which version of the drivers I have installed?

I used 'emerge xorg-drivers'
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Wed Oct 17, 2012 2:29 pm    Post subject: Reply with quote

To answer my own question..;

Code:
cat /proc/driver/nvidia/version


Code:
NVRM version: NVIDIA UNIX x86_64 kernel module 295.71


Code:
nvidia-settings -v


Code:
version 295.71
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2060
Location: Near Toronto

PostPosted: Wed Oct 17, 2012 5:09 pm    Post subject: Reply with quote

well, it might be worth a shot at installing newer drivers

you'll have to unmask x11-drivers/nvidia-drivers

(that is add

Code:
x11-drivers/nvidia-drivers ~amd64


to /etc/portage/package.keywords*)

and then run emerge -uav nvidia-drivers


* if you're running 32 bit environment, change "~amd64" to "~x86" in
the above
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Thu Oct 18, 2012 5:48 am    Post subject: Reply with quote

I've installed the latest drivers but I still get the error in my Xorg.0.log;

Code:
NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0


Could the problem be occurring due to the Macbook using EFI instead of a BIOS?
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2060
Location: Near Toronto

PostPosted: Thu Oct 18, 2012 11:45 am    Post subject: Reply with quote

I don't know anything about EFI but here's another elementary
question: can you boot another distro's live cd? (The macbook
pro doesn't have a dual graphics card or does it?)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Thu Oct 18, 2012 1:36 pm    Post subject: Reply with quote

Yes I can boot other distributions. I used System Rescue CD USB installer to install gentoo on this device (which is Gentoo based so I'm not sure if that counts), because the DVD drive is fried on this Macbook..

I'm pretty sure (after checking google) that the Macbook Pro 4,1 (2008) only has the one Nvidia card..

It seems to me that the problem is happening when Xorg tries to access the device /dev/nvidia0

I've checked the permissions of the two nvidia entries in /dev and there is no reason I can see why Xorg or the nvidia driver can not access the device
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2060
Location: Near Toronto

PostPosted: Thu Oct 18, 2012 2:52 pm    Post subject: Reply with quote

can root run startx? (it's not advised but just for testing :) )
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Fri Oct 19, 2012 5:39 am    Post subject: Reply with quote

both root and my regular user produce the same error
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Thu Oct 25, 2012 6:27 pm    Post subject: Reply with quote

OK, I've have taken my kernel config to pieces and followed every tutorial for NVIDIA drivers and Macbook pro's that I can find on the web.

The only constant problem that I can find is in /var/log/messages ;

Code:

NVRM: loading NVIDIA UNIX x86_64 kernel module 304.51
NVRM: failed to copy vbios to system memory.
NVRM: RmInitAdapter failed (0x30:0xffffffff:861)
NVRM: rm_init_adapter(0) failed


When I check chapter 8 of the README that comes with the NVIDIA driver (which is suggested in the error log for Xorg), I find the following entry;

http://us.download.nvidia.com/XFree86/Linux-x86/304.60/README/commonproblems.html

Quote:

Why does the VBIOS fail to load on my Optimus system?


On some notebooks with Optimus graphics, the NVIDIA driver may not be able to retrieve the Video BIOS due to interactions between the System BIOS and the Linux kernel's ACPI subsystem. On affected notebooks, applications that require the GPU will fail, and messages like the following may appear in the system log:

NVRM: failed to copy vbios to system memory.
NVRM: RmInitAdapter failed! (0x30:0xffffffff:858)
NVRM: rm_init_adapter(0) failed

Such problems are typically beyond the control of the NVIDIA driver, which relies on proper cooperation of ACPI and the System BIOS to retrieve important information about the GPU, including the Video BIOS.


This is pretty much all can find on the web and I have spent the best part of the week searching for information. I am unsure what all of this information means, I'm having trouble putting the pieces together. I'm using a Macbook Pro 4,1 2008 and I'm not sure if it has OPtimus graphics, but it seems there is something wrong when the ACPI system tries to interact with the system BIOS and Macbooks don't have a system bios.

I would really appreciate it if someone more knowledgeable than myself would be able to help me on this.. I'm all out of ideas'.

Brett.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Thu Oct 25, 2012 7:01 pm    Post subject: Reply with quote

nvidia did not wish to support optimus for linux
_________________
Defund the FCC.
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Thu Oct 25, 2012 7:54 pm    Post subject: Reply with quote

what about the Nouveau driver?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2633
Location: Slovenia

PostPosted: Thu Oct 25, 2012 8:25 pm    Post subject: Reply with quote

DONAHUE wrote:
nvidia did not wish to support optimus for linux

They do want to support it. But they can't, the kernel devs won't give them access to dma-buf.
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Tue Oct 30, 2012 10:05 am    Post subject: Reply with quote

I do not think that this is an Optimus problem as my Mackbook Pro 4,1 (2008) only has one video card. when I rum lspci, only the nvidia adapter shows up;

Code:

01:00.0 VGA compatible controller: NVIDIA Corporation G84 [GeForce 8600M GT] (rev a1)


which is listed in the supported products here;

[url]
http://www.nvidia.com/object/linux-display-amd64-304.60-driver.html
[/url]

I've also ran

Code:
nvidia-bug-report.sh


the contents of which is posted here;

http://pastebay.net/1152379
Back to top
View user's profile Send private message
diepchess
n00b
n00b


Joined: 13 Mar 2014
Posts: 6

PostPosted: Fri Mar 14, 2014 9:07 pm    Post subject: Reply with quote

Heh, though 2 years ago,

Did your problem ever get solved?

I'm having the same problem with the macbookpro 3.1 also having the 8600M GT card.
Kernel 3.13.6 by now and nvidia module + glx module version 334.21

Nvidia does list the 8600M GT for their driver as supported.

How did you solve your problem if ever?

The recurring bug it gives at all distro's is after modprobing the nvidia,
is in Xorg.log:

Failed to initialize the Nvidia gpu at pci:1:0:0

The only 2 distro's that actually graphical work out of the box for this laptop are
Fedora-Core and Ubuntu. Not my favourite distro's.

Debian and Gentoo have big problems...

Any thoughts on how to solve this or what i can try to get it to work?

Note i have set ~amd64 already (and otherwise i wouldn't have 3.13.6 kernel)

Regards,
Vincent
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