[PATCH xserver 1/3] modesetting: Hide cursor during DPMS

Keith Packard keithp at keithp.com
Thu Aug 3 04:19:01 UTC 2017

Michel Dänzer <michel at daenzer.net> writes:

> Shouldn't this be done at a higher level instead?

Thanks for a really good question.

The X server doesn't touch cursors when turning off crtcs that aren't in
use any more. That's because xf86DisableUnusedFunctions doesn't touch
the cursor for disabled crtcs, it only sets the cursor for enabled ones.

I think a better patch is to just disable the cursor whenever we're
turning the crtc off during mode setting. After the mode setting is
finished, xf86DisableUnusedFunctions will get called and that will call
xf86CursorResetCursor to make sure the cursor is enabled everywhere it
should be.

Here's a replacement for the modesetting patch which does this up in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xfree86-Disable-cursor-whenever-turning-off-CRTC-dur.patch
Type: text/x-diff
Size: 3189 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170802/442e8049/attachment.patch>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170802/442e8049/attachment.sig>

More information about the xorg-devel mailing list