https://bugs.freedesktop.org/show_bug.cgi?id=42960
Bug #: 42960 Summary: Display does not work when resuming from suspend Classification: Unclassified Product: DRI Version: XOrg CVS Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: major Priority: medium Component: DRM/Radeon AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: sandy.8925@gmail.com
I have an ASUS K53TA laptop.
Relevant specs: AMD A6-3400M APU with integrated Radeon HD6520G and a discrete Radeon HD6650M. Both are connected through Crossfire (I think). Laptop display is though the integrated card.
Software info: Ubuntu 11.04 64 bit using Linux 3.2-rc1 kernel from kernel.org and xorg-edgers PPA
After resuming from suspend, display does not work.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #1 from Sandeep sandy.8925@gmail.com 2011-11-16 20:01:12 UTC --- Created attachment 53615 --> https://bugs.freedesktop.org/attachment.cgi?id=53615 glxinfo output
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #2 from Sandeep sandy.8925@gmail.com 2011-11-16 20:02:02 PST --- Created attachment 53616 --> https://bugs.freedesktop.org/attachment.cgi?id=53616 dmesg output before suspending and after resuming
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |interweiss@yahoo.ca
--- Comment #3 from Alex Deucher agd5f@yahoo.com 2011-11-17 06:16:06 PST --- *** Bug 42999 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #4 from Sandeep sandy.8925@gmail.com 2012-01-11 15:48:03 PST --- Created attachment 55471 --> https://bugs.freedesktop.org/attachment.cgi?id=55471 Output of lspci
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #5 from interweiss@yahoo.ca 2012-01-29 14:27:57 UTC --- Has any progress been made? I am willing to test some patches...
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #6 from interweiss@yahoo.ca --- Just a reminder, please try to fix this bug.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #7 from Sandeep sandy.8925@gmail.com --- I still face this problem even with the 3.14-rc2 kernel
Internal LVDS display does not work, but content still displays through external HDMI display.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #8 from leon_ti@mail.ru --- I can confirm similar behaviour for A6 "ARUBA" APU without any discrete GPU, at Samsubg NP535U3C laptop. leon_ti@leonid-samsung:~$ uname -a Linux leonid-samsung 3.12.0-031200-generic #201311031935 SMP Mon Nov 4 00:36:54 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #9 from Sandeep sandy.8925@gmail.com --- I booted Linux 3.13.6 with the drm.debug=4 parameter - it looks like the internal LVDS output is set to use a different CRTC than the HDMI output, even in clone mode.
The LVDS monitor's backlight is also off, it does not switch on at all or get enabled after suspend and resume. Only a full system restart will bring it back to life.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #10 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #9)
I booted Linux 3.13.6 with the drm.debug=4 parameter - it looks like the internal LVDS output is set to use a different CRTC than the HDMI output, even in clone mode.
Neither the driver nor the vbios uses the same crtc for clones since the displays almost always require different timings even if they are the same resolution.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #11 from Sandeep sandy.8925@gmail.com --- I attempted to check if it was a backlight problem, following the troubleshooting steps here: https://wiki.archlinux.org/index.php/Backlight
Booting with those kernel parameters doesn't help in my case.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #12 from Sandeep sandy.8925@gmail.com --- Note:
Suspend and resume works fine on Windows - the laptop's LVDS display is active and working even after suspend and resume.
I remember that this problem used to occur for Catalyst as well, around version 11.5 , but it got fixed a few months afterwards, and the LVDS display was active after suspend and resume.
I haven't used Catalyst for several months, so cannot comment on whether it still works fine now.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #13 from Sandeep sandy.8925@gmail.com --- Is there any other information I can provide to help solve this problem?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Sandeep sandy.8925@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #53616|0 |1 is obsolete| |
--- Comment #14 from Sandeep sandy.8925@gmail.com --- Created attachment 96754 --> https://bugs.freedesktop.org/attachment.cgi?id=96754&action=edit dmesg_linux_3.13.6_after_suspend_and_resume
dmesg contents for Linux kernel 3.13.6
This was recorded after suspend and resume. After resume, LVDS panel is not displaying anything (backlight off). Attempts to turn it on manually (using xrandr) did not work.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #15 from n0000b n0000b.n000b@gmail.com --- Hi! i've been experiencing some similar issue. (i posted in bug https://bugs.freedesktop.org/show_bug.cgi?id=43829.)
Have you tried with sudo pm-suspend --quirk-test --quirk-s3-bios
because if i run this my screen is able to turn on after the resume. Can you try it?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #16 from Sandeep sandy.8925@gmail.com --- Yes, that worked! Suspending using
"pm-suspend --quirk-test --quirk-s3-bios"
and the laptop LVDS panel works after resume.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #17 from Sandeep sandy.8925@gmail.com --- I was able to apply this workaround "permanently" by creating a config file in /etc/pm/config.d/ with the following line:
ADD_PARAMETERS="--quirk-s3-bios"
So, I have a temporary workaround, but it would be preferable to have this work out of the box.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
n0000b n0000b.n000b@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freedesktop.or | |g/show_bug.cgi?id=43829
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #18 from n0000b n0000b.n000b@gmail.com --- and how we make this work with "systemctl suspend"??
isn't pm-utils deprecated?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
n0000b n0000b.n000b@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freedesktop.or | |g/show_bug.cgi?id=73882
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zboszor@pr.hu
--- Comment #19 from Alex Deucher agd5f@yahoo.com --- *** Bug 43829 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #20 from Sandeep sandy.8925@gmail.com --- Yes!
Adding acpi_sleep=s3_bios to kernel parmeters works. Now, on suspend and resume the laptop's LVDS panel cames back to life - no external display attached.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #21 from n0000b n0000b.n000b@gmail.com --- great! also working for me with the kernel parameters. So happy, the first time i help squash a bug :') Now, how we make this go uptream, so it work out of the box and we can close this ticket :B
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #22 from Swoorup swoorupj@gmail.com --- Adding s3_bios to kernel parameters didn't work for me. The suspend just does not work anymore. Laptop wont suspend anymore.
My hardware: Asus -K55N Radeon HD7250G
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #23 from SpacemanSpiff hahaurt@gmail.com --- Works great on HP dv6z with 6755g2. thanks
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #24 from Swoorup swoorupj@gmail.com --- Hey guys are you able to help me out? I have got this on kernel parameters
pcie_aspm=force acpi_osi='!Windows 2012' acpi=force acpi_enforce_resources=lax acpi_backlight=vendor acpi_sleep=s3_bios
However when I try to suspend, the laptop just wont suspend or it suspends(randomly). But when I try to wake up I have got the same issue as before: blank screen. I'd have to reboot blindly again to use the system
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #25 from klausenbusk@hotmail.com --- (In reply to comment #22)
Adding s3_bios to kernel parameters didn't work for me. The suspend just does not work anymore. Laptop wont suspend anymore.
My hardware: Asus -K55N Radeon HD7250G
You can also try: acpi_sleep=s3_mode or acpi_sleep=s3_bios,s3_mode
A little info here:https://www.kernel.org/doc/Documentation/power/video.txt
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |djtm@gmx.net
--- Comment #26 from Alex Deucher agd5f@yahoo.com --- *** Bug 73882 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #27 from Swoorup swoorupj@gmail.com --- (In reply to comment #25)
(In reply to comment #22)
Adding s3_bios to kernel parameters didn't work for me. The suspend just does not work anymore. Laptop wont suspend anymore.
My hardware: Asus -K55N Radeon HD7250G
You can also try: acpi_sleep=s3_mode or acpi_sleep=s3_bios,s3_mode
A little info here:https://www.kernel.org/doc/Documentation/power/video.txt
Neither of that work. Also I am booted in UEFI mode, if that helps?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #28 from Sandeep sandy.8925@gmail.com --- @Swoorup: You have a lot of other kernel parameters that may be causing problems. Maybe you should remove some of them?
Specifically: pcie_aspm=force acpi_osi='!Windows 2012' acpi=force
acpi_enforce_resources=lax (not sure what this does)
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #29 from Alex Deucher agd5f@yahoo.com --- Unfortunately, the "fix" is just a workaround that just calls the legacy vbios post at resume time. This is normally disabled for KMS because it doesn't always work on all systems and also doesn't work with UEFI.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #30 from D djtm@gmx.net --- (In reply to comment #26)
*** Bug 73882 has been marked as a duplicate of this bug. ***
For some reason, if I use it both (s3_bios,s3_mode) as kernel parameter *and* as parameter for pm-resume, it works. Otherwise it doesn't. I had already tested the parameters only for pm-suspend without as much success before. May also be that 3.14 has improved things, though. Another system fixed.
Anyway,... thanks a lot! :)
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #31 from SpacemanSpiff hahaurt@gmail.com --- (In reply to comment #29)
Unfortunately, the "fix" is just a workaround that just calls the legacy vbios post at resume time. This is normally disabled for KMS because it doesn't always work on all systems and also doesn't work with UEFI.
Any possibility of a proper fix? Is this a bios bug? Workaround works on my machine but many people would probably work without using sleep as it doesnt work oob. thanks
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #32 from Sandeep sandy.8925@gmail.com --- I tested with 3.15-git , and it looks like the kernel parameter has no effect there - the same problem occurs again! Even with acpi_sleep=s3_bios , on suspend and resume the laptop LVDS display is blank.
Does anyone know if this was an intentional change, to remove the ability to do this?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #33 from Sandeep sandy.8925@gmail.com --- After poking around a bit, I found out that I can re-enable the LVDS display using KDE's display settings (which uses xrandr), so it's just that the display isn't turned on by default for some reason (even though it was being used before suspend)
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #34 from D djtm@gmx.net --- (In reply to comment #32)
I tested with 3.15-git , and it looks like the kernel parameter has no effect there - the same problem occurs again! Even with acpi_sleep=s3_bios , on suspend and resume the laptop LVDS display is blank.
Does anyone know if this was an intentional change, to remove the ability to do this?
Hi, did you check using echo mem > /sys/power/state?
Because e.g. pm-suspend resets those parameters via /proc/sys/kernel/acpi_video_flags. (Value should be 1, 2, or 3 if you have kernel parameters set)
For pm-suspend to work (e.g. *Ubuntu) you need to create a file /etc/pm/config.d/radeon which contains QUIRK_S3_BIOS="true" QUIRK_S3_MODE="true"
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #35 from D djtm@gmx.net --- By the way: I've noticed that freeze > /sys/power/state causes the same issue, only the fix does not work. It doesn't even help to suspend and resume the computer afterwards, the display remains blank.
Does someone have an idea on how to deal with this issue?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #36 from Sandeep sandy.8925@gmail.com --- When testing now, it works fine.
When I tested previously, before suspending, I might have turned off the laptop monitor using xrandr, which is why it looked like the problem was still present.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rdp.effort@gmail.com
--- Comment #37 from Alex Deucher agd5f@yahoo.com --- *** Bug 77562 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #38 from Alex Deucher agd5f@yahoo.com --- Created attachment 97562 --> https://bugs.freedesktop.org/attachment.cgi?id=97562&action=edit possible fix
Does the attached patch help?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #39 from Hardening rdp.effort@gmail.com --- Hi Alex,
I have just tested the possible fix and it has no effects here. I can provide a dmesg if it is useful.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #40 from S. Christian Collins s_chriscollins@hotmail.com --- Adding the quirk lines from comment #34 worked for me.
** My System ** OS: Kubuntu 14.04 amd64 w/ KDE SC 4.13.0 PC: HP Pavilion m6-1035dx CPU/GPU: AMD A10-4600M APU with Radeon HD 7660G Graphics RAM: 6GB DDR3 800 MHz Linux Kernel: 3.13.0-24-generic Screen Resolution: 1366 x 768 Xserver: 2:1.15.1-0ubuntu2
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #41 from D djtm@gmx.net --- (In reply to comment #38)
Does the attached patch help?
It does not fix suspend freeze for me if that's what you mean. Thanks anyway!
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #42 from Sandeep sandy.8925@gmail.com --- Compiling, will reply when I have finished testing. I am applying it against 3.15-rc2
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #43 from Øyvind Sæther oyvinds@everdot.org --- Resume from suspend (both RAM and disk) is broken on my system with anything later than 3.12.x (tried 3.13.x and 3.14.x).
No idea if this helps anyone, but if your radeon card breaks suspend with the latest kernels then try the 3.12.x series before ripping the card out - it may work just fine.
My card is:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn PRO [Radeon HD 7850]
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #44 from Jose P. lbdkmjdf@sharklasers.com --- I added "acpi_sleep=s3_bios" to the kernel command line, but it looks like it didn't help. I have to run pm-suspend manually... I wish I had the means to test the patch, but for now, I can't :(
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #45 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #43)
Resume from suspend (both RAM and disk) is broken on my system with anything later than 3.12.x (tried 3.13.x and 3.14.x).
Can you bisect?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #46 from n0000b n0000b.n000b@gmail.com --- (In reply to comment #38)
Created attachment 97562 [details] [review] possible fix
Does the attached patch help?
tested the patch. didn't work for me
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #47 from reverber 1806whiteguard@gmail.com --- With kernel 3.15 and later I got "diplay not working after suspend" again. But I find out how to work around. I had scrip on shortcut for KDE and this script made display to work. Command of script is "sleep 1; xset dpms force standby".
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #48 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #47)
With kernel 3.15 and later I got "diplay not working after suspend" again. But I find out how to work around. I had scrip on shortcut for KDE and this script made display to work. Command of script is "sleep 1; xset dpms force standby".
Can you bisect?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #49 from Jose P. lbdkmjdf@sharklasers.com --- (In reply to comment #47)
With kernel 3.15 and later I got "diplay not working after suspend" again. But I find out how to work around. I had scrip on shortcut for KDE and this script made display to work. Command of script is "sleep 1; xset dpms force standby".
Are you using that workaround alone, or with the pm-suspend + quirks solutions (shown in comment #15 and comment #34) ?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #50 from SpacemanSpiff a3372470@trbvm.com --- (In reply to comment #48)
(In reply to comment #47)
With kernel 3.15 and later I got "diplay not working after suspend" again. But I find out how to work around. I had scrip on shortcut for KDE and this script made display to work. Command of script is "sleep 1; xset dpms force standby".
Can you bisect?
3.12 does not work for me.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #51 from reverber 1806whiteguard@gmail.com --- (In reply to comment #49)
(In reply to comment #47)
With kernel 3.15 and later I got "diplay not working after suspend" again. But I find out how to work around. I had scrip on shortcut for KDE and this script made display to work. Command of script is "sleep 1; xset dpms force standby".
Are you using that workaround alone, or with the pm-suspend + quirks solutions (shown in comment #15 and comment #34) ?
With quirks like in comment #34 and in grub options.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #52 from reverber 1806whiteguard@gmail.com --- (In reply to comment #48)
(In reply to comment #47)
With kernel 3.15 and later I got "diplay not working after suspend" again. But I find out how to work around. I had scrip on shortcut for KDE and this script made display to work. Command of script is "sleep 1; xset dpms force standby".
Can you bisect?
I guess I can't. I don't use any patches. I just use Xorg and Mesa from debian.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #53 from Markus Ilmola markus.ilmola@pp.inet.fi --- The trick given in
https://wiki.archlinux.org/index.php/pm-utils#Display_not_powering_on_after_...
permanently fixes this problem on my HP Pavilion DV6.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |merciers.merciers@gmail.com
--- Comment #54 from Alex Deucher alexdeucher@gmail.com --- *** Bug 86133 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #55 from leon_ti@mail.ru --- Created attachment 110977 --> https://bugs.freedesktop.org/attachment.cgi?id=110977&action=edit Bisection log
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #56 from leon_ti@mail.ru --- I have bisected at Samsung NP535U3C laptop, with a AMD A6 APU without external GPU.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #57 from Alex Deucher alexdeucher@gmail.com --- Created attachment 113380 --> https://bugs.freedesktop.org/attachment.cgi?id=113380&action=edit possible fix
Does this patch help?
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #58 from n0000b n0000b.n000b@gmail.com --- (In reply to Alex Deucher from comment #57)
Created attachment 113380 [details] [review] possible fix
Does this patch help?
i tested the patch, it helps, the screen is able to recover after suspend and resume (don't need the quirks).
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #59 from Sandeep sandy.8925@gmail.com --- I will also try the patch sometime in the next few days and will respond.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #60 from dennis.jansen@web.de --- Just a hint: I've noticed that my display (with quirks) only somtimes does not properly resume. (Also always from hibernation.) In both cases, it helps to suspend to ram again and resume again and the display works again.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #61 from Hardening rdp.effort@gmail.com --- Very nice Alex, the last patch fixes resume for me. My screen was staying black at resume since I bought my laptop and now sleeping / resume works perfectly. Thanks.
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #62 from leon_ti@mail.ru --- Seems that proposed patch works for me. Thanks a lot, Alex!
https://bugs.freedesktop.org/show_bug.cgi?id=42960
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #63 from Alex Deucher alexdeucher@gmail.com --- fixed in: 66c2b84ba6256bc5399eed45582af9ebb3ba2c15
https://bugs.freedesktop.org/show_bug.cgi?id=42960
--- Comment #64 from Sandeep sandy.8925@gmail.com --- Thanks a lot Alex! I've tested out the patch, and it works for me. Laptop screen is now lit up every time after suspend and resume. My laptop is moving towards perfect usability on Linux!
dri-devel@lists.freedesktop.org