Wednesday 12 January 2011

XBOX DVD IR Remote, Ubuntu 10.10 and irxevent

Get the Xbox DVD IR reciver and remote working on Ubuntu - follow this post: http://forum.xbmc.org/showpost.php?p=688677&postcount=32

The remote should now work with XBMC. To get the Remote working with other applications...

1) Install irxevent

- System> Administration> Synaptic Package Manager> lirc-x

2) Create the irxevent confic file in home folder

- Create a new document in home folder and rename it .lircrc
- Right click on the file and in Permissions tab tick the allow executable tick box.
- Open the file with the text editor and paste the following in the file, then save and close.

begin
prog = irxevent
button = SELECT
repeat = 0
config = Key KP_Enter CurrentWindow
end
begin
prog = irxevent
button = MENU
repeat = 3
config = Key Tab CurrentWindow
end
begin
prog = irxevent
button = BACK
repeat = 0
config = Key alt-Left CurrentWindow
end
begin
prog = irxevent
button = LEFT
repeat = 2
config = Key Left CurrentWindow
end
begin
prog = irxevent
button = RIGHT
repeat = 2
config = Key Right CurrentWindow
end
begin
prog = irxevent
button = UP
repeat = 2
config = Key Up CurrentWindow
end
begin
prog = irxevent
button = DOWN
repeat = 2
config = Key Down CurrentWindow
end

- Run the command irxevent -d in the Terminal (to restart run killall irxevent
and then irxevent -d)

Map more buttons by checking sudo gedit /etc/lirc/lircd.conf to find out the button label (ie. button = DOWN) and then map it to a keyboard key (ie. the Enter key KP_Enter). More info here: http://tv-true.org/how-to/configuring-lirc.html and here: http://www.youtube.com/watch?v=e9O6Qm5nWwo

To start irxevent whenever Firefox is started create a script and then a new Firefox short that uses the script to start Firefox.

- Create a new file called ffir.bin and copy the script text:

#!/bin/bash
irxevent -d
firefox

- Save the script (remember to make the file make executable).
- Right click on the new Firefox short-cut and open Properties and then change the Command field to Desktop/ffir.bin.