Hi all,
Just a note to say a big thanks for the VIDEO_PRE / POST commands.
I've knocked up some little shell scripts that I now use to control my
surround sound amp using the IRSend capabilities of the microsoft usb remote
control box :)
The scripts I use are below. These are launched as background jobs from
the pre and post commands to turn the amp on, change to DVD input, and
ensure that the amp is in digital / DTS mode.
I have also modified xine.py to pass the volume events through to the
amp, so that I can control the amp volume with the media centre remote.
to do that I added the following to the bottom of xine.py:
if event == MIXER_VOLUP:
if config.VIDEO_VOL_UP_CMD != '':
os.system( config.VIDEO_VOL_UP_CMD )
return True
if event == MIXER_VOLDOWN:
if config.VIDEO_VOL_DOWN_CMD != '':
os.system( config.VIDEO_VOL_DOWN_CMD )
return True
and I define the commands in the freevo config file.
It was all very easy, the hardest part was mapping in the remote file
using irrecord :)
Just to let people know what I had done, so that people searching know
this sort of thing is possible. Thats now one less remote I need to use
too :D
My irsend scripts:
cat dvd_amp_on.sh
#!/bin/sh
sleep 1
irsend SEND_ONCE amp Power
sleep 1
irsend SEND_ONCE amp DVD
sleep 1
irsend SEND_ONCE amp Stereo
sleep 1
irsend SEND_ONCE amp Dobly/DTS
AND
cat dvd_amp_off.sh
#!/bin/sh
irsend SEND_ONCE amp Power
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users