[MPlayer-users] [MP-users] Move mouse to disable screensaver

The Wanderer inverseparadox at comcast.net
Wed Feb 27 13:25:46 CET 2008


Mihai T. Lazarescu wrote:

> On Wed, Feb 27, 2008 at 06:55:45AM -0500, The Wanderer wrote:
> 
>> Reimar Döffinger wrote:

>>> Well, you have to configure it with -heartbeat-cmd to run the
>>> command that pings/disables your screensaver.
>> 
>> This would work now, yes (assuming that the command to disable the
>> screensaver does not make it necessary to later use a *different*
>> command to re-enable it, as is the case with 'xset s off' and 'xset
>> s on'), but the original breakage I was talking about came long
>> before I remember any mention of '-heartbeat-cmd' on the
>> development lists - years before, in fact, IIRC.
> 
> You may consider using in the script both commands in sequence:
> 
>     xset s off          # to reset screensaver timer
>     xset s on           # to reenable the screensaver
> 
> The call period of the script should be lower than the screensaver
> timeout.

A script to be passed to -heartbeat-cmd, you mean? I can see how that
could work, and it is something I hadn't considered. I'm not completely
sure that it would act to reset the screensaver timer (it may be
necessary to have 'xset s off' in effect *at the time that the timer
would run out* in order for it to be effective), but I'm not certain
that it wouldn't eithre.

Of course, the entire point is irrelevant for me, since (as I said) I
now habitually disable screensaver entirely as soon as I start X (or as
soon afterwards as I remember to). It's still useful to note for futore
reference or for other people, however.

-- 
    The Wanderer

    My usual .sig is on vacation while I adjust to my new computer



More information about the MPlayer-users mailing list