VLC HowTo/Use with lirc
This HowTO is made to use VLC media player with an infra red remote control the same way as I use remote control for a television: program +/-, volume +/-, jump to position 3 when button 3 is pressed,...
Build-in lirc commands are only for basic control in the movie-playing mode, but I need to use other commands from rc interface - mainly "goto x" function. So the goal was to be able to use goto function with lirc.
VLC
Use a VLC version with lirc enabled.
Start-Up Script
#start/stop script for lircd+vlc for Kubuntu 6.10
start() {
echo "Starting lirc support..."
sudo setserial /dev/ttyS0 uart none #serial port down
sudo /sbin/modprobe lirc_serial #load module
sudo /sbin/modprobe lirc_dev #load module
sudo /usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --output=/dev/lircd --pidfile=/var/run/lircd.pid --listen #run lirc daemon
sudo chmod 666 /dev/lircd #access
sudo irexec -d #daemon to pass ir commands
}
stop() {
echo "Stoping lirc support..."
sudo /usr/bin/killall -w lircd #kill lirc daemon
sudo /sbin/rmmod lirc_serial #unload module
sudo /sbin/rmmod lirc_dev #unload module
sudo setserial /dev/ttyS0 uart 16550A #serial port up
}
restart() {
stop
sleep 2
start
}
case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart')
restart
;;
*)
echo "usage $0 start|stop|restart"
esac
exit 0