Fixing screen savers

Adam Jackson ajax at nwnk.net
Thu Oct 28 06:03:00 PDT 2010


On Mon, 2010-10-25 at 12:02 -0700, Keith Packard wrote:

> However, looking at the code, I think there's a simpler mechanism already
> available to us:
> 
>  * Register a screen saver window with XScreenSaverSetAttributes. This
>    ensures that automatic screen saving will not turn off the screen.
>    I can't figure out how this window could be useful to us as it gets
>    automatically destroyed when the screen is unsaved, and so cannot
>    be used for a transition or lock screen dialog.
> 
>  * Monitor screen saver timeouts using the existing XScreenSaver events.
> 
>  * Disable the DPMS extension by setting the DPMS timeouts to all zeros.
>    The DPMS code doesn't respect the X screen saver extension's external
>    screen saver mode. (note A*)
> 
>  * Control DPMS on the monitors by using DPMSForceLevel. This will
>    generate another screen saver event, but that will have the 'force'
>    value set to TRUE.

This sounds like it's ignoring per-output DPMS.

I kind of want to drop the DPMS extension entirely if we can.  It's
really quite awful to implement since it's per-display state not
per-screen.  I'm not sure how much existing code relies on it though.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101028/342bd4cf/attachment.pgp>


More information about the xorg-devel mailing list