https://bugs.freedesktop.org/show_bug.cgi?id=29026
Summary: r600: Garbled screen after resuming from suspend (KMS) Product: DRI Version: DRI CVS Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/Radeon AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: direx@betriebsdirektor.de
Created an attachment (id=36970) --> (https://bugs.freedesktop.org/attachment.cgi?id=36970) system log
Using mesa-git, libdrm-git and xf86-video-ati-git I always get a garbled screen (including framebuffer console) after resume. I took a screenshot, but obviously it looks normal.
Video card: Radeon HD3870 Kernel: Linux-git (2.6.35-rc4+), KMS enabled by default
There is no crash or lockup, it's just sort of impossible to read anything on the screen after resuming.
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #1 from Jerome Glisse glisse@freedesktop.org 2010-07-12 13:11:55 PDT --- Can you take picture of the screen (no need for high res pic, just something good enough so we can see the issue). Also could you boot and suspend with drm.debug=15 option and attach system log with that option (after suspend/resume cycle)
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #2 from Alex Deucher agd5f@yahoo.com 2010-07-12 13:40:07 PDT --- Is your distro using any vbetool pm quirks? If so, disable them.
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #3 from Alexandre Derumier aderumier@odiso.com 2010-07-12 22:03:53 PDT --- same problem for me, with last drm-radeon-testing kernel on a rv620 (dell studio 15 laptop).
I'm using archlinux, with last mesa-git, ati-git,libdrm-git.
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #4 from Alexandre Derumier aderumier@odiso.com 2010-07-12 22:04:47 PDT --- Created an attachment (id=36985) --> (https://bugs.freedesktop.org/attachment.cgi?id=36985) /var/log/message with drm.debug=15
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #5 from Rafał Miłecki zajec5@gmail.com 2010-07-12 23:03:56 PDT --- (In reply to comment #3)
same problem for me, with last drm-radeon-testing kernel on a rv620 (dell studio 15 laptop).
I'm using archlinux, with last mesa-git, ati-git,libdrm-git.
What about pm-utils? Do you use it? If so, try version 1.3.0 which recognizes KMS.
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #6 from Alexandre Derumier aderumier@odiso.com 2010-07-13 04:43:38 PDT --- i'm using pm-utils 1.4 (no problem with drm-radeon-testing around 20 june)
i'll try to dig around pm-utils, i see they are many video quirks in
usr/lib/pm-utils/video-quirks/
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #7 from Daniel direx@betriebsdirektor.de 2010-07-13 11:38:14 PDT --- I am using pm-utils 1.4.1 and all of the video quirks are disabled on my machine.
Picture of X-Server after suspend: http://yfrog.com/5m20100713001j
Picture of framebuffer after suspend: http://yfrog.com/4v20100713003j
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #8 from Daniel direx@betriebsdirektor.de 2010-07-13 11:41:04 PDT --- Created an attachment (id=36997) --> (https://bugs.freedesktop.org/attachment.cgi?id=36997) drm.debug=15 on HD3870, x86_64
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #9 from Alex Deucher agd5f@yahoo.com 2010-07-13 12:23:09 PDT --- If s/r used to work, when did it last work, and can you bisect what commit broke it?
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #10 from Daniel direx@betriebsdirektor.de 2010-10-12 15:45:01 PDT --- (In reply to comment #9)
If s/r used to work, when did it last work, and can you bisect what commit broke it?
Sorry for the late reply. I cannot find the commit which broke it, however this is still an issue.
I figured out that using xrandr after resuming fixes the garbled screen (setting a different resolution and restoring the original one afterwards).
https://bugs.freedesktop.org/show_bug.cgi?id=29026
Jerome Glisse glisse@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|r600: Garbled screen after |[RADEON:KMS:RV670:MODESET] |resuming from suspend (KMS) |garbled screen after | |resuming from suspend
--- Comment #11 from Jerome Glisse glisse@freedesktop.org 2011-02-09 07:20:48 PST --- Still an issue with recent kernel ?
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #12 from Daniel direx@betriebsdirektor.de 2011-02-10 02:02:36 PST --- (In reply to comment #11)
Still an issue with recent kernel ?
Yes. The exact same thing is still happening to me on 2.6.38-rc4 and xf86-video-ati git.
As I already mentioned the garbled screen issue goes away when using xrandr after resume. I personally fixed this for me by executing the following *dirty* quirk-script on resume:
export DISPLAY=:0 export XAUTHORITY="/home/$USER/.Xauthority" xrandr --output DVI-0 --mode 1920x1080 xrandr --output DVI-0 --mode 1680x1050
But obviously this cannot be a permanent solution.
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #13 from Alex Deucher agd5f@yahoo.com 2011-02-10 08:50:04 PST --- (In reply to comment #12)
As I already mentioned the garbled screen issue goes away when using xrandr after resume. I personally fixed this for me by executing the following *dirty* quirk-script on resume:
Can you dump your regs before and after calling xrandr? using radeonreg available here (http://cgit.freedesktop.org/~airlied/radeontool/)
(as root after resume): radeonreg regs all > broken.regs (run xrandr) radeonreg regs all > fixed.regs
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #14 from Daniel Klaffenbach danielklaffenbach@gmail.com 2011-02-11 00:16:34 PST --- Created an attachment (id=43235) --> (https://bugs.freedesktop.org/attachment.cgi?id=43235) register dump
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #15 from Alex Deucher agd5f@yahoo.com 2011-02-13 22:44:51 PST --- Are you using an analog or digital connection for the monitor?
https://bugs.freedesktop.org/show_bug.cgi?id=29026
--- Comment #16 from Daniel Klaffenbach danielklaffenbach@gmail.com 2011-02-14 00:50:44 PST --- (In reply to comment #15)
Are you using an analog or digital connection for the monitor?
I am only using digital connections.
The card has three ports: DVI-0: My primary monitor (through DVI) DVI-1: My AV receiver (using the DVI2HDMI adaptor that came with the card), usually turned off DIN: Not used (radeon.tv=0).
And I just noticed a very interesting thing: The TV connected to my AV receiver (DVI-1) works just fine after resuming - only the primary screen on DVI-0 is garbled.
https://bugs.freedesktop.org/show_bug.cgi?id=29026
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- Comment #17 from Martin Peres martin.peres@free.fr --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/140.
dri-devel@lists.freedesktop.org