Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] NVidia drivers, X server (and Fast Foot)
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
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Fri Jan 10, 2014 1:41 pm    Post subject: [SOLVED] NVidia drivers, X server (and Fast Foot) Reply with quote

Hello everyone!

I'm trying to install NVidia proprietary drivers and X server(I'm doing both first time).

My video card is GeForce GT 740M.

I done what is written in Gentoo wiki about KDE(and further, following the lonks to X server and NVidia drivers). I.e. I set the KDE profile, installed services, build kernel with the appropriate options, rebuilded world with suitable use flags.

Here the problems comes out.

1. X server doesn't start. startx outputs
Code:

Loading extension GLX
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)


Here is the end of /var/log/Xorg.0.log
Code:

[    94.457] (II) LoadModule: "glx"
[    94.457] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    94.464] (II) Module glx: vendor="NVIDIA Corporation"
[    94.464]    compiled for 4.0.2, module version = 1.0.0
[    94.464]    Module class: X.Org Server Extension
[    94.464] (II) NVIDIA GLX Module  304.117  Tue Nov 26 21:45:09 PST 2013
[    94.465] Loading extension GLX
[    94.465] (II) LoadModule: "nvidia"
[    94.465] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    94.465] (II) Module nvidia: vendor="NVIDIA Corporation"
[    94.465]    compiled for 4.0.2, module version = 1.0.0
[    94.465]    Module class: X.Org Video Driver
[    94.466] (II) NVIDIA dlloader X Driver  304.117  Tue Nov 26 21:27:08 PST 2013
[    94.466] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    94.466] (--) using VT number 7

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


As we can see, an old driver version mentioned there: "NVIDIA GLX Module 304.117". For some reason, it is this version that emerge loads. emerge @module-rebuild output begin contains a line
Code:

>>> Running pre-merge checks for x11-drivers/nvidia-drivers-304.117

Why it loads an old version?

Also, my notebook became hot. Even if I'm in console and do nothing it's rather warm and can make noise with fan. If I boot from RescueCD it's cold. The problem with heat remains even if I boot from my old kernel, which I worked with when there were no such problem.

2. My boot manager(rEFInd) starts only if the BIOS option Fast Boot is set on. If I'm trying to boot without it all I get is the ASUS logo and black screen after. It started fine without FastBoot earlier.

As I noticed this strangeness about the moment I started to install X server, probably it is associated with my actions.

What may cause the problem?


Last edited by vanger on Mon Jan 13, 2014 7:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1371

PostPosted: Fri Jan 10, 2014 2:11 pm    Post subject: Re: NVidia drivers, X server (and Fast Foot) Reply with quote

vanger wrote:
Why it loads an old version?
Code:
# equery b `which eshowkw`
 * Searching for /usr/bin/eshowkw ...                                                                     
app-portage/gentoolkit-0.3.0.8-r2

# eshowkw nvidia-drivers
                   
Keywords for x11-drivers/nvidia-drivers:                                                                   
             |                           | u   |                                                           
             | a a             p     s   | n   |                                                           
             | l m   h i m m   p s   p   | u s | r                                                         
             | p d a p a 6 i p c 3   a x | s l | e
             | h 6 r p 6 8 p p 6 9 s r 8 | e o | p
             | a 4 m a 4 k s c 4 0 h c 6 | d t | o
-------------+---------------------------+-----+-------
    96.43.23 | * + * * * * * * * * * * + | # 0 | gentoo
   173.14.39 | * + * * * * * * * * * * + | #   | gentoo
     304.117 | * + * * * * * * * * * * + | o   | gentoo
[M][I]319.76 | * + * * * * * * * * * * + | o   | gentoo
   [M]331.20 | * + * * * * * * * * * * + | o   | gentoo

_________________
fun2gen2
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Fri Jan 10, 2014 2:54 pm    Post subject: Re: NVidia drivers, X server (and Fast Foot) Reply with quote

Thank you for a hint!

My
Code:
eshowkw nvidia-drivers
output is exactly the same. Can you explain me its output? The left column is the version of a package, right? [I] seems that it's current version installed. [M] means masked * -- not present is the system, + -- present. I don't know how exactly interpret 'unused' and 'slot' columns .
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Jan 10, 2014 3:22 pm    Post subject: Reply with quote

@ vanger,
304.117 is the latest stable nvidia-drivers version.
Read this bug https://bugs.gentoo.org/show_bug.cgi?id=487558
Could you show the whole xorg log please.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Fri Jan 10, 2014 3:28 pm    Post subject: Reply with quote

Thanks for clarifying about latest stable driver version. But what about 319.76 version? It's stable, according to this: http://packages.gentoo.org/package/x11-drivers/nvidia-drivers and mature enough.

Here is my Xorg.0.log: http://pastebin.com/HJLjhzBV
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Jan 10, 2014 4:47 pm    Post subject: Reply with quote

Hi vanger,
You're right about Gentoo packages but plse read the next to last comment by Adreas Hüttel.
You have KDE installed like I have.
I suggest to use /etc.conf.d/xdm and enter "kdm" at DISPLAYMANAGER.
Then
Code:
rc-update add xdm default

Hope this will solve the problem.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Fri Jan 10, 2014 6:17 pm    Post subject: Reply with quote

I edited /etc.conf.d/xdm, installed kdm and set it as default display manager. It loads but seems that it not works correct: at Ctrl+Alt+F7 screen is the darkness only with a blinking dash in the left top corner. Looks like an empty screen in text mode.

startx in console still shows the same error. I tried to switch to nouveau driver(before kdm installation) but everything remained the same: X didn't loaded, notebook fan made noise(even if nothing's going on).
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Jan 10, 2014 6:42 pm    Post subject: Reply with quote

Do you have an xorg.conf anywhere?
If so what's in it.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Fri Jan 10, 2014 7:48 pm    Post subject: Reply with quote

Yes. There are two of them.
/etc/X11/xorg.conf: http://pastebin.com/bV38AXRD
and
/usr/share/portage/config/sets/xorg.conf: http://pastebin.com/yuP1mv1k
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Jan 10, 2014 8:13 pm    Post subject: Reply with quote

Well the one in /etc/X11 looks ok.
The other one is only used by portage so has nothing to do with the problem.
I really am out of ideas why xorg.log says "no screens found".
Maybe someone else can find the problem.

One thing is different in my system:
I have /etc/X11/xorg.conf.d/20-xorg.conf and not /etc/X11/xorg.conf.
Not sure if it makes any difference.
Gerard.

Edit: Been a long time since I installed.
Reread this https://wiki.gentoo.org/wiki/Xorg/Configuration
Apparently the xorg.conf should be in /etc/X11/xorg.conf.d !
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Fri Jan 10, 2014 8:58 pm    Post subject: Reply with quote

I just had this problem. You need to force xorg to use your drivers.

Code:

# As root
mkdir /etc/X11/xorg.conf.d


This creates the directory for custom Xorg settings. It was not there by default so I had to add it. Then, using your favorite editor, create a file in that directory called: nvidia.conf

Copy and paste the below settings into that file:

Code:

Section "Device"
    Identifier  "nvidia"
    Driver      "nvidia"
EndSection


I strongly recommend you get rid of your xorg.conf and let X do its own thing outside of the hint to use nvidia drivers.
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Fri Jan 10, 2014 9:19 pm    Post subject: Reply with quote

I created /etc/X11/xorg.conf.d/nvidia.conf with the same lines, as wiki said, from the very beginning.

Do you propose to delete /etc/X11/xorg.conf?
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Fri Jan 10, 2014 10:05 pm    Post subject: Reply with quote

vanger wrote:
I created /etc/X11/xorg.conf.d/nvidia.conf with the same lines, as wiki said, from the very beginning.

Do you propose to delete /etc/X11/xorg.conf?


I would try moving it somewhere, like /root, so you can put it back if you need to, and seeing if that fixes it.

PS: You probably already know this, but don't move it to /tmp. /tmp gets cleared on reboot.
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Sat Jan 11, 2014 7:30 am    Post subject: Reply with quote

I tried to move xorg.conf from its primary place. Everything remained the same.

It seems that it's not a driver problem as I tried to unmask nvidia-drivers to get the latest version and even tried to switch to nouveau with the same result.

There should be some way to run x on this machine as Gentoo LiveDVD loads KDE successfully.

Thanks for advice about /tmp. I'm a complete newbie, so one more tip would not be superfluous.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2663
Location: Slovenia

PostPosted: Sat Jan 11, 2014 10:59 am    Post subject: Reply with quote

No one who participated in this thread thought of Optimus? That's the "problem" here.

Live distros work because they will use the integrated Intel graphics.
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Sat Jan 11, 2014 7:21 pm    Post subject: Reply with quote

I tried to switch to Intel drivers: rebuilt kernel, set proper use flag, rebuild world. But result is still the same: x doesn't start with the same errors.
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Sun Jan 12, 2014 12:57 am    Post subject: Reply with quote

Can you do me a favor and post the output of lspci? If you don't have it installed, you need to emerge the pciutils package. If you are doing it in the live cd, can you actually do an lspci -v or an lspci -k? I'd love to see what the kernel is loading for your video hardware. Also, a pastebin or copy and of your kernel config would be hugely helpful. I suspect there is an issue with your kernel config.
Back to top
View user's profile Send private message
vanger
n00b
n00b


Joined: 04 Jan 2014
Posts: 56

PostPosted: Mon Jan 13, 2014 6:45 pm    Post subject: Reply with quote

Hooray! It works now. Thanks to all participants for your time!

It seems, that it is Optimus that was the "problem". Here's the solution with my commentaries as I understand what is done. If I'm wrong, please, correct me.

1. Built kernel with Intel graphics support.

2. Ran
Code:
X -configure
. It created xorg.conf.new(http://pastebin.com/R2R2y8ZM) with two video output devices. One for Nvidia card and another for Intel.

2.1. Deleted information about second card from xorg.conf.new. Lines that were deleted:
Code:

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Code:

Section "Device"
        Identifier  "Card1"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"
EndSection

Code:

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Code:

        Screen      1  "Screen1" RightOf "Screen0"

(Section "ServerLayout")

3. Replaced /etc/X11/xorg.conf with edited xorg.conf.new.

4. ???

5. PROFIT!

As for heat, it's not the issue anymore. Probably it was related with usage of Nvidia card by maximum.
Fast Boot issues faded away too.

I have VIDEO_CARDS="intel nvidia" in make.conf and bumblebee installed. Am I understand right, that everything works draws via Intel card only. And the only way to use Nvidia card is optirun. In this instance Nvidia card would make the picture and would display it through Intel card(I was told something like this, if I understood correct).

BTW, how can I be sure that I'm actually have Optimus? My notebook documentation is very poor. Sticker on the notebook doesn't contain the word "Optimus".


PS.
lspci:
Code:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 740M] (rev a1)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
04:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)


lspci -k: http://pastebin.com/QtTbRKk2

lspci -v: http://pastebin.com/BsM8yfec
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