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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

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.
Comment by pavan yalamanchili (pavanky) - Monday, 20 October 2014, 06:25 GMT
FYI, forum thread where others are talking about the same issue.

https://bbs.archlinux.org/viewtopic.php?pid=1467820#p1467820
Comment by Jan de Groot (JGC) - Monday, 17 November 2014, 18:09 GMT
This is an old bug that was fixed and later unfixed when wayland support was merged:
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.
Comment by Matej Lach (MatejLach) - Monday, 29 December 2014, 22:05 GMT
Any progress on this?
Thanks.
Comment by Karol (rewik) - Wednesday, 31 December 2014, 17:43 GMT
Currently on my system:
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
Comment by Jan de Groot (JGC) - Thursday, 06 August 2015, 11:11 GMT
  • Field changed: Status (Assigned → Waiting on Response)
Is this still an issue with 3.16?
Comment by Karol (rewik) - Wednesday, 02 September 2015, 10:49 GMT
Yes, it's still an issue.
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.
Comment by Lubosz Sarnecki (lubosz) - Thursday, 08 October 2015, 22:54 GMT
Bug is still present with GNOME 3.18.
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.
Comment by Jan Alexander Steffens (heftig) - Thursday, 08 October 2015, 23:18 GMT
Is there no upstream bug report?
Comment by Karol (rewik) - Monday, 12 October 2015, 13:52 GMT
@Lubosz: as I've written this doesn't seem to be a mutter bug, but a problem with gdm ignoring the /etc/gdm/Init/Default file altogether
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)
Comment by Samantha McVey (samcv) - Friday, 10 June 2016, 22:30 GMT
Can somebody please report back on whether this bug still exists in the most recent versions of Arch Linux packages? Your response is greatly appreciated.
Comment by Matej Lach (MatejLach) - Saturday, 11 June 2016, 14:16 GMT
@samcv: for me, GNOME itself now works, but I can't use GDM and my background will get changed to some random formation of pixels on wake from sleep.
Comment by Guih (guikiller) - Thursday, 23 June 2016, 22:23 GMT
Problem with GNOME 3.18.2 and NVIDIA GT 740M, GDM don't wake after reboot.
Comment by Jan de Groot (JGC) - Tuesday, 25 April 2017, 08:39 GMT
Is this still an issue with 3.24?

Loading...