|  | 
| Edited by lymon at 2016-2-23 00:32 
 As the opi-pc has a built in IR-receiver it should work.
 
 For the latest/new image versions of Openelec for the OPI you can basically use the official Openelec guide to add your own remote : http://wiki.openelec.tv/index.php/Guide_to_add_your_own_remote
 
 For those that are not very familiar with linux, this roughly translates to the following procedure:
 
 Make sure you have ssh enabled (you can enable ssh during the first startup or afterwards via system > Openelec > Services > ssh --> enable ssh)
 (If you are on windows, I find PuTTy to be the best/easiest ssh client: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
 
 Now connect to your orangepi/openelec installation via ssh:
 (for PuTTy, just enter the ip-address of the OPI into the host-name field, press enter and it should start a ssh session with your OPI)
 
 user: root, password: openelec
 
 once you are logged in, copy/paste:
 (if you use putty, just use the right mouse button to paste into the ssh-window)
 then:Copy codesystemctl stop eventlircd.service; systemctl stop kodi.service
 Copy codeir-keytable -p NEC,RC-5,RC-6,JVC,SONY,LIRC,OTHER ; ir-keytable -c ; ir-keytable -t
now start pressing keys on your remote and you should see output similar to this:
 
 Copy code1456137251.664522: event type EV_MSC(0x04): scancode = 0x847905
1456137251.664528: event type EV_SYN(0x00).
the scancodes are the important numbers here.
 You can use the little skeleton table below that has most of the common functions ...replace the scancodes (the 0x000000 numbers in the table) for the codes that match with the specific buttons of your remote.
 
 NB: Remove any buttons/commands from the table that you don't use/need or that are not on your remote.
 
 Copy code0x000000 KEY_UP
0x000000 KEY_DOWN
0x000000 KEY_LEFT
0x000000 KEY_RIGHT
0x000000 KEY_SELECT
0x000000 KEY_PLAY
0x000000 KEY_STOP
0x000000 KEY_BACK
0x000000 KEY_1
0x000000 KEY_2
0x000000 KEY_3
0x000000 KEY_4
0x000000 KEY_5
0x000000 KEY_6
0x000000 KEY_7
0x000000 KEY_8
0x000000 KEY_9
0x000000 KEY_0
0x000000 KEY_MENU
0x000000 KEY_POWER
0x000000 KEY_PAGEUP              
0x000000 KEY_PAGEDOWN
0x000000 KEY_TITLE
0x000000 KEY_INFO
0x000000 KEY_VOLUMEUP            
0x000000 KEY_VOLUMEDOWN          
0x000000 KEY_MUTE
0x000000 KEY_REWIND               
0x000000 KEY_FASTFORWARD
0x000000 KEY_NEXT
0x000000 KEY_PREVIOUS             
0x000000 KEY_CLEAR
example:
 if you press the PLAY button on your remote and it shows the scancode is 0x801001, then this translates to 0x801001 KEY_PLAY in the table.
 If the UP button on your remote shows scancode 0x801002, then enter 0x801002 KEY_UP in the table
 etc.
 
 
 Once you have a table that suits your needs, exit out of the ir-keytable testing routine (ctrl+c) and enter:
 
 copy paste the table you created into the nano window (for putty: just use the right mouse button to paste into the ssh-window)Copy codenano /storage/.config/my_remote
and exit out of nano, using ctrl+x,and press y , enter to confirm to save the new file.
 
 next we will create an autostart file:
 
 and copy/paste the following line into nano/autostart.sh:Copy codenano /storage/.config/autostart.sh
 again exit out of nano, using ctrl+x,and  press y , enter to confirm to save the new file.Copy codeir-keytable -c -p NEC,RC-5,RC-6,JVC,SONY,LIRC,OTHER -w /storage/.config/my_remote
 now reboot/restart openelec (or just enter reboot in ssh) and after it has restarted your remote should now work.
 
 Hope this helps
 
 NB : for the older images use the procedure I wrote here: http://www.orangepi.org/orangepibbsen/forum.php?mod=redirect&goto=findpost&ptid=648&pid=7602&fromuid=144740 )
 
 
 
 | 
 |