[MPlayer-dev-eng] [PATCH] Screen blanking prevention for Maemo

Dan Oscarsson Dan.Oscarsson at tieto.com
Fri Jan 15 08:29:01 CET 2010

On 2010-01-14 at 16:57 +0200 Siarhei Siamashka wrote:
> It would be also nice if you could try benchmarking the overhead of blanking 
> prevention code with different settings for heartbeat period and provide some
> numbers (probably using mplayer '-benchmark' combined with '-framedrop'
> or '-hardframedrop' options when trying to watch some heavy video and measure
> the number of dropped frames).

I think one way to handle screensaver blocking could be to at start run
an external command that manages the blocking, and possibly kill the
external command on exit or run other command then.

The XDG standard have one command: xdg-screensaver suspend windowid that
blocks sceensaver and power management as long as windowid exists.
There is an other command to resume it on same windowid if windowid is
not going away.

It should be possible to write special scripts where the xdg commands do
not exist.

This way mplayer do not need to run a heartbeat command or do some other
operations now and then to simulate activity. Instead just one command
at start and possible one at exit.



More information about the MPlayer-dev-eng mailing list