Preventing screensaver when playing movie?

Harald Braumann harry at unheit.net
Tue Feb 26 11:01:56 PST 2008


On Tue, 26 Feb 2008 19:02:55 +0100
Erik <esigra at gmail.com> wrote:

> Suppose that we have the following situation. A user has told the
> system to "turn off the display after N minutes of inactivity". Then
> he starts the media player, opens a file and presses a button called
> play. The media player interprets this as the user saying "play this
> movie, but do not turn off the display while playing it, because i
> will watch it even though I do not interact with the system".
> 
> So the media player has to do something like this. Each time the 
> application updates the display with a new animation frame, it marks 
> that update with a special flag, indicating that this is the kind of 
> thing that the user may be watching even though he has not interacted 
> with the system
> for a while. System then resets the screensaver countdown. However it 
> does not reset the session locking countdown, because only real input 
> may do that, for security reasons. So the user may have to give his 
> password when he wants to interact with the system after playing the
> movie.
> 
> How can the media player achieve this with xorg?

AFAIK xine sends fake shift key press events. I guess this is the
safest way of fooling any programme that tries to do something after an
inactivity time-out.

Regards,
harry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20080226/4de57f19/attachment.pgp>


More information about the xorg mailing list