2014-03-27, 05:56
XBOX-ONE Media Remote
This remote does NOT work out of the box with Openelec at the time of this writing.
So, Here ya go.
Create an autostart.sh file in /storage/.config/
autostart.sh
Code:
#!/bin/sh
killall lircd
ir-keytable -p lirc
lircd --device=/dev/lirc0 /storage/.config/lircd.conf
change /dev/lirc0 to fit your needs if its different
make it executable
Code:
chmod +x /storage/.config/autostart.sh
Create an lircd.conf in /storage/.config/
lircd.conf
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Wed Mar 26 17:55:18 2014
#
# contributed by FishOil
#
# brand: XBOX-ONE
# model no. of remote control: XBOX ONE Media Remote
# devices being controlled by this remote: XBMC XBOX ONE
#
begin remote
name XBOX-ONE
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9061 4460
one 596 1662
zero 596 527
ptrail 582
repeat 9032 2232
pre_data_bits 16
pre_data 0x11B
gap 107260
toggle_bit_mask 0x0
begin codes
XboxFancyButton 0x26D9
View 0x7689
Menu 0xF609
Up 0x7887
Down 0xF807
Left 0x04FB
Right 0x847B
Select 0x44BB
Back 0xC43B
Guide 0x649B
VolumeUp 0x08F7
VolumeDown 0x8877
Mute 0x708F
ChannelUp 0x48B7
ChannelDown 0xC837
Rewind 0xA857
FastForward 0x28D7
Play 0x0EF1
Previous 0xD827
Next 0x58A7
Stop 0x9867
end codes
end remote
Create an Lircmap.xml in /storage/.kodi/userdata
Note the capital L
Lircmap.xml
Code:
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->
<!-- -->
<!-- How to add remotes -->
<!-- <remote device=name_Lirc_calls_the_remote> -->
<!-- -->
<!-- For the commands the layout following layout is used -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> -->
<!-- -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml -->
<lircmap>
<remote device="XBOX-ONE">
<power>XboxFancyButton</power>
<display>View</display>
<menu>Menu</menu>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Select</select>
<back>Back</back>
<info>Guide</info>
<volumeplus>VolumeUp</volumeplus>
<volumeminus>VolumeDown</volumeminus>
<mute>Mute</mute>
<pageplus>ChannelUp</pageplus>
<pageminus>ChannelDown</pageminus>
<reverse>Rewind</reverse>
<play>Play</play>
<forward>FastForward</forward>
<skipminus>Previous</skipminus>
<stop>Stop</stop>
<skipplus>Next</skipplus>
</remote>
</lircmap>
Copy the system user remote.xml to the keymaps directory
Code:
cp /usr/share/kodi/system/keymaps/remote.xml /storage/.kodi/userdata/keymaps
Or you may find it easier to use this remote.xml
Reboot and it should be working.
Tweak Lircmap.xml and or remote.xml to suite your taste