OSMC Remote Support

Should be under the Programs addons.

Where did your lircd.conf file come from ?

Check to see if one of the keys is assigned to KEY_ENTER, if so change it to KEY_OK.

There is no key assigned to KEY_ENTER. This is my lirc.conf:

begin remote

name Hauppauge 45 Button Remote/PVR_350
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 910 860
zero 910 860
plead 938
gap 113874
min_repeat 1
toggle_bit_mask 0x800

  begin codes
      KEY_POWER2               0x17BD
      KEY_TV                   0x179C
      KEY_VIDEO                0x1798
      KEY_LEFT                 0x1796
      KEY_UP                   0x1794
      KEY_RIGHT                0x1797
      KEY_OK                   0x17A5
      KEY_DOWN                 0x1795
      KEY_BACK                 0x179F
      KEY_MENU                 0x178D
      KEY_VOLUMEUP             0x1790
      KEY_VOLUMEDOWN           0x17B7
      KEY_MUTE                 0x178F
      KEY_CHANNELUP            0x17A0
      KEY_CHANNELDOWN          0x17A1
      KEY_RECORD               0x17B7
      KEY_STOP                 0x17B6
      KEY_REWIND               0x17B2
      KEY_PLAY                 0x17B5
      KEY_FASTFORWARD          0x17B4
      KEY_BACK                 0x17A4
      KEY_PAUSE                0x17B0
      KEY_NEXT                 0x179E
      KEY_1                    0x1781
      KEY_2                    0x1782
      KEY_3                    0x1783
      KEY_4                    0x1784
      KEY_5                    0x1785
      KEY_6                    0x1786
      KEY_7                    0x1787
      KEY_8                    0x1788
      KEY_9                    0x1789
      KEY_0                    0x1780
      KEY_RED                  0x178B
      KEY_GREEN                0x17AE
      KEY_YELLOW               0x17B8
      KEY_BLUE                 0x17A9
      KEY_GOTO                 0x17BB
      KEY_AUDIO                0x1799
      KEY_IMAGES               0x179A
      KEY_EPG                  0x179B
      KEY_RADIO                0x178C
      KEY_NUMERIC_POUND        0x178E
      KEY_NUMERIC_STAR         0x178A
      KEY_PREVIOUS             0x1792
 end codes

end remote

begin remote

thanks to RedR on raspbmc forum

name RCA RCRN03BR
bits 24
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 4087 3934
one 573 1927
zero 573 937
ptrail 562
gap 64687
toggle_bit_mask 0x0

  begin codes
      KEY_REWIND               0x51DAE2
      KEY_PLAY                 0x515AEA
      KEY_FASTFORWARD          0x51CAE3
      KEY_STOP                 0x51FAE0
      KEY_PAUSE                0x519AE6
      KEY_PREVIOUSSONG         0x522ADD
      KEY_NEXTSONG             0x520ADF
      KEY_MENU                 0Xf1a0e5
      KEY_BACK                 0xF1A0E5
      KEY_VOLUMEUP             0xF2F0D0
      KEY_VOLUMEDOWN           0xF2E0D1
      KEY_UP                   0xF590A6
      KEY_DOWN                 0xF580A7
      KEY_LEFT                 0xF560A9
      KEY_RIGHT                0xF570A8
      KEY_OK                   0xFF400B
      KEY_MUTE                 0xF3F0C0
      KEY_MENU                 0xF080F7
      KEY_BACK                 0xF270D8
      KEY_1                    0xF310CE
      KEY_2                    0xF320CD
      KEY_3                    0xF330CC
      KEY_4                    0xF340CB
      KEY_5                    0xF350CA
      KEY_6                    0xF360C9
      KEY_7                    0xF370C8
      KEY_8                    0xF380C7
      KEY_9                    0xF390C6
      KEY_0                    0xF300CF

Keys I cannot find a --namespace for

RECORD 0x517AE8

SLOW 0x510AEF

CHANNELUP 0xF2D0D2

CHANNELDOWN 0xF2C0D3

SLEEP 0xF070F8

PIP 0xF1B0E4

INFO 0xF3C0C3

SWAP 0xFC303C

EXIT 0xF060F9

ENTER 0xFF400B

- 0xFA305C

  end codes

end remote

And this is my remote control:

I ran modprobe lirc_xbox (there was no lirc module) and it didn’t help. lsmod shows:


lirc_xbox 12274 0
lirc_dev 11364 1 lirc_xbox
rc_core 25741 1 lirc_dev

which is the same as what I see on the working Raspbmc system.

Mike

I just tried plugging in an HP RC6 receiver into the OSMC Pi 2 and it works right away. lsmod shows:

lirc_xbox 8908 0
lirc_dev 7164 4 lirc_xbox snd_soc_core 99000 4 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_tas5713,snd_soc_bcm2708_i2s
snd_compress 6124 1 snd_soc_core

rc_core 12728 1 lirc_dev

Plugging the Xbox receiver into the Raspbmc Pi system and lsmod is unchanged:

lirc_xbox 8908 0
lirc_dev 7164 4 lirc_xbox
rc_core 12728 1 lirc_dev

Mike

Ran another OSMC update last night on the Pi 2 and now the XBox DVD remote is working fine. After the update I noticed that the Remote in MyOSMC was not correctly set so I changed it back to XBox remote and now all is well. Pretty sure it was correctly set before the update though.

Mike

Hi all, first post

Installed OSMC RC2 on my Pi B, had similar issues with XBOX remote not working. Updated and waited for install. Selected XBOX remote in My OSMC and rebooted. Remote worked. Installed library, everything worked fine.

Had a power cut overnight which caused obvious reboot of Pi (normally left on 24/7). Remote stopped working, no-matter how many times I re-selected it, and rebooted. Still not working.

Pi 2 arrived a few days ago, installed RC2 on it. XBOX remote worked after updates and select/reboot. Then stopped working after further reboot. Exactly the same as my Pi 1.

Using Kore on my phone at the moment, but I miss the old remote. Badly.

Can someone tell me in noob terms how to fix this, because it’s always just worked over the last three years I’ve used my old Pi 1 thru XBMC and Kodi.

I know why

I’ll fix this for next release.

S

Greetings -

I just performed a fresh install using the windows installer and installed on a
PI 1(B) 512K - I picked Release Candidate RC2 when asked.

I have a remove from ADAfruit - with a GPIO receiver and small remote control.
It was sold specifically for the Pi and XBMC. It obviously uses LIRC but I do not
see it on the list anywhere. The ADAFruit website has the file listing.

Can this be added please?

Thank you,
Jim Pope
Denver, Colorado
USA

Hi John,

You can add a custom lircd.conf yourself - follow the instructions they provide to save the config to a file called lircd.conf - the only difference with osmc is that the home directory is /home/osmc not /home/pi as it was in raspbmc.

Once you have saved the file use the remotes option in OSMC settings, choose browse, and browse to the file you created. The remote should then start working.

I notice from looking at their file that a couple of things may need changing however - KEY_ENTER will probably need changing to KEY_OK, and I’m not sure that KEY_KP1 to KEY_KP9 is correct.

Could you please test their config to see that all the buttons work properly, if not we can tweak the KEY_ settings until it does work properly.

If you can get it working 100% with a few tweaks we can add it to the list of built in remote configs as we are wanting to build up user-confirmed remote configs over time. (We only want to add ones we know work properly and have been confirmed as working by at least one user)

Many thanks Sam, you’re a good egg :slight_smile:

Thanks,

I will test and tweak this weekend.
I will report back when I get some results.

JPDenver

Hi, Jim in Denver again.
I lost my Plasma right after you responded to the last posting, and I only now have
gotten a new display.

I tried to SSH into my Pi,
and the following occured:

Jims-Air-3:~ Jim$ ssh 10.6.18.221
OSMC: Open Source Media Center
Jim@10.6.18.221’s password:
Permission denied, please try again.
Jim@10.6.18.221’s password:

The password I tried was OSMC and also “osmc” -

Can you help? I am a linux-clueless old fart.

Thanks,
Jim Pope
Denver

@jpdenver, you have to use osmc as user. Means ssh osmc@10.6.18.221 and then use password osmc.
As you can see you tried to access the device with user Jim and password osmc that can not work

Thanks,
Trying it now.

JP

Jim Again.

I Successfully uploaded the file and saved it to the right directory.
I then entered OSMC Settings and was able to find the file
when I browsed to it.

I was then prompted for approval to apply the change - I forget
the actual verbage - and then rebooted the Pi.

NO LUCK - the Pi ignores the remote.

NOTE: The remote worked on Raspbmc before my SD card
self destructed.

Is there anything else I need to do, turn on, etc?

Thanks in advance,
Jim Pope - Denver

Here is the contents of the file:

Please make this file available to others
by sending it to lirc@bartelmus.de

this config file was automatically generated
using lirc-0.9.0-pre1(default) on Thu Mar 14 14:21:25 2013

contributed by James Pope/ADAFruit

brand: ADAFruit IR Remote
save to: /home/osmc/lircd.conf
model no. of remote control: Mini Remote Control : ID 389 : $4.95 : Adafruit Industries, Unique & fun DIY electronics and kits
devices being controlled by this remote: KODI on Raspberry PI

begin remote

name /home/osmc/lircd.conf
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 8945 4421
one 594 1634
zero 594 519
ptrail 598
repeat 8949 2187
pre_data_bits 16
pre_data 0xFD
gap 106959
toggle_bit_mask 0x0

  begin codes
      KEY_VOLUMEDOWN           0x00FF
      KEY_PLAYPAUSE            0x807F
      KEY_VOLUMEUP             0x40BF
      KEY_SETUP                0x20DF
      KEY_UP                   0xA05F
      KEY_STOP                 0x609F
      KEY_LEFT                 0x10EF
      KEY_OK                   0x906F
      KEY_RIGHT                0x50AF
      KEY_KP0                  0x30CF
      KEY_DOWN                 0xB04F
      KEY_BACK                 0x708F
      KEY_KP1                  0x08F7
      KEY_KP2                  0x8877
      KEY_KP3                  0x48B7
      KEY_KP4                  0x28D7
      KEY_KP5                  0xA857
      KEY_KP6                  0x6897
      KEY_KP7                  0x18E7
      KEY_KP8                  0x9867
      KEY_KP9                  0x58A7
  end codes

end remote

Sorry about the font on the previous post.

Jim Pope

Hi John,

No problem about the text - if you’re pasting a configuration file or log snippet you can use the pre-formatted text option - to do that highlight then entire text you want to format then click on the </> icon in the text editor.

Regarding this not working - did you enable GPIO support in Pi Config ? Go to My OSMC->Pi Config->Hardware support and turn on “Enable LIRC GPIO support”. You will need to reboot after doing this for it to take effect.

The default gpio_out_pin and gpio_in_pin are 17 and 18 respectively which is the “standard” locations for GPIO receivers to connect as shown here:

(Note: GPIO pint numbers are not the physical pin numbering)

Let us know whether turning that on helped, if not we’ll go to the next step in troubleshooting.

Hello I’m a new customer of osmc and i want to thanks you for you work.
I’m trying to make work my creative rm1800 remote working but i have some problems.
I thought the file for my remote at this page (http://lirc.sourceforge.net/remotes/creative/RM-1800)

but when i press one button my remote make two same action for example when i press the button up the cursor go two “up action”.

When i do irw this is what i’ve got
67 0 KEY_UP linux-input-layer
67 1 KEY_UP linux-input-layer
67 0 KEY_UP_UP linux-input-layer
67 0 KEY_UP linux-input-layer
67 0 KEY_UP_UP linux-input-layer
6a 0 KEY_RIGHT linux-input-layer
6a 0 KEY_RIGHT_UP linux-input-layer
6a 0 KEY_RIGHT linux-input-layer
6a 0 KEY_RIGHT_UP linux-input-layer
6a 0 KEY_RIGHT linux-input-layer
6a 0 KEY_RIGHT_UP linux-input-layer
6a 0 KEY_RIGHT linux-input-layer
6a 1 KEY_RIGHT linux-input-layer
6a 2 KEY_RIGHT linux-input-layer
6a 3 KEY_RIGHT linux-input-layer
6a 0 KEY_RIGHT_UP linux-input-layer

i thinks this is what my remote doesn’t work proper.

Please can you help me

Ps: sorry for my bad english i hope that you understand me

Patrice