I bought the Xbox One media remote after reading positive feedback about it working well with the cubox and Kodi. I must say I'm impressed by the build quality and the range, Microsoft did well.
$this->bbcode_second_pass_code('', 'root@alarm ~]# uname -a
Linux alarm 3.14.33-1-ARCH #1 SMP Thu Feb 12 01:41:04 MST 2015 armv7l GNU/Linux')
I'm trying to get the remote working with ir-keytable.
The cubox recognizes keypresses but without linking it to keynames:
$this->bbcode_second_pass_code('', '[root@alarm ~]# ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1424026790.210813: event type EV_MSC(0x04): scancode = 0x80d81e
1424026790.210813: event type EV_SYN(0x00).
1424026796.200995: event type EV_MSC(0x04): scancode = 0x80d821
1424026796.200995: event type EV_SYN(0x00).
1424026797.093896: event type EV_MSC(0x04): scancode = 0x80d81f
1424026797.093896: event type EV_SYN(0x00).')
$this->bbcode_second_pass_code('', '[root@alarm ~]# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event0) with:
Driver gpio-rc-recv, table rc-empty
Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other
Enabled protocols: NEC
Name: gpio_ir_recv
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms')
ir-keytable loads a table called rc-empty. I can't however find where this table is located. Anyway, I'm trying to load a custom table with the following command :
$this->bbcode_second_pass_code('', '[root@alarm ~]# ir-keytable -c -w /etc/rc_keymaps/XboxOneRemote
Read XboxOneRemote table
Old keytable cleared
Wrote 21 keycode(s) to driver
Protocols changed to NEC')
However, this doesn't seem to change much as the used table is still rc-empty:
$this->bbcode_second_pass_code('', 'Found /sys/class/rc/rc0/ (/dev/input/event0) with:
Driver gpio-rc-recv, table rc-empty
Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other
Enabled protocols: NEC
Name: gpio_ir_recv
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms')
The journal gives the following information about ir-keytable:
$this->bbcode_second_pass_code('', '-- Unit systemd-udevd.service has begun starting up.
Feb 14 09:30:38 alarm kernel: IR keymap rc-rc6-mce not found
Feb 14 09:30:38 alarm kernel: Registered IR keymap rc-empty
Feb 14 09:30:38 alarm kernel: input: gpio_ir_recv as /devices/soc0/ir-receiver.24/rc/rc0/input0
Feb 14 09:30:38 alarm kernel: rc0: gpio_ir_recv as /devices/soc0/ir-receiver.24/rc/rc0
Feb 14 09:30:38 alarm kernel: IR Sony protocol handler initialized
Feb 14 09:30:38 alarm kernel: input: MCE IR Keyboard/Mouse (gpio-rc-recv) as /devices/virtual/input/input1
Feb 14 09:30:38 alarm kernel: IR MCE Keyboard/mouse protocol handler initialized
Feb 14 09:30:38 alarm kernel: IR NEC protocol handler initialized
Feb 14 09:30:38 alarm kernel: IR RC5(x) protocol handler initialized
Feb 14 09:30:38 alarm kernel: IR RC6 protocol handler initialized
Feb 14 09:30:38 alarm kernel: IR SANYO protocol handler initialized
Feb 14 09:30:38 alarm kernel: lirc_dev: IR Remote Control driver registered, major 242
Feb 14 09:30:38 alarm kernel: IR JVC protocol handler initialized
Feb 14 09:30:38 alarm kernel: rc rc0: lirc_dev: driver ir-lirc-codec (gpio-rc-recv) registered at minor = 0
Feb 14 09:30:38 alarm kernel: IR LIRC bridge handler initialized
Feb 14 09:30:38 alarm kernel: caam 2100000.caam: device ID = 0x0a16010000000000 (Era -524)
Feb 14 09:30:38 alarm kernel: caam 2100000.caam: job rings = 2, qi = 0
Feb 14 09:30:38 alarm kernel: cfg80211: Calling CRDA to update world regulatory domain
Feb 14 09:30:38 alarm kernel: usbcore: registered new interface driver brcmfmac
Feb 14 09:30:37 alarm systemd-udevd[187]: starting version 218
Feb 14 09:30:38 alarm systemd[1]: Started udev Kernel Device Manager.
-- Subject: Unit systemd-udevd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-udevd.service has finished starting up.')
What can I do?