Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-server-1.18.4 breaks X with NVIDIA optimus [SOLVED]
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
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Thu Sep 29, 2016 11:10 pm    Post subject: xorg-server-1.18.4 breaks X with NVIDIA optimus [SOLVED] Reply with quote

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
Code:
modesetting
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
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1635
Location: United Kingdom

PostPosted: Fri Sep 30, 2016 2:52 pm    Post subject: Reply with quote

Gentoo Forums -> Desktop Environments -> What's up with xorg-server 1.18 and Optimus?. This?
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Thu Oct 06, 2016 6:28 pm    Post subject: Reply with quote

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
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