Bug 41608

Summary: Suspending/resuming system with cursor on external screen prevents said screen from restoring after resume
Product: xorg Reporter: maximlevitsky
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
restore cursor settings after we restore mode none

Description maximlevitsky 2011-10-09 04:11:23 UTC
And in addition to summary causes general havoc, including black screen internal screen, inability to do anything with blacked screen etc.
100% reproducible.

This is NV86 card running latest git versions of whole GPU stack (kernel/libdrm/ddx/xserver/mesa). Xserver is a bit outdated (a month old git or so, rest are pulled on almost daily basis, and compiled )
Comment 1 maximlevitsky 2011-10-09 04:22:18 UTC
Verified to happen without compiz.
Also disabled pageflipping in DDX, although it won't be active without compiz anyway.
Comment 2 maximlevitsky 2011-10-09 06:16:35 UTC
OK, so it looks like PDISPLAY doesn't like us meddling with disabled crtc.
Thus the attached patch fixes the problem (it makes cursor restore to happen after modesetting).
Comment 3 maximlevitsky 2011-10-09 06:17:35 UTC
Created attachment 52138 [details] [review]
restore cursor settings after we restore mode
Comment 4 maximlevitsky 2011-12-16 15:44:27 UTC
Patch merged long ago - fixed
Comment 5 Florian Mickler 2012-01-21 08:47:27 UTC
A patch referencing this bug report has been merged in Linux v3.3-rc1:

commit a4eaa0a0427ef13468d784953de40c3087e6d870
Author: Maxim Levitsky <maximlevitsky@gmail.com>
Date:   Sun Oct 9 22:58:34 2011 +0200

    drm/nouveau: restore cursors after restoring mode

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.