We periodically watch videos from the internet on our TV. I found a cool piece of software that is getting a lot of attention – Boxee. It’s pretty slick, though not without it’s bugs (it is beta software and free, though, so I can’t complain). In the spirit of true American laziness, once I realized Boxee would work on our computer connected to our TV I decided I wanted to try a remote to control Boxee. I found a remote that says it works with Linux – the Streamzap PC Remote. I ordered it from Amazon.com and once it arrived I faced the next issue: getting it to work with Linux.
The Streamzap ships with software for Windows, but no software for Linux. Like most of Linux, support for the hardware is mostly built in or provided via open-source software packages. It isn’t the easiest thing in the world to set it up, so I’ve documented here how to do it so I have a future reference and for others (based on these instructions).
First, install the “lirc” package using the Synaptic Package Manager (or “sudo apt-get install lirc” in the terminal).
Once the install is complete, a window will pop up asking for the remote and some additional information. Fill everything out, selecting the Streamzap PC Remote.
Once the install is complete, you can test to see if the remote is working by plugging it into a USB port, starting a terminal, and typing the following at the prompt:
If the remote is working, when you push a button you should see an indicator in the terminal that the button was pushed. If you see indicators, LIRC is communicating with your remote and your remote is communicating with your computer, like this:
Now, you need to tell LIRC which buttons should do what in which programs. You can use a program to help generate the requisite scripts. Install “mythbuntu-lirc-generator” from the Synaptic Package Manager (or “sudo apt-get install mythbuntu-lirc-generator” in the terminal).
Once installed, type “mythbuntu-lirc-generator” in the terminal and it will generate LIRC files for several programs. It puts a “.lircrc” file in “/home/USER/”. That file indicates that the generated scripts are installed in “/home/USER/.lirc”, which is a hidden folder in your user folder. Here’s what the files says:
#Custom lircrc generated via mythbuntu-lirc-generator
#All application specific lircrc files are within ~/.lirc
You can modify these for the Streamzap Remote Control. I modified one, totem, to give it added functionality. My version is included in the zip file linked to below.
If you want to use the remote in Boxee, you have to install Boxee, then find the Boxee remote file in “/home/USER/.boxee/UserData”. The file is called “Lircmap.xml”. You need to add the following to the file:
If you want to just use my files, here they are.
155 total views, 1 views today