Bug 99829

Summary: [IVB] xrandr fails after resume from hibernation since kernel 4.7+
Product: DRI Reporter: Pedro Ribeiro <pedrib>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: IVB i915 features: power/suspend-resume
Attachments:
Description Flags
Dmesg after first boot
none
dmesg after resume from hibernate and trying to xrandr
none
Kernel config for 4.10-rc8-890e171e84eb11944701de9d53c1162dd5c38142
none
Full dmesg with hibernate and xrandr
none
xrandr --verbose output none

Description Pedro Ribeiro 2017-02-15 18:19:40 UTC
Created attachment 129647 [details]
Dmesg after first boot

Since kernel 4.7 (at least, see below), whenever I resume from hibernation and try to use xrandr to manipulate any video output, my screen goes off and on again and this message is displayed:
xrandr: Configure crtc X failed

With no effect happening, whatever the xrandr command I issued.

This has been confirmed in kernel 4.7, 4.8, 4.9 and 4.10-rc8 drm-tip that I've just built now up to commit 890e171e84eb11944701de9d53c1162dd5c38142.

I can't recall exactly, but I'm pretty sure 4.6 has this issue, and MAYBE 4.5.
I am pretty sure however that 4.4 works just fine as I've been using that for a long time.

This is the same issue described here, and already bisected in October last year by another user:
https://lkml.org/lkml/2016/10/28/441

My hardware is a Lenovo X230 Ivy Bridge i5-3320m. Distro is Debian amd64, mix of stable and testing.

I'm attaching the dmesg logs before and after hibernation using drm-tip and drm.debug=0xf.
Comment 1 Pedro Ribeiro 2017-02-15 18:20:07 UTC
Created attachment 129648 [details]
dmesg after resume from hibernate and trying to xrandr
Comment 2 Pedro Ribeiro 2017-02-15 18:21:23 UTC
Created attachment 129649 [details]
Kernel config for 4.10-rc8-890e171e84eb11944701de9d53c1162dd5c38142
Comment 3 Pedro Ribeiro 2017-02-15 18:23:16 UTC
Let me know if you want me to bisect it again.
Comment 4 Pedro Ribeiro 2017-02-15 18:31:38 UTC
Created attachment 129650 [details]
Full dmesg with hibernate and xrandr
Comment 5 Pedro Ribeiro 2017-02-15 18:31:59 UTC
Created attachment 129651 [details]
xrandr --verbose output
Comment 6 Pedro Ribeiro 2017-03-17 00:25:34 UTC
Problem appears to be fixed in 4.9.14. This can be closed.
Comment 7 yann 2017-03-17 09:28:05 UTC
(In reply to Pedro Ribeiro from comment #6)
> Problem appears to be fixed in 4.9.14. This can be closed.

thanks Pedro Ribeiro for your feedback

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.