2015-04-13, 15:54
I'm having a heck of a time getting my remote controls working on a new Rasbian build.
I've loaded Kodi (it was XBMC then) onto a couple windows machines and an openElec/RPi system and in those cases, both my generic RC6/MCE remote and my Logitech Harmony One were pretty much fully functional right out of the box but on this new Raspbian/RPi setup (tried both on PI 1 Model B+ and PI 2 Model B), only a few of the RC6 buttons are functional and so far, I've only found one button (PLAY) on the Harmony One that works.
I've followed several troubleshooing and setup guides and done lots and lots of trial and error with the keyboard.xml fiile over the past few days, but a lot of info I found is dated (LIRC, etc.) and nothing I've tried has made the slightest difference.
I'm hoping you guys can point me in the right direction.
I've tried the Keymap Editor Add-on but it only seems to recogize a very few keypresses and doesn't seem to produce a keyboard.xml file on save. Instead, it writes a file called gen.xml in my ~/.kodi/userdata/keymaps directory (Kodi runs under the pi user).
Here's gen.xml after mapping the "Enter" key to the select action
ir-keytable -t sees every keypress wiht the RC6 remote. Note that the first keypress below is the enter key mapped above by Keymap Editor. I have no idea how/why Keymap Editor registered the "Enter" key as key id="61453" since I don't see that code in the ir-keytable -t output below.
With the Harmony One, ir-keytable -t doesn't even register most keys. It did pick up the "Play" button (the only functioning button on the remote that I can find), but no others out of a few I tried.
Interestingly, ir-keytable -t stops registering keypresses with Kodi launched. Is Kodi somehow hijacking the IR reciever?
I feel like if I could just get one change to register in Kodi, the rest would fall into place but my ignorance is really working against me here and I've been banging my head against a wall for the last week trying to get this figured out. Can anyone tell me what I'm missing?
I've loaded Kodi (it was XBMC then) onto a couple windows machines and an openElec/RPi system and in those cases, both my generic RC6/MCE remote and my Logitech Harmony One were pretty much fully functional right out of the box but on this new Raspbian/RPi setup (tried both on PI 1 Model B+ and PI 2 Model B), only a few of the RC6 buttons are functional and so far, I've only found one button (PLAY) on the Harmony One that works.
I've followed several troubleshooing and setup guides and done lots and lots of trial and error with the keyboard.xml fiile over the past few days, but a lot of info I found is dated (LIRC, etc.) and nothing I've tried has made the slightest difference.
I'm hoping you guys can point me in the right direction.
I've tried the Keymap Editor Add-on but it only seems to recogize a very few keypresses and doesn't seem to produce a keyboard.xml file on save. Instead, it writes a file called gen.xml in my ~/.kodi/userdata/keymaps directory (Kodi runs under the pi user).
Here's gen.xml after mapping the "Enter" key to the select action
Code:
root@raspberrypi /home/pi/.kodi/userdata/keymaps # cat gen.xml
<keymap>
<global>
<keyboard>
<key id="61453">select</key>
</keyboard>
</global>
</keymap>
ir-keytable -t sees every keypress wiht the RC6 remote. Note that the first keypress below is the enter key mapped above by Keymap Editor. I have no idea how/why Keymap Editor registered the "Enter" key as key id="61453" since I don't see that code in the ir-keytable -t output below.
Code:
1428847764.427629: event type EV_MSC(0x04): scancode = 0x800f040b
1428847764.427629: event type EV_KEY(0x01) key_down: KEY_ENTER(0x0001)
1428847764.427629: event type EV_SYN(0x00).
1428847764.533759: event type EV_MSC(0x04): scancode = 0x800f040b
1428847764.533759: event type EV_SYN(0x00).
1428847764.641135: event type EV_MSC(0x04): scancode = 0x800f040b
1428847764.641135: event type EV_SYN(0x00).
1428847764.773664: event type EV_MSC(0x04): scancode = 0x800f040b
1428847764.773664: event type EV_SYN(0x00).
1428847764.921219: event type EV_KEY(0x01) key_down: KEY_ENTER(0x0001)
1428847764.921219: event type EV_SYN(0x00).
1428847765.021238: event type EV_KEY(0x01) key_up: KEY_ENTER(0x0001)
1428847765.021238: event type EV_SYN(0x00).
1428846091.753478: event type EV_MSC(0x04): scancode = 0x800f0422
1428846091.753478: event type EV_KEY(0x01) key_down: KEY_OK(0x0001)
1428846091.753478: event type EV_SYN(0x00).
1428846091.859747: event type EV_MSC(0x04): scancode = 0x800f0422
1428846091.859747: event type EV_SYN(0x00).
1428846091.967129: event type EV_MSC(0x04): scancode = 0x800f0422
1428846091.967129: event type EV_SYN(0x00).
1428846092.073295: event type EV_MSC(0x04): scancode = 0x800f0422
1428846092.073295: event type EV_SYN(0x00).
1428846092.207051: event type EV_MSC(0x04): scancode = 0x800f0422
1428846092.207051: event type EV_SYN(0x00).
1428846092.251242: event type EV_KEY(0x01) key_down: KEY_OK(0x0001)
1428846092.251242: event type EV_SYN(0x00).
1428846092.381219: event type EV_KEY(0x01) key_down: KEY_OK(0x0001)
1428846092.381219: event type EV_SYN(0x00).
1428846092.451249: event type EV_KEY(0x01) key_up: KEY_OK(0x0001)
1428846092.451249: event type EV_SYN(0x00).
With the Harmony One, ir-keytable -t doesn't even register most keys. It did pick up the "Play" button (the only functioning button on the remote that I can find), but no others out of a few I tried.
Code:
1428846169.348561: event type EV_MSC(0x04): scancode = 0x800f0416
1428846169.348561: event type EV_KEY(0x01) key_down: KEY_PLAY(0x0001)
1428846169.348561: event type EV_SYN(0x00).
1428846169.453694: event type EV_MSC(0x04): scancode = 0x800f0416
1428846169.453694: event type EV_SYN(0x00).
1428846169.559810: event type EV_MSC(0x04): scancode = 0x800f0416
1428846169.559810: event type EV_SYN(0x00).
1428846169.693733: event type EV_MSC(0x04): scancode = 0x800f0416
1428846169.693733: event type EV_SYN(0x00).
1428846169.841243: event type EV_KEY(0x01) key_down: KEY_PLAY(0x0001)
1428846169.841243: event type EV_SYN(0x00).
1428846169.941256: event type EV_KEY(0x01) key_up: KEY_PLAY(0x0001)
1428846169.941256: event type EV_SYN(0x00).
Interestingly, ir-keytable -t stops registering keypresses with Kodi launched. Is Kodi somehow hijacking the IR reciever?
I feel like if I could just get one change to register in Kodi, the rest would fall into place but my ignorance is really working against me here and I've been banging my head against a wall for the last week trying to get this figured out. Can anyone tell me what I'm missing?