Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][X11][nvidia] startx fails to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
julien79
n00b
n00b


Joined: 06 Nov 2015
Posts: 6

PostPosted: Fri Nov 06, 2015 8:52 pm    Post subject: [SOLVED][X11][nvidia] startx fails to start Reply with quote

Hello

I am new to Gentoo and to this forum.

I am installing Gentoo for the first time, everything was ok until I tried to run startx.

The computer is a Dell Latitude E6420 laptop with the Nvidia GF119M [NVS 4200M] graphics (not mine, but I can use it freely at the moment).

Using the log files, I could repair a few things, but at the end X11 does not work:

http://pastebin.ca/raw/3238679

I am a bit lost due to lack of experience. Is there something special to investigate at this point?


Thanks a lot
julien


Last edited by julien79 on Mon Nov 23, 2015 11:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri Nov 06, 2015 9:26 pm    Post subject: Reply with quote

Probably Optimus graphics?
Back to top
View user's profile Send private message
julien79
n00b
n00b


Joined: 06 Nov 2015
Posts: 6

PostPosted: Fri Nov 06, 2015 9:56 pm    Post subject: Reply with quote

Yes. I completely missed it, even the "NVIDIA Driver with Optimus Laptops" page, maybe because I never heard about this technology before. Thank you very much!
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri Nov 06, 2015 10:00 pm    Post subject: Reply with quote

You are welcome!

And welcome to Gentoo and Gentoo Forums. :)
Back to top
View user's profile Send private message
julien79
n00b
n00b


Joined: 06 Nov 2015
Posts: 6

PostPosted: Fri Nov 13, 2015 2:05 pm    Post subject: Reply with quote

Thanks again

I tried to follow the documentations, but

1. I cannot get the EDID:
Code:
get edid

returns:
Code:
Attempting to use i2c interface
Looks like no busses have an EDID. Sorry!
Attempting to use the classical VBE interface
Illegal instruction


2. Problems with xrand too:
Code:
xrandr

returns:
Code:
Can't open display

(same with any xrand options)

Reading manual pages about Xorg, xrandr and read-edid did not help.

Any idea?
Back to top
View user's profile Send private message
gulivert
l33t
l33t


Joined: 17 Jun 2004
Posts: 863
Location: Switzerland

PostPosted: Tue Nov 17, 2015 9:56 pm    Post subject: Reply with quote

Hi,
Ok this laptop seems to have an Intel integrate graphic card?
And if I have good understand you added a new NVIDIA card inside and installed the official NVIDIA-Drivers (also seems from the xorg logs)

If your idea is to use Optimus technology you need to create a specific xorg.conf and add two command in the .xinitrc

Could you provide to us the result of "lspci" and "lshw -c video"

For you info here is my configuration to work with optimus
.xinitrc:
Code:

#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
...

the second and third lines are capital to work with optimus and has to be at the beginning of your xinitrc file as mine.

/etc/X11/xorg.conf
Code:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    # Change BusID if necessary. Tips: (lspci | grep 3D) (Change 01:00.0 to 1:0:0)
    BusID "PCI:1:0:0"
    Option              "UseEdidDpi" "False"
    Option              "DPI" "96 x 96"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "Yes"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    # Change BusID if necessary. Tips: (lspci | grep VGA) (Change 00:02.0 to 0:2:0)
    BusID "PCI:0:2:0"
    Option "AccelMethod"  "none"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection


Option Option "AllowEmptyInitialConfiguration" "Yes" is also capital for optimus and your xorg complains about this...

Gentoo wiki has a good wiki about this and also Arch linux wiki

About your last post this is normal that you do not get anything because these commands have to be run when X is running from an X session.

Good luck!
_________________
Macbook Pro Unibody 9.1 - Kernel 4.4.6 - Awesome 3.5
Back to top
View user's profile Send private message
julien79
n00b
n00b


Joined: 06 Nov 2015
Posts: 6

PostPosted: Mon Nov 23, 2015 11:47 pm    Post subject: Reply with quote

Thanks gulivert, it's working now.

Actually I needed to install x11-drivers/xf86-video-modesetting which was missing. Also, there was no .xinitrc file, but installing Openbox added it. I could have created it manually, but I wanted to use Openbox anyway.

gulivert wrote:

Ok this laptop seems to have an Intel integrate graphic card?
And if I have good understand you added a new NVIDIA card inside and installed the official NVIDIA-Drivers (also seems from the xorg logs)

Yes it has an Intel graphic card and a Nvidia card, but I did not install any hardware myself (someone gave me this laptop for some time, and I have no idea if the Nvidia card was added as an option or part of the original configuration).

Quote:

/etc/X11/xorg.conf
Code:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    # Change BusID if necessary. Tips: (lspci | grep 3D) (Change 01:00.0 to 1:0:0)
    BusID "PCI:1:0:0"
    Option              "UseEdidDpi" "False"
    Option              "DPI" "96 x 96"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "Yes"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    # Change BusID if necessary. Tips: (lspci | grep VGA) (Change 00:02.0 to 0:2:0)
    BusID "PCI:0:2:0"
    Option "AccelMethod"  "none"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection


I am using nearly the same file at the moment. Thanks for this!

Quote:

Gentoo wiki has a good wiki about this and also Arch linux wiki

I totally agree, these documentations are great. These, and the Linux manual are my main sources for learning!

Best regards
julien
Back to top
View user's profile Send private message
gulivert
l33t
l33t


Joined: 17 Jun 2004
Posts: 863
Location: Switzerland

PostPosted: Sun Dec 06, 2015 8:23 am    Post subject: Reply with quote

Great news, enjoy your Gentoo!!!
_________________
Macbook Pro Unibody 9.1 - Kernel 4.4.6 - Awesome 3.5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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