[MPlayer-dev-eng] screensaver patch
Adam Tlałka
atlka at pg.gda.pl
Tue Mar 13 23:05:55 CET 2007
Welcome,
Dnia Tue, 13 Mar 2007 17:41:59 +0200
"Ivan Kalvachev" <ikalvachev at gmail.com> napisał(a):
> 2007/3/9, A Mennucc <mennucc1 at debian.org>:
> > I understand that this is not the perfect solution; it is just a
> > compromise, to provide a (partial) solution for the
> > gnome-screensaver.
As I wrote before this method works with Xserver DPMS, internal blanking
and screensaver and external xscreensaver and gnome-screensaver -
tested. Probably it works with any screensaver program which can notice
mouse motions or observe Xserver internal idle variable.
Only disadvantage is that mouse must be in video window.
Other hackish methods can be deleted or not used in case when mouse is
inside video window. So I suggest then if this method is used do not
use other methods at the same time.
If XServer supports Xss and screensaver works as expected the proper
method is XSuspendScreenSaver call (but we must test if Xss has this
call implemented) or periodically called XResetScreensaver
which doesn't need Xss extension usage on mplayer's side.
So there should be also some code which presents desired method of
disabling screensaver activaction - probably next patch.
Now we have only hacks ;).
> However I'd request 2 modifications.
> 1. I see that you use variable "mouse_ignore_motion". You set it
> before moving the cursor and clear it in the event loop. However I'd
> like if you ignore motion only if it is not-bigger than the
> fake_move_distance
Good. I'am for it too. ;)
> 2. I'd like this behavior conditioned under global option. Se we can
> write in the home page, "if you have problem use the
> '-hack-my-buggy-screensaver-that-does-not-support-Xss'"
> ;)
maybe -use-screensaver-hack or just -buggy-screensaver as an option
Regards
--
Adam Tlałka mailto:atlka at pg.gda.pl ^v^ ^v^ ^v^
System & Network Administration Group - - - ~~~~~~
Computer Center, Gdańsk University of Technology, Poland
PGP public key: finger atlka at sunrise.pg.gda.pl
More information about the MPlayer-dev-eng
mailing list