Preventing screensaver when playing movie?

Lubos Lunak l.lunak at
Sun Mar 2 04:23:22 PST 2008

On út 26. února 2008, Erik wrote:
> Dotan Cohen skrev:
> > On 26/02/2008, Harald Braumann <harry at> wrote:
> >>  > 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.
> I have looked at XTestFakeKeyEvent. Is that what xine is using?


> > ‎That could be problematic with Sticky Keys users, like myself. I
> > might just hit Enter in an email, and have it registered as
> > Shift-Enter and therefore sent, when I do not want that.
> Is there a safe key to send? Or some even better way? I want it to be
> implement as an API call in SDL, so that all SDL programs can use it. It
> is not a good idea to depend on KDE or GNOME since SDL depends on X11
> but not KDE or GNOME.

 I'm not aware of any universal way that'd work everywhere. There have been 
some discussions about this on the xdg list, but without any real result 
AFAIK. The best right now should be suspending both the internal X 
screensaver and DPMS (since you should to do that anyway, if you run without 
any screensaver program), the KDE screensaver should not activate if either 
of these two is suspended, I don't know about others.

Lubos Lunak
KDE developer
SUSE LINUX, s.r.o.   e-mail: l.lunak at , l.lunak at
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//

More information about the xorg mailing list