View previous topic :: View next topic |
Author |
Message |
hfk22 n00b
Joined: 02 Dec 2013 Posts: 42
|
Posted: Thu Sep 29, 2016 11:10 pm Post subject: xorg-server-1.18.4 breaks X with NVIDIA optimus [SOLVED] |
|
|
I recently did an an emerge world and was upgraded to xorg-server-1.18.4, which ended up breaking X for my setup. I've a laptop using an NVIDIA optimus chip, which had been working flawlessly before with the xorg.conf
Code: |
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
#Option "AllowEmptyInitialConfiguration"
#Option "UseDisplayDevice" "none"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
|
and a .xinitrc with
Code: |
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
|
at the top. What appeared to change is that xrandr could no longer find as a provider for the command
Code: |
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
Downgrading to 1.7.4 seemed to fix things. Specifically, I now mask
Code: |
>=x11-drivers/xf86-input-evdev-2.10
>=x11-base/xorg-drivers-1.18
>=x11-base/xorg-server-1.18
|
That said, does anyone know what changed between xorg-server 1.17 and 1.18 that would cause this sort of thing to break?
Last edited by hfk22 on Thu Oct 06, 2016 6:29 pm; edited 1 time in total |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
|
Back to top |
|
|
hfk22 n00b
Joined: 02 Dec 2013 Posts: 42
|
Posted: Thu Oct 06, 2016 6:28 pm Post subject: |
|
|
Funny enough, a combination of the things in that post fixed it for me. Thanks!
For reference in case anyone runs into this on their setup, I'm running on a Clevo W230SS or a Sager NP7338. My new xorg.conf file is:
Code: |
Section "ServerLayout"
Identifier "layout"
Screen 1 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection |
Note, we're now on screen 1 and not screen 0 as before. In addition, I needed to recompile xorg-server with the glamor flag. In other words, I added
Code: | x11-base/xorg-server glamor |
to package.use.
Thanks again for pointing me to that other thread! |
|
Back to top |
|
|
|