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.
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
xscreensaverwhich I happen to use.Xscreensaver doesn't have a "pause" option but its
deactivatecommand has the effect of resetting the timer even if the screensaver is not currently active.IOW, if
xscreensaver-commandis found on the path, it could be invoked periodically (and at the start of playback) with the-deactivateargument. 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.