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

Diego Biurrun diego at biurrun.de
Sun Dec 20 22:18:23 CET 2009


On Sun, Dec 20, 2009 at 09:03:20PM +0200, Jan Knutar wrote:
> This patch prevents the screen from switching off and the device 
> entering lower power state on Maemo devices (Nokia Nxxx).
> 
> The original code was most likely written at or around MPlayer 1.0rc1 
> timeframe by Siarhei Siamashka, and lived in the maemo port of MPlayer 
> (which is now effectively abandoned/obsolete). Whether it was ever 
> submitted upstream I don't know.
> 
> It was fished out of the old rc1 maemo mplayer by Sampo Savola, who 
> added it to a new maemo "port" based on a recent-ish svn of MPlayer.
> 
> I fished it out of his port and made it #ifdef'd maemo, patch against 
> today's svn.
> 
> Any issues with this living in upstream MPlayer?

Hmm, Reimar?  You handle all the screensaver stuff..

> --- mplayer.c	(revision 30080)
> +++ mplayer.c	(working copy)
> @@ -141,6 +144,34 @@
> +    
> +    if ((time - time_last) > 55000)
> +    {

if (... ) {

> @@ -3798,6 +3829,11 @@
> +#ifdef CONFIG_MAEMO    
> +    current_module="stop_maemo_screensaver";
> +    maemo_screensaver_heartbeat();
> +    current_module=NULL;
> +#endif

spaces around =

Diego



More information about the MPlayer-dev-eng mailing list