Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 574766

Summary: black screen xorg-server 1.18 and Nvidia Optimus
Product: Gentoo Linux Reporter: vylaern <vylaern>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: major CC: pchrist
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=92313
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 1.18.1 Reverse Prime patch.

Description vylaern 2016-02-15 07:35:04 UTC
Blank screen with xorg-server 1.18.1 and nvidia optimus after startx (eselect opengl nvidia).

Looks like on arch linux there is a patch called 1.18.1-3:
https://bugs.archlinux.org/task/47151

Tested with such drivers:
x11-drivers/xf86-video-intel
2.99.917_p20160213
2.99.917_p20160203
2.99.917_p20160122
x11-drivers/nvidia-drivers
361.28-r2
361.28

Reproducible: Always

Steps to Reproduce:
1.startx from console
2.
3.
Actual Results:  
Black screen.

Expected Results:  
Should be working X system.

I tested both KDE and pure X, form ordinary user and root account - the same. The only solution is to switch into - eselect opengl xorg-x11.
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2016-02-29 11:48:45 UTC
Please paste "emerge --info" output, whether this is happening to external monitor or both monitors and lspci output if it's easy. Also give it a try with x11-drivers/xf86-video-intel-2.99.917_p20160224 and can you confirm xorg-server-1.17.4 works flawlessly and with what opengl drivers?
Comment 2 Sven B. 2016-02-29 14:03:16 UTC
Created attachment 427004 [details, diff]
1.18.1 Reverse Prime patch.

Well for the time being your could add the patch[1] manually to /etc/portage/patches/x11-base/xorg-server-1.18.1 to get it working again.

(in case of xfce, i also had to remove ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml , otherwise login failed after the upgrade)

also:
https://bugs.gentoo.org/show_bug.cgi?id=574410

[1] https://cgit.freedesktop.org/xorg/xserver/diff/?id=7bb64d8c1de9659f11da7917772919b071e9db82
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2016-02-29 14:58:56 UTC
Ok, then I'm resolving this as duplicate of bug 574410 , to continue the conversation there. If you feel we shouldn't please reopen.

*** This bug has been marked as a duplicate of bug 574410 ***