Skip to content

X11 screensaver inhibition #1007

@RJVB

Description

@RJVB

When I watch long enough videos, series episodes or movies on my Linux rig, I'm obliged to move the mouse periodically because my screensaver will have kicked in.

I see that an attempt is made to prevent this by calling an X11 primitive at a regular interval (fixed, rather than tunable to the user's screensaver/locker timeout) but apparently this call has no effect on xscreensaver which I happen to use.

Xscreensaver doesn't have a "pause" option but its deactivate command has the effect of resetting the timer even if the screensaver is not currently active.

IOW, if xscreensaver-command is found on the path, it could be invoked periodically (and at the start of playback) with the -deactivate argument. It doesn't seem rocket science either to do reimplement this command; it involves resetting DPMS (if enabled) and sending a synthetic ClientMessage to the xscreensaver window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions