Bug 99829 - [IVB] xrandr fails after resume from hibernation since kernel 4.7+
Summary: [IVB] xrandr fails after resume from hibernation since kernel 4.7+
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 18:19 UTC by Pedro Ribeiro
Modified: 2017-03-17 09:28 UTC (History)
1 user (show)

See Also:
i915 platform: IVB
i915 features: power/suspend-resume


Attachments
Dmesg after first boot (132.29 KB, text/plain)
2017-02-15 18:19 UTC, Pedro Ribeiro
no flags Details
dmesg after resume from hibernate and trying to xrandr (131.92 KB, text/plain)
2017-02-15 18:20 UTC, Pedro Ribeiro
no flags Details
Kernel config for 4.10-rc8-890e171e84eb11944701de9d53c1162dd5c38142 (182.08 KB, application/x-config)
2017-02-15 18:21 UTC, Pedro Ribeiro
no flags Details
Full dmesg with hibernate and xrandr (898.26 KB, text/plain)
2017-02-15 18:31 UTC, Pedro Ribeiro
no flags Details
xrandr --verbose output (16.72 KB, text/plain)
2017-02-15 18:31 UTC, Pedro Ribeiro
no flags Details

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.