Hi,
I have a setup here where an xscreensaver hack can be loaded on-demand,
and cycle or throttle when pressing another button. Unfortunately, the
hack is loaded only when vieving TV or a film.
I'm under X, with the ratpoison WM.
xscreensaver is loaded in the .xsession.
/etc/freevo/irexec.conf looks like
begin
remote = streamzap
button = Power
prog = irexec
repeat = 0
config = /etc/freevo/tvsound_switch
end
begin
remote = streamzap
button = Red
prog = irexec
repeat = 0
config = /etc/freevo/screensaver_switch
end
begin
remote = streamzap
button = Green
prog = irexec
repeat = 0
config = xscreensaver-command -cycle
end
begin
remote = streamzap
button = Yellow
prog = irexec
repeat = 0
config = xscreensaver-command -throttle
end
and /etc/freevo/screensaver_switch is
#!/bin/sh
if [ ! -e /var/run/screensaver.pid ]
then
xscreensaver-command -activate
pid=`pidof xscreensaver`
#
echo "$pid" > /var/run/screensaver.pid
else
xscreensaver-command -deactivate
rm /var/run/screensaver.pid
fi
When I try to run /etc/freevo/screensaver_switch when Freevo has the
control (i.e whan not having a tvtime or mplayer window on the
screen), I get the following error message
xscreensaver: 23:19:16: ACTIVATE ClientMessage received.
xscreensaver: 23:19:16: blanking screen at Sat Jan 3 23:19:16 2004.
xscreensaver: 23:19:16: 0: grabbing keyboard on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:17: 0: grabbing keyboard on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:18: 0: grabbing keyboard on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:19: 0: grabbing keyboard on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:20: couldn't grab keyboard! (AlreadyGrabbed)
xscreensaver: 23:19:20: 0: grabbing mouse on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:21: 0: grabbing mouse on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:22: 0: grabbing mouse on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:23: 0: grabbing mouse on 0x71... AlreadyGrabbed.
xscreensaver: 23:19:24: couldn't grab pointer! (AlreadyGrabbed)
xscreensaver: 23:19:24: unable to grab keyboard or mouse! Blanking
aborted.
xscreensaver: 23:19:24: awaiting idleness.
The ususal googling leaves me in a desert.
Now the question : would it be possible for freevo not to grab mouse or
keyboard for IR-only interaction setups? Do one know where should I
start? Thanks,
Marco
P.S : I feel that this on-demand activation of the screensaver is in
fact easier to handle for both the user and the programmer : ) You can
choose -or not- to activate it at a given moment of the session, then
you can forget it. And the Mute/xscreensaver -throttle combo could put
freevo in a kinda "soft sleep" mode. For now I'll keep tvtime in the
background, it's not a big deal, many thanks to the developpers for all
the work done, freevo is a *very* nice piece of work.
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users