Bug 31139 - MBP5,x displays not turned on on resume
Summary: MBP5,x displays not turned on on resume
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 38350 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-26 10:33 UTC by Paul Sadauskas
Modified: 2015-09-07 21:29 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
3.13.0.0-git10.1 kernel log / suspend + resume (122.74 KB, text/plain)
2013-11-25 08:32 UTC, Pierre Moreau
no flags Details

Description Paul Sadauskas 2010-10-26 10:33:52 UTC
MacBook Pro (Mid 2010 model) with Nvidia NV50 using nouveau driver on Arch Linux.

Using both the packaged xf86-video-nouveau (0.0.16_git20100819) and nouveau from git, the display fails to resume after sleep. Happens when closing the lid, and using `pm-suspend`, even after removing pm scripts 98video-quirks and 99-video as suggested in other bug trackers. 

After sleeping, the display never comes on, nor does the display backlight. External displays connected to the Mini-DisplayPort->DVI stay asleep (amber LED). Sleeping from and/or waking to a non-X virtual terminal (eg, Ctrl-Alt-F1) does not restore the display, nor does switching after waking. The laptop is responsive, keyboard backlight comes on, and I can type `sudo reboot` into a terminal that I left focused before sleeping, and the laptop shuts down and reboots, with the display working after reboot. 

Attached is messages.log of the sleep (first line), and the resume (line 35 or so). Please let me know what additonal information is needed.
Comment 1 Rob Clark 2011-06-29 06:03:26 UTC
fwiw, I see same issue on a MBP-5,4 (ubuntu 11.04)
Comment 2 Jon Gjengset 2012-04-12 02:11:43 UTC
fwiw, this issue is still present in kernel 3.3.1 (Arch Linux) with xf86-video-nouveau 0.0.16_git20120210.
Comment 3 Ilia Mirkin 2013-08-31 05:00:12 UTC
Is this still an issue with the latest software?
Comment 4 Pierre Moreau 2013-11-18 20:04:13 UTC
I have the same issue on MacBook Pro (mid 2009 - NV96 + NVAC), running on 3.13.0.0-git5.1. However laptop is not responsive after wakening: fans don't go on, no keyboard backlight... It seems the computer is still sleeping; I'll try to ssh it and post the results here.
Comment 5 Pierre Moreau 2013-11-25 08:32:24 UTC
Created attachment 89730 [details]
3.13.0.0-git10.1 kernel log / suspend + resume

Adding 3.13.0.0-git10.1 kernel log, with suspend / resume / suspend /resume as a sequence.

Kernel options were: nouveau.noaccel=1 nouveau.modeset=0 3
Results: computer is up and running, interactive but screen does not light up

I tried with only nouveau.noaccel=1 but boot hangs up after initialising the nv96 card; it was working on kernel 3.11.x (though the screen was scrambled), so I'll fill a bug report for this regression and see if I can bisect it. Adding nouveau.config=NvMSI=0 changes nothing.
Comment 6 Pierre Moreau 2014-09-16 07:21:03 UTC
*** Bug 38350 has been marked as a duplicate of this bug. ***
Comment 7 Pierre Moreau 2014-09-16 07:30:10 UTC
I've been playing a bit with the apple-gmux driver to check if it was the one responsible but without success; the only difference between before suspending and after resuming being GMUX_PORT_SWITCH_GET_DISPLAY which used to be 24 before suspending, and equals to 0 when resuming (and the discrete card coming back online, but that was already dealt with). So, without Nouveau loaded, the screen will stay black.

However, if using patches from https://bugs.freedesktop.org/show_bug.cgi?id=27501#c29, the screen resumes correctly.
Comment 8 Pierre Moreau 2015-09-07 21:29:20 UTC
A friend tested on his MacBook Pro (Mid 2010) with an MCP89, running Linux 4.1.6 and it worked. Closing as fixed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.