Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia driver not working
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
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Thu May 29, 2014 4:54 pm    Post subject: Nvidia driver not working Reply with quote

I guess this is technically a new build. I've been out of the admin game for quite some time. I built this laptop about a year ago so I could take some development stuff on the road with me. I need an X-server now though, so I followed the guide, trying to set it up for Nvidia. When I try "startx" I get the Fatal server error: No screens found. Perhaps I'm missing a step? Time is of the essence here so I can't wipe the machine out and rebuild it. Well, I can, but something "out of the box" like Centos is going on if I need to take that route.

Xorg.0.log
Code:

Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   496.287] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   496.288] (EE)
                                                                                   138,1         Bot
[   495.445] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   496.271] (II) Module glx: vendor="NVIDIA Corporation"
[   496.271]    compiled for 4.0.2, module version = 1.0.0
[   496.271]    Module class: X.Org Server Extension
[   496.271] (II) NVIDIA GLX Module  334.21  Thu Feb 27 13:54:04 PST 2014
[   496.279] Loading extension GLX
[   496.280] (==) Matched intel as autoconfigured driver 0
[   496.280] (==) Matched intel as autoconfigured driver 1
[   496.280] (==) Matched modesetting as autoconfigured driver 2
[   496.280] (==) Matched fbdev as autoconfigured driver 3
[   496.280] (==) Matched vesa as autoconfigured driver 4
[   496.280] (==) Assigned the driver to the xf86ConfigLayout
[   496.280] (II) LoadModule: "intel"
[   496.280] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   496.280] (II) Module intel: vendor="X.Org Foundation"
[   496.280]    compiled for 1.13.1, module version = 2.20.13
[   496.280]    Module class: X.Org Video Driver
[   496.280]    ABI class: X.Org Video Driver, version 13.1
[   496.281] (EE) module ABI major version (13) doesn't match the server's version (15)
[   496.281] (II) UnloadModule: "intel"
[   496.281] (II) Unloading intel
[   496.281] (EE) Failed to load module "intel" (module requirement mismatch, 0)
[   496.281] (II) LoadModule: "modesetting"
[   496.281] (WW) Warning, couldn't open module modesetting
[   496.281] (II) UnloadModule: "modesetting"
[   496.281] (II) Unloading modesetting
[   496.281] (EE) Failed to load module "modesetting" (module does not exist, 0)
[   496.281] (II) LoadModule: "fbdev"
[   496.281] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[   496.281] (II) Module fbdev: vendor="X.Org Foundation"
[   496.281]    compiled for 1.13.1, module version = 0.4.3
[   496.281]    Module class: X.Org Video Driver
[   496.281]    ABI class: X.Org Video Driver, version 13.1
[   496.282] (EE) module ABI major version (13) doesn't match the server's version (15)
[   496.282] (II) UnloadModule: "fbdev"
[   496.282] (II) Unloading fbdev
[   496.282] (EE) Failed to load module "fbdev" (module requirement mismatch, 0)
[   496.282] (II) LoadModule: "vesa"
[   496.282] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[   496.282] (II) Module vesa: vendor="X.Org Foundation"
[   496.282]    compiled for 1.13.1, module version = 2.3.2
[   496.282]    Module class: X.Org Video Driver
[   496.282]    ABI class: X.Org Video Driver, version 13.1
[   496.283] (EE) module ABI major version (13) doesn't match the server's version (15)
[   496.283] (II) UnloadModule: "vesa"
[   496.283] (II) Unloading vesa
[   496.283] (EE) Failed to load module "vesa" (module requirement mismatch, 0)
[   496.283] (EE) No drivers available.
[   496.283] (EE)
Fatal server error:
[   496.284] (EE) no screens found(EE)
[   496.285] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   496.287] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   496.288] (EE)


/etc/portage/make.conf
Code:

# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# 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="X bindist acl alsa anthy apache apng cairo canna caps consolekit corefonts cjk curl cups dbus declarative \
        embedded ffmpeg flac gdbm gimp gles gles2 glib gtk imap immqt-bc -immqt jpeg kde librsync-bundled \
        mmx mng mp3 mp4 mplayer multilib mysql network nvidia office ogg opengl orc policykit php png \
        pulseaudio python qt3support qt4 sql sse see2 ssl svg threads truetype type1 udev unicode usb vim vim-syntax \
        vim-with-x vlc vnc vncviewer vorbis webkit xcomposite xine"

MAKEOPTS="-j2"

GENTOO_MIRRORS="http://gentoo.aditsu.net:8000/ http://gentoo.channelx.biz/ http://gentoo.gg3.net/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev"


Note that I tried it once w/ VIDEO_CARDS set to nvidia, and once to nouveau.

lspci
Code:

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [NVS 3100M] (rev a2)
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
0d:00.0 SD Host controller: Ricoh Co Ltd MMC/SD Host Controller (rev 01)
0d:00.1 System peripheral: Ricoh Co Ltd R5U2xx (R5U230 / R5U231 / R5U241) [Memory Stick Host Controller] (rev 01)
0d:00.3 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 PCIe IEEE 1394 Controller (rev 01)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54210
Location: 56N 3W

PostPosted: Thu May 29, 2014 5:02 pm    Post subject: Reply with quote

kiss-o-matic,

Xorg will searh the OSS drivers for you. To use a binary blob you need an xorg.conf to tell Xorg to load it.

Code:
Section "Device"
    Identifier "nVidia 9800"
    Driver "nvidia"
EndSection
should be enough.

The Identifier is not important but it is required and must be unique.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Thu May 29, 2014 5:23 pm    Post subject: Reply with quote

Thanks for the quick reply.

Getting similar errors now...

Code:

[  2350.674] (II) LoadModule: "glx"
[  2350.674] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[  2350.686] (II) Module glx: vendor="NVIDIA Corporation"
[  2350.686]    compiled for 4.0.2, module version = 1.0.0
[  2350.686]    Module class: X.Org Server Extension
[  2350.686] (II) NVIDIA GLX Module  334.21  Thu Feb 27 13:54:04 PST 2014
[  2350.687] Loading extension GLX
[  2350.687] (II) LoadModule: "nvidia"
[  2350.687] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[  2350.687] (II) Module nvidia: vendor="NVIDIA Corporation"
[  2350.687]    compiled for 4.0.2, module version = 1.0.0
[  2350.687]    Module class: X.Org Video Driver
[  2350.687] (II) NVIDIA dlloader X Driver  334.21  Thu Feb 27 13:34:35 PST 2014
[  2350.687] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  2350.687] (--) using VT number 7

[  2350.690] (EE) No devices detected.
[  2350.690] (EE)
Fatal server error:
[  2350.690] (EE) no screens found(EE)
[  2350.690] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[  2350.690] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2350.690] (EE)


Getting late. I will crash for now but check the thread first thing in the AM.
Back to top
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 568

PostPosted: Thu May 29, 2014 6:37 pm    Post subject: Reply with quote

Your lspci says:
Code:
...
VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
...
VGA compatible controller: NVIDIA Corporation GT218 [NVS 3100M] (rev a2)
...

It looks like your laptop uses the optimus intel/nvidia combination. I don't know much about troubleshooting optimus but maybe try setting VIDEO_CARDS="intel" in your make.conf instead of nouveau/nvidia, for now. Your xorg log says there are some abi mismatches so you might have to recompile xorg-related packages.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54210
Location: 56N 3W

PostPosted: Thu May 29, 2014 7:20 pm    Post subject: Reply with quote

epsilon72,

Well caught!

kiss-o-matic,

You only have half an nvidia graphic s solution. Thats the half that can draw into the pixel buffer. It cannot read the pixel buffer to the screen, so at best, using the nvidia driver alone will get you no error messages and a black screen.

Make the intel driver work first, without the nvidia chip. The hard bit is then to use the nvidia chip to do the drawing and the intel chip to refresh the screen.

Anyway, walk before you run. Set up the intel driver as a first step.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Fri May 30, 2014 1:53 am    Post subject: Reply with quote

Thanks guys. I actually thought that might be it but did the lazy search: "lspci |grep -i vid" and only saw Nvidia.
Anyways, running it w/o xorg.conf doesn't work. With xorg.conf still doesn't work, but is a bit better. This is the output from Xorg.0.log

Code:

[   213.832] (II) LoadModule: "glx"
[   213.833] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   213.833] (EE) Failed to load /usr/lib64/xorg/modules/extensions/libglx.so: /usr/lib64/xorg/modules/extensions/libglx.so: cannot open shared object file: No such file or directory
[   213.833] (II) UnloadModule: "glx"
[   213.833] (II) Unloading glx
[   213.833] (EE) Failed to load module "glx" (loader failed, 7)
[   213.833] (II) LoadModule: "intel"
[   213.833] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   213.833] (II) Module intel: vendor="X.Org Foundation"
[   213.833]    compiled for 1.13.1, module version = 2.20.13
[   213.833]    Module class: X.Org Video Driver
[   213.833]    ABI class: X.Org Video Driver, version 13.1
[   213.835] (EE) module ABI major version (13) doesn't match the server's version (15)
[   213.835] (II) UnloadModule: "intel"
[   213.835] (II) Unloading intel
[   213.835] (EE) Failed to load module "intel" (module requirement mismatch, 0)
[   213.835] (EE) No drivers available.
[   213.835] (EE)
Fatal server error:
[   213.837] (EE) no screens found(EE)
[   213.839] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   213.844] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   213.845] (EE)
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 325
Location: 39.885° N. -88.913° W.

PostPosted: Fri May 30, 2014 2:50 am    Post subject: Reply with quote

kiss-o-matic

Did you emerge the x11-base/xorg-drivers ? Or at least up date them?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54210
Location: 56N 3W

PostPosted: Fri May 30, 2014 5:26 pm    Post subject: Reply with quote

kiss-o-matic,

nVidia alone will never work for you.

Read the nVidia README file, chapters 33 and 36, from memory and look at the bumblebee project.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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