XBMC & Lirc & Ubuntu 11.10 oneiric
After upgrading to Ubuntu 11.10, my MCE remote stopped working in XBMC. Since XBMC did not get an update (it’s coming from a separate PPA), I assume the LIRC button naming for the “mceusb” driver has changed in the new lirc package. It doesn’t match the “mceusb” section in XBMC’s Lircmap.xml anymore.
What I had to do to get my MCE remote working again in XBMC was to create a new file ~/.xbmc/userdata/Lircmap.xml and insert the remote button codes that I gathered from running “irw” and pressing the buttons. Make sure that the “lirc” package is installed and choose the “Windows Media Center Remote” when it asks you for the type of remote you have.
This is mostly the default mapping, with a few customisations for my personal preferences. Note that this is for the “mceusb” driver, if you use a different driver, you have to change the “<remote device=”mceusb”>” line and gather the correct codes from “irw”.
<lircmap> <remote device="mceusb"> <left>KEY_LEFT</left> <right>KEY_RIGHT</right> <up>KEY_UP</up> <down>KEY_DOWN</down> <select>KEY_OK</select> <start>KEY_HOME</start> <back>KEY_BACK</back> <record>KEY_RECORD</record> <play>KEY_PLAY</play> <pause>KEY_PAUSE</pause> <stop>KEY_STOP</stop> <forward>KEY_FORWARD</forward> <reverse>KEY_REWIND</reverse> <volumeplus>KEY_VOLUMEUP</volumeplus> <volumeminus>KEY_VOLUMEDOWN</volumeminus> <pageplus>KEY_CHANNELUP</pageplus> <pageminus>KEY_CHANNELDOWN</pageminus> <skipplus>KEY_NEXT</skipplus> <skipminus>KEY_AGAIN</skipminus> <subtitle>Teletext</subtitle> <mute>KEY_MUTE</mute> <power>KEY_POWER</power> <myvideo>KEY_VIDEO</myvideo> <mymusic>KEY_AUDIO</mymusic> <mypictures>Pictures</mypictures> <mytv>LiveTV</mytv> <one>KEY_1</one> <two>KEY_2</two> <three>KEY_3</three> <four>KEY_4</four> <five>KEY_5</five> <six>KEY_6</six> <seven>KEY_7</seven> <eight>KEY_8</eight> <nine>KEY_9</nine> <zero>KEY_0</zero> <red>KEY_RED</red> <green>KEY_GREEN</green> <yellow>KEY_YELLOW</yellow> <blue>KEY_BLUE</blue> <select>Aspect</select> <info>More</info> <title>Guide</title> <menu>KEY_DVD</menu> <clear>KEY_CLEAR</clear> <enter>KEY_ENTER</enter> </remote> </lircmap> |
The above file maps the buttons on the remote to XBMC button names. If also want to change the mapping of XBMC buttons to XBMC functions, you need to create another file, e.g. ~/.xbmc/userdata/keymaps/remote.xml . I like to use the “play” button to display a context menu on the selection screens and codec statistics during playback. The following file overrides the default XBMC mapping to enable this:
<keymap> <global> <remote> <play>ContextMenu</play> </remote> </global> <fullscreenvideo> <remote> <play>CodecInfo</play> </remote> </fullscreenvideo> </keymap> |
Logan 4:18 am on October 16, 2011 Permalink
Thanks for posting that. It’s just what I needed. I’d narrowed it down to lirc but had no idea how to revert back to an old version or fix this one. Appreciate folks like you who post helpful things for the benefit of others.
dash 9:56 am on October 16, 2011 Permalink
Thanks a lot !, that’s exactly what I needed to make my remote work again with XBMC .
Richard 6:44 am on October 21, 2011 Permalink
Thanks a lot! That worked for me!
Just made a minimal install of Ubuntu 11.10 with XBMC Nightly and the only thing that didn’t work until now was my mce remote.
Keep posting stuff like this….. kept my out of the dark cold late nights searching the web
Roberto 2:17 am on October 22, 2011 Permalink
Thanks. This works for everything lirc. From Rhythmbox to mplayer and pulseaudio.
Vincent 9:29 pm on October 24, 2011 Permalink
Thanks too, Works perfectly now on 11.10
fr0sty 1:44 am on November 18, 2011 Permalink
This fixed it for me, but now i seem to have double keypresses in XBMC. IRW gives me double keypresses, for example when going through the menu in XBMC it moves 2 options instead of 1
Mark Anderson 2:19 am on November 28, 2011 Permalink
Thank you so much!!! I thought I broke my lirc with 11.10 update, only to find it did the exact same thing with a fresh install. With these instructions, I had my HTPC working in no time.
Elliot Nathanson 7:25 am on January 9, 2012 Permalink
Yes – thank you! Lirc also broke with my 11.10 update.
Daniel D 8:47 am on April 21, 2012 Permalink
I have a Rosewill RRC-126 and i wasn’t sure how to map it fully in XBMC thank you so much all buttons work how i want now!