this is the patch in the link above:

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 4c66ca7..a848345 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -288,6 +288,7 @@ static void
 drmmode_do_crtc_dpms(xf86CrtcPtr crtc, int mode)
 {
        drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+       drmmode_ptr drmmode = drmmode_crtc->drmmode;
        ScrnInfoPtr scrn = crtc->scrn;
        RADEONInfoPtr info = RADEONPTR(scrn);
        CARD64 ust;
@@ -296,6 +297,11 @@ drmmode_do_crtc_dpms(xf86CrtcPtr crtc, int mode)
        if (drmmode_crtc->dpms_mode == DPMSModeOn && mode != DPMSModeOn) {
                drmVBlank vbl;
 
+               /* Wait for any pending flip to finish */
+               do {} while (drmmode_crtc->flip_pending &&
+                            drmHandleEvent(drmmode->fd,
+                                           &drmmode->event_context) > 0);
+
                /*
                 * On->Off transition: record the last vblank time,
                 * sequence number and frame period.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-video-ati in Ubuntu.
https://bugs.launchpad.net/bugs/1577170

Title:
  [solved] screen cannot be turned back on after being switched off
  after some time of inactivity

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to