Showing posts with label Lirc. Show all posts
Showing posts with label Lirc. Show all posts

Tuesday, November 25, 2008

Setup lirc with Xe emulator on mythtv and mythbuntu

If you want to be able to exit Xe using a remote see below.   This can also be modified for use with other emulators as well.

Open a shell and go to ~/.lirc/
Create a new file called xe with the following contents:
#xe
begin
remote = mceusb
prog = irexec
button = Back
config = /home/mondo/killxe
mode = irexec
end
Be sure to substitute your remote type, username, and desired button.  Next, edit ~/.lircrc and add
include ~/.lirc/xe

Create ~/killxe with the following contents:
killall -9 xe
killall -9 irexec
Do 
chmod +x ~/killxe
Edit your emulator startup command inside mythtv.  Add
 irexec&;
before your existing command.