Thread Rating:
  • 3 Vote(s) - 5 Average
[How-To] The NEW XBOX One Media Remote On Openelec
#1
Image

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
Reply
#2
Is this for any standard IR reciever , any idea will it work with intel NUC DN2820FYKH
Reply
#3
(2014-03-27, 17:34)kindrudekid Wrote: Is this for any standard IR reciever
any idea will it work with intel NUC DN2820FYKH

Yes


Dont know, Try it out
Reply
#4
(2014-03-28, 00:48)FishOil Wrote:
(2014-03-27, 17:34)kindrudekid Wrote: Is this for any standard IR reciever
any idea will it work with intel NUC DN2820FYKH

Yes


Dont know, Try it out

got any idea to set it up on XBMC with ubuntu 13.10 as base
Reply
#5
(2014-03-29, 21:08)kindrudekid Wrote:
(2014-03-28, 00:48)FishOil Wrote:
(2014-03-27, 17:34)kindrudekid Wrote: Is this for any standard IR reciever
any idea will it work with intel NUC DN2820FYKH

Yes


Dont know, Try it out

got any idea to set it up on XBMC with ubuntu 13.10 as base

Assuming you have a LIRC IR remote working already, Just make a backup of your lircd.conf and Lircmap.xml. Then use the two in the first post.
Reboot and you should be good to go.

If not, install LIRC and put those two files in the correct place.

/etc/lirc/lircd.conf
/home/the-xbmc-user/.xbmc/userdata/Lircmap.xml
Reply
#6
(2014-03-29, 21:28)FishOil Wrote: Assuming you have a LIRC IR remote working already, Just make a backup of your lircd.conf and Lircmap.xml. Then use the two in the first post.
Reboot and you should be good to go.

If not, install LIRC and put those two files in the correct place.

/etc/lirc/lircd.conf
/home/the-xbmc-user/.xbmc/userdata/Lircmap.xml


Sweet got it to work, now only need to figure out how to get the view button to function as context menu so it can pop up the context menu!
Reply
#7
(2014-03-29, 22:13)kindrudekid Wrote:
(2014-03-29, 21:28)FishOil Wrote: Assuming you have a LIRC IR remote working already, Just make a backup of your lircd.conf and Lircmap.xml. Then use the two in the first post.
Reboot and you should be good to go.

If not, install LIRC and put those two files in the correct place.

/etc/lirc/lircd.conf
/home/the-xbmc-user/.xbmc/userdata/Lircmap.xml


Sweet got it to work, now only need to figure out how to get the view button to function as context menu so it can pop up the context menu!

The menu button functions as the context menu. do you want to switch them? If so, look closely at the Lircmap.xml and you can figure it out.
Reply
#8
(2014-03-29, 22:18)FishOil Wrote: The menu button functions as the context menu. do you want to switch them? If so, look closely at the Lircmap.xml and you can figure it out.


I tried but nothing happens on my, the top buttons above the direction they do nothing.
Reply
#9
Make a backup of your /home/the-xbmc-user/.xbmc/userdata/keymaps/remote.xml

and try this one.

http://pastebin.com/raw.php?i=aQSDnR5J
Reply
#10
it is working brother!

(2014-03-29, 22:38)FishOil Wrote: Make a backup of your /home/the-xbmc-user/.xbmc/userdata/keymaps/remote.xml

and try this one.

http://pastebin.com/raw.php?i=aQSDnR5J

just curious what was different in the remote xml ?

PS: i'm now on a temp setup of openelec, will figure out to get it working on ubuntu later ...
Reply
#11
(2014-03-29, 22:46)kindrudekid Wrote: it is working brother!

See......LIRC is easy!

Good Job!

Tongue

(2014-03-29, 22:46)kindrudekid Wrote: it is working brother!


just curious what was different in the remote xml ?

PS: i'm now on a temp setup of openelec, will figure out to get it working on ubuntu later ...

The directions I was giving you were for Ubuntu but you were smart enough to figure it out.

I am sure I have some sort of tweaked Lircmap.xml and remote.xml that is not quite standard. Thats why it works with the remote.xml I gave you.

To others reading this, you might want to consider using it as well (or tweak your existing one).
Reply
#12
(2014-03-29, 22:51)FishOil Wrote:
(2014-03-29, 22:46)kindrudekid Wrote: it is working brother!

See......LIRC is easy!

Good Job!

Tongue

(2014-03-29, 22:46)kindrudekid Wrote: it is working brother!


just curious what was different in the remote xml ?

PS: i'm now on a temp setup of openelec, will figure out to get it working on ubuntu later ...

The directions I was giving you were for Ubuntu but you were smart enough to figure it out.

I am sure I have some sort of tweaked Lircmap.xml and remote.xml that is not quite standard. Thats why it works with the remote.xml I gave you.

To others reading this, you might want to consider using it as well (or tweak your existing one).

Oh I live for this stuff, its just that now that I have a job and full time school, I prefer not to invest time to go through and read the wiki.

I just needed to make sure it works on my NUC, I'll be restoring my ubuntu image and figure it out to work with it till a stable openelec comes out or rather all my addons work with gotham
Reply
#13
Hi,

is there any chance of helping out a complete newbie thats only installed Openelec for the first time today.

Bought this remote as looks the best, but can not get it to work. First time trying to SSH/Putty and not sure doing it right. Do you have a more detailed instructions at all please?
Reply
#14
(2014-04-11, 15:29)mxlmxl Wrote: Hi,

is there any chance of helping out a complete newbie thats only installed Openelec for the first time today.

Bought this remote as looks the best, but can not get it to work. First time trying to SSH/Putty and not sure doing it right. Do you have a more detailed instructions at all please?

Ok..This one is just for you.Big Grin As it will overwrite existing files if someone else has them already (That you dont have)

We will execute the commands one by one and explain.

ssh into the openelec box and copy paste these commands.


Code:
nano ~/.config/autostart.sh

Then copy paste this into it. (or type it)

Code:
#!/bin/sh

killall lircd
ir-keytable -p lirc
lircd --device=/dev/lirc0 /storage/.config/lircd.conf

press ctrl+o (<---------Thats the Letter O not ZERO) then enter to confirm the saving
Press ctrl+x to exit nano


Then make it executable

Code:
chmod +x ~/.config/autostart.sh

This command will download text from pastebin and save it as lircd.conf
Code:
wget http://pastebin.com/raw.php?i=UcyYsQ6D -O /storage/.config/lircd.conf

This command will again download text from pastbin and save it as Lircmap.xml in the userdata directory
Code:
wget http://pastebin.com/raw.php?i=KEQSnzSE -O /storage/.xbmc/userdata/Lircmap.xml


This command will again download text from pastebin and save it as remote.xml in the keymaps directory
Code:
wget http://pastebin.com/raw.php?i=aQSDnR5J -O /storage/.xbmc/userdata/keymaps/remote.xml

All this assumes you have a correct IR receiver and it is identified to the system as /dev/lirc0.

Reboot, Use the remote.
Reply
#15
(2014-04-11, 20:57)FishOil Wrote: Awesome instructions

Just wanted to say thank you! Strangely it simply would not work on Openelec. I then tried XBMCubuntu and adjusted them slightly and everything worked perfectly.

Really appreciate your help!
Reply



[How-To] The NEW XBOX One Media Remote On Openelec53