February 27, 2008

Remote Control Tuning!

For me, as soon as I had installed the infrared remote tool it was up and running after the next restart of XWin.

What I obviously want to do is put this PC under the table that the TV is currently sitting on and have NO keyboard and NO mouse. (While that's a great idea right now, I still have to get around the 'login to linux' thing, but give me a day or so and I will have that sorted out too.

For the remote, I followed the 'Tips and Tricks' thread in the XBMC for Linux End User forum and put together a number of scripts (mainly what they had already) and put them on my HTPC.

Tool 1 - Start and Stop XBMC From your Remote

File: /home/xmbc/.lircrc
File: /home/xbmc/scripts/startIRexec.sh
File: /home/xbmc/scripts/startXBMC.sh
File: /home/xbmc/scripts/stopXBMC.sh

To Download all files, grab this archive and extract it in the XBMC Home directory. >> File Download Link <<.

Now, after these scripts are in place you need to setup your X session to load the IR Daemon to listen for your special remote key presses. Steps are as follows:
  • Click System, Preferences & then Session
  • Under the "Startup Programs" click "Add" and enter the following values.

Logout of your X Session and you should be ready to go using my assigned buttons. They're configured in the '.lircrc' file in your home directly. You will notice I am using the following buttons on my remote.
    • RecTV - Start/Restart XBMC
    • LiveTV - Kill XMBC - back to Gnome desktop.
If you would like to choose your own buttons for your remote, checkout the lircd.conf options for the Microsoft Media Centre Remote 1039 >> Here <<. For other remotes check the LIRC webpage.

No comments: