Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] No X with xorg.conf - are there new rules?
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
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Tue Feb 02, 2016 12:35 pm    Post subject: [SOLVED] No X with xorg.conf - are there new rules? Reply with quote

Hi,

For the long time I used my Gentoo with Nvidia Optimus thanks to Bumblebee. From a year ago I use Nvidia Optimus driver without bumblebee. Thanks to this article: https://wiki.gentoo.org/wiki/NVIDIA/Optimus I did create xorg.conf file (see bellow) and everything was fine till Yesterday.

Unfortunately, after Yesterday system update, I cannot start X. Step by step I realized I could not startx X only when I had /etc/X11/xorg.conf file. Deleting this file means X start, but with no hardware support for nvidia.

I tested 4 options by eselect opengl (all logs are bellow).
[1] opengl nvidia without /etc/X11/xorg.conf file - X works
http://pastebin.com/GT64CVmD
[2] opengl xorg-x11 without /etc/X11/xorg.conf file - X works
http://pastebin.com/UwfxMb3L
[3] opengl nvidia with /etc/X11/xorg.conf file - black screen
http://pastebin.com/kjsXQcDW
[4] opengl xorg-x11 with /etc/X11/xorg.conf file - black screen
http://pastebin.com/VYm54UKJ

Are there a new rules /etc/X11/xorg.conf file? What to do now to have nvidia without bumblebee with full hardware support? Should I test old nvidia driver or maybe intel-driver?

My xorg.conf driver, which used to work for last year:
Code:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    # e.g. BusID "PCI:1:0:0"
    Option "ConnectedMonitor" "CRT-0"
    Option "CustomEDID" "CRT-0:/lib/firmware/edid/1920x1080_Clevo_W670SR.bin"
    Option "UseEDID" "True"
EndSection

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

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "CustomEDID" "CRT-0:/lib/firmware/edid/1920x1080_Clevo_W670SR.bin"
EndSection

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


Code:
# xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x47 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 5 associated providers: 0 name:Intel


Code:
*  x11-drivers/nvidia-drivers
      Latest version available: 361.18-r4
      Latest version installed: 361.18-r4


Code:
*  x11-drivers/xf86-video-intel
      Latest version available: 2.99.917_p20160122
      Latest version installed: 2.99.917_p20160122


Last edited by Xywa on Wed Feb 03, 2016 6:10 am; edited 2 times in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue Feb 02, 2016 7:23 pm    Post subject: Reply with quote

laptop here, but without multi gpu thing.
asus g75vw has the nivdia-gpu attached to the display directly, without the intel gpu crap.

afaik for quite a while the configs are there

Code:
cat /etc/X11/xorg.conf.d/nvidia.conf
Section "Device"
         Identifier  "nvidia"
         Driver      "nvidia"
         Option "Coolbits" "28"
         Option "NoLogo" "True"
EndSection

# This is a trailing line, it is needed so that End Section is not the last line
ASUS-G75VW roman # cat /etc/X11/xorg.conf.d/20opengl.conf
Section "Files"
   ModulePath "/usr/lib32/xorg/modules"
   ModulePath "/usr/lib64/opengl/nvidia"
   ModulePath "/usr/lib64/xorg/modules"
EndSection


the multi gpu thing in your case makes things more complicated. please check that folder i gave hint to. the files can be named to whatever you like, afaik.

is not needed anymore, ...

Code:
ASUS-G75VW roman # cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory


I think all that stuff went into that directory above, where i gave you my example for non multi gpu laptop.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Tue Feb 02, 2016 8:47 pm    Post subject: Reply with quote

The question is - why it doesn't work, as used to do just few dyes ago?

New intel or nvidia driver casing this or new xorg-server?

It looks new intel-driver making the problem, have a look at this option
Quote:
[3] opengl nvidia with /etc/X11/xorg.conf file - black screen

http://pastebin.com/kjsXQcDW
(Nvidia driver and nvidia glx are loaded, also intel, everything should work fine, but is blank screen - looks like transmition to intel from nvidia is not working)


Last edited by Xywa on Wed Feb 03, 2016 6:21 am; edited 4 times in total
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Wed Feb 03, 2016 5:58 am    Post subject: Reply with quote

Hi,

Many thanks to the Arch team and their phenomenal Wiki:
https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Alternative_configuration
Code:
[  3708.779] (EE) Screen 1 deleted because of no matching config section.

This sollution ^^ helped in my case:
In /etc/X11/xorg.conf I should change from this:
Screen 0 "nvidia"
to this
Screen 1 "nvidia"

Works and SOLVED :P
I am not sure what was causing the problem, but Arch Wiki was updated 4 days ago, exactly when my problems started.

I bet there is something new with intel drivers (or xorg-server), as when I start Gentoo system (text mode), login on TTY1 console looks strange now and did not work, I have to swtich into other one eg TTY2 nad there is everything fine.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Feb 03, 2016 11:25 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Xorg/Guide

Quote:
The xorg.conf.d directory
Important
Configuring files in xorg.conf.d should be seen as a last resort option. If possible it is desirable to run Xorg without any special configuration.

Most of the configuration files for Xorg are stored in /etc/X11/xorg.conf.d/. Each file is given a unique name and ends in .conf. The file names in Xorg's configuration directory will be read in alpha numeric order. For example, 10-evdev.conf will be read before 20-synaptics.conf; a-evdev.conf will be read before b-synaptics.conf, and so on. The files in this directory are not required to be numbered, but doing so will help to keep them organized. Organization is helpful when debugging faulty configuration files.

{{Note|Xorg provides example configurations in /usr/share/doc/xorg-server-${version}/xorg.conf.example.bz2. These can be used to create custom configuration files in {{Path|[[/etc/X11/xorg.conf.d/}}. The examples are heavily commented, but if more documentation regarding the syntax is needed, man xorg.conf is always available. Other examples can be found in the section Other resources at the end of this guide.}}


For myself xorg.conf is depreciated. I did not needed it for 3 boxes in past 2 years.

Most stuff is configured in .i3config here, few bits, bare minimum /etc/X11/xorg.conf.d/
I overwrite most stuff in my .i3config of my user

Quote:
The X server is designed to work out-of-the-box, with no need to manually edit Xorg's configuration files. It should detect and configure devices such as displays, keyboards, and mice.


Which is the case

nvidia-driver is a binary blob, like skype has it's issues. that is out of the scope. Big green company dictates on how the hardware is sw wise used.

especially pay attention to Tweaking X settings

there is no word of xorg.conf anymore. I remember guides who pointed to xorg.conf

my opinion is stated above.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1575
Location: /mnt/Gentoo/Europe

PostPosted: Thu Feb 04, 2016 7:02 am    Post subject: Reply with quote

tw04l124 wrote:
For myself xorg.conf is depreciated. I did not needed it for 3 boxes in past 2 years.


I had the same, but then Optimus came...
and bad words later on :D
https://youtu.be/_36yNWw_07g

I think I left bumblebee just a yer ago (after 2 years) to use Nvidia driver and... xorg.conf
and Nvidia driver still cannot fix tearing...
https://devtalk.nvidia.com/default/topic/775691/linux/vsync-issue-nvidia-prime-ux32vd-with-gt620-m-/1
^^ This post was written in 09/2014.
1.5 years later on (in the post written few days ago), there is chance that tearing will be eliminate in 4.5 kernel :D
We have 4.4.1 in Gentoo so far.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Feb 04, 2016 1:43 pm    Post subject: Reply with quote

I have had my reason why i bought Asus g75vw notebook, where the nvida gpu is hardwired to the display.
it has some issues with the linux kernel, because intel and the kernel org guys suspect every notebook these days only have intel + nvidia gpu crap combo.

The workaround is with xrandr. But kernel.org guys, especially the intel guy, just asks for lots of data, but than quietly for months.

My personal recommendation is to not buy any intel gpu or intel gpu combo notebooks. Those intel gpus are crap and sluggish. Kinda happy that the hardware is gone. Did not worked as i bought it and went worse with youtube, gnome, and other "light - medium" software.

Quote:
no synchronization between the source device producing the pixels and the sink device reading them. I.e., in a typical NVIDIA + Intel configuration


crap. slow gpu, slows down much faster nvidia-gpu. broken by design. thanks for the perfect example.
When you buy such hardware, you have to be aware you buy crap, and not something which will work flawless or smoothly.

And regarding gpus, the phast has shown, that a decent gpu is needed and the gpu requirements increase over hte years, it never decreased afaik in my expierence. I could use a 9800m gts for 7 yeras, because it was high end card. No issues.

where the intel gpu made fuss since i ahd that notebook (5 yeras) sold in september 2015.
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