FS#42452 - [mutter] 3.14 does not work with NVIDIA Optimus
Attached to Project:
Arch Linux
Opened by pavan yalamanchili (pavanky) - Monday, 20 October 2014, 06:25 GMT
Last edited by Jan de Groot (JGC) - Sunday, 04 June 2017, 22:59 GMT
Opened by pavan yalamanchili (pavanky) - Monday, 20 October 2014, 06:25 GMT
Last edited by Jan de Groot (JGC) - Sunday, 04 June 2017, 22:59 GMT
|
Details
Trying to start GNOME 3.14 using startx or even using GDM
with NVIDIA Optimus results in a blank screen.
awesomewm, kde plasma next work just fine. Using startx: The contents of the .xinitrc file ---------------- xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto #exec awesome exec gnome-session #exec startkde ------------------ I also tried starting gdm by adding the following lines at the end of /etc/gdm/Init/Default ---------------- exec xrandr --setprovideroutputsource modesetting NVIDIA-0 exec xrandr --auto ---------------- The NVIDIA driver version used: 343.22 |
This task depends upon
Closed by Jan de Groot (JGC)
Sunday, 04 June 2017, 22:59 GMT
Reason for closing: No response
Additional comments about closing: Assuming fixed.
Sunday, 04 June 2017, 22:59 GMT
Reason for closing: No response
Additional comments about closing: Assuming fixed.
https://bbs.archlinux.org/viewtopic.php?pid=1467820#p1467820
https://git.gnome.org/browse/mutter/commit/?id=3d1d155
That commit was never merged into src/backends/x11/meta-monitor-manager-xrandr.c in 3.14.
Thanks.
gdm gets stuck at a black screen (with the two xrandr lines at the beginning of /etc/gdm/Init/Default)
starting X via startx (with the xrandr lines in /etc/X11/xinit/xinitrc) and then running gnome-session WORKS (replacing 'exec xterm' with 'exec gnome-session' at the end of xinitrc also works)
related package versions:
mutter 3.14.3-1
gdm 3.14.1-2
nvidia 343.36-2
On 3.16 I'm not sure if /etc/gdm/Init/Default is even used anymore, as the debug lines I've put in there (simple echo redirected to files) never execute.
Still using the xinitrc solution.
Starting gnome-session via startx and xrandr stuff in .xinitrc works.
However gdm does not work, black screen (so black the backlight of the screen is off).
Adding xrandr hacks to /etc/gdm/Init/Default does not work, as suggested by various sources and the Gentoo wiki.
@Jan: Can't we patch mutter with the unmerged commit?
Mutter maintainers should show some love for NVIDIA Optimus. Is there an upstream bug for this?
Edit: I wonder why this is an Mutter bug, if clearly GDM fails, and gnome-session works fine-ish with xinitrc.
it has been reported upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=751602
there's also a thread on Gentoo forums with the same problem (with associated bug on Gentoo's bugzilla)