Dear all,
can anyone help me to get an original xbox remote working. I use a RPi1 along with a GPIO receiver
GPIO config and boot output:
leia1:~ # dmesg|fgrep lirc
[ 15.798007] lirc_dev: IR Remote Control driver registered, major 245
[ 16.430358] rc rc0: lirc_dev: driver ir-lirc-codec (gpio-rc-recv) registered at minor = 0
version of Kodi Leia used:
output of ir-keytable:
leia1:~ # ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event2) with:
Driver: gpio-rc-recv, table: rc-rc6-mce
lirc device: /dev/lirc0
Supported protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp
Enabled protocols: lirc
Name: gpio_ir_recv
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms
using raw signales with 'mode2'
leia1:~ # mode2
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Warning: Running as root.
space 16777215
pulse 269
space 11744
pulse 281
space 11730
pulse 222
space 10784
pulse 222
space 10474
...
Display More
So basically the remote is recognized. Here is the lircd.conf copied from an older LE Leia built where it works with the old original USB IR receiver on a RPi2.
leia1:~ # cat /storage/.config/lircd.conf
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.1-git(default) on Sat Jan 26 21:54:39 2013
#
# contributed by
#
# brand: xbox.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name XboxDVDDongle
bits 8
eps 30
aeps 100
one 0 0
zero 0 0
gap 163983
min_repeat 4
# suppress_repeat 4
# uncomment to suppress unwanted repeats
# toggle_bit_mask 0x72
toggle_bit_mask 0x0
begin codes
KEY_OK 0x0B
KEY_PLAY 0xEA
KEY_STOP 0xE0
KEY_PAUSE 0xE6
KEY_NEXT 0xDF
KEY_PREVIOUS 0xDD
KEY_FASTFORWARD 0xE3
KEY_REWIND 0xE2
KEY_MEDIA 0xD5
KEY_EPG 0xE5
KEY_INFO 0xC3
KEY_UP 0xA6
KEY_DOWN 0xA7
KEY_LEFT 0xA9
KEY_RIGHT 0xA8
KEY_MENU 0xF7
KEY_EXIT 0xD8
KEY_0 0xCF
KEY_1 0xCE
KEY_2 0xCD
KEY_3 0xCC
KEY_4 0xCB
KEY_5 0xCA
KEY_6 0xC9
KEY_7 0xC8
KEY_8 0xC7
KEY_9 0xC6
end codes
end remote
Display More
Now, the ir-keytable does not give any event output so I cannot create a proper keytable. I tried every protocol of the supported ones, but no output at all. Does this mean I have to switch to another remote or what can I do? Out of curiosity, I tried an old WD live remote which worked with the 'nec' protocol ie. it produced events, but I want to understand why the old Xbox does not work and then use it (see above, raw signals do work). Here the trial with the WD live remote:
leia1:~ # ir-keytable -p nec -t
Protocols changed to nec
Testing events. Please, press CTRL-C to abort.
4471.469693: event type EV_MSC(0x04): scancode = 0x847908
4471.469693: event type EV_SYN(0x00).
4472.559743: event type EV_MSC(0x04): scancode = 0x847904
4472.559743: event type EV_SYN(0x00).
4473.289678: event type EV_MSC(0x04): scancode = 0x84790a
4473.289678: event type EV_SYN(0x00).
Still there is from the RPi2 built (see above) a lircmap.xml and Lircmap.xml that worked there. Copied them to try out whether kodi will work with it despite ir-keytables shows nothing, but without success. However, manually starting kodi via systemd 'systemctl start kodi' and looking with 'ps aux' lircd was properly started with
leia1:~/.kodi/userdata # ps aux
PID USER TIME COMMAND
...
803 root 0:00 {kodi.sh} /bin/sh /usr/lib/kodi/kodi.sh --standalone -fs
807 root 7:10 /usr/lib/kodi/kodi.bin --standalone -fs
...
892 root 0:00 lircd --device=/dev/input/event2 /storage/.config/lircd.conf
...
Thanks a lot and best regards.