How to enable a Remote on OSMC?

Hi, I just transferred from OpenELEC to OSMC, and I really enjoy it. I just want to get the apple tv remote (silver) to work with the raspberry pi?

I have a IR GPIO Adapter, and I can ssh into the raspberry pi, but other then that, I don’t really know where to go from here?

I enabled the IR GPIO in the MyOSMC Settings, and that was it.

Any help would be greatly appreciated!

Thanks,

You need to go to MyOSMC>remotes(remote icon) and select your remote from there. If you don’t have a remote icon then go to updates and update

Do the update through MyOSMC? Or update through the main system?

Didn’t we have this same convo less than 24hrs ago?

[14:25] <>>> Appl3Kork<<<>ActionA the update inside the MyOSMC addon? or
      update somewhere else?
[14:25] <@ActionA>inside
[14:25] < Appl3Kork>i'll try that
[14:25] <@ActionA>or by traditional linux methods
[14:25] <@ActionA>same either way

Yes ActionA we had the same convo. I couldn’t get it working, so I figured I’d try the forums… I do the update inside of MyOSMC and when i reboot no remote icon is in there?

Try
sudo apt-get update sudo apt-get dist-upgrade

Ok the Remote Icon is there now, I selected the remote, and enabled IR in the rpi config, rebooted. Still not getting anything from the remote? Is there something else I was suppose to do?

Yes, learn the remote and submit a copy of your learned conf . The Apple remotes are strange in that different remotes will put out different signals, I assume this is so that more than one ATV can survive in a room without conflicts. Our conf file supplied with OSMC has several but not all possible remote configurations so if it doesn’t work then remote learning will be needed. This is not hard as there are only 7 or so buttons. Assuming there are a finite number of remote possibilities as more conf files are submitted by users and then added to our existing conf file we will eventually have them all covered.

How do I go about making the remote learn the keys, and submitting it to where?

I should really redo this for OSMC but haven’t.

http://forum.osmc.tv/showthread.php?tid=5549 scroll down to Step 3 of the post. Any path name that contains pi will need to be changed to osmc

If you post the completed conf file to dropbox or http://paste.osmc.io/ with a link here I will see to it that it makes it to the right place and thanks in advance for your contribution

OK so that got it working! can’t thank you enough! Just one problem… The ENTER Key or SELECT Key, I marked them as KEY_SELECT but that didn’t work, then tried KEY_ENTER, and that wouldn’t work either? Is there a certain command I can make that key so that it selects the tab that i highlight in OSMC?

Try KEY_OK not at home to check but that may be the one

Pete

Thanks Pete, but that one doesn’t work either :frowning:

^^^^^
KEY_OK is the enter/select key, the other tricky one is KEY_TITLE which is ContextMenu (right click)

Post a link to the completed conf if you would.

You’ll need a reboot after any changes to make them work, KEY_OK is right

Here’s the code of the lircd.conf:

# 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 Tue Dec 11 23:40:38 2012
#
# contributed by 
#
# brand: apple
# model no. of remote control: A1294
# devices being controlled by this remote:
#

begin remote

  name  apple_a1294_1
  bits            8
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9074  4475
  one           572  1660
  zero          572   554
  ptrail        571
  repeat       9074  2235
  pre_data_bits   16
  pre_data       0x77E1
  post_data_bits  8
  post_data      0x37
  gap          108392
  toggle_bit_mask 0x0

      begin codes
          KEY_UP                   0x50
          KEY_DOWN                 0x30
          KEY_LEFT                 0x90
          KEY_RIGHT                0x60
          KEY_OK                   0x3A 0xA0
          KEY_MENU                 0xC0
          KEY_PLAY                 0xFA 0xA0
      end codes

end remote

begin remote

name apple_a1294_2
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9070 4445
one 588 1638
zero 588 534
ptrail 589
repeat 9077 2212
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0xD1
gap 108062
toggle_bit_mask 0x0

begin codes
KEY_UP 0xD0
KEY_DOWN 0xB0
KEY_LEFT 0x10
KEY_RIGHT 0xE0
KEY_OK 0xBA 0x20
KEY_MENU 0x40
KEY_PLAY 0x7A 0x20
end codes

end remote

begin remote

name apple_a1294_3
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9107 4428
one 607 1619
zero 607 519
ptrail 608
repeat 9108 2196
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0x10
gap 108212
toggle_bit_mask 0x0

begin codes
KEY_UP 0x50
KEY_DOWN 0x30
KEY_LEFT 0x90
KEY_RIGHT 0x60
KEY_OK 0x3A 0xA0
KEY_MENU 0xC0
KEY_PLAY 0xFA 0xA0
end codes

end remote

begin remote

name apple_a1294_4
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9054 4472
one 561 1663
zero 561 567
ptrail 565
repeat 9055 2236
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0xF1
gap 108151
toggle_bit_mask 0x0

begin codes
KEY_UP 0x50
KEY_DOWN 0x30
KEY_LEFT 0x90
KEY_RIGHT 0x60
KEY_PLAY 0xFA 0xA0
KEY_MENU 0xC0
KEY_OK 0x3A 0xA0
end codes

end remote

@Appl3Kork That file looks like the bundled one, I don’t see your learns in it

Hmm, I followed step 3 and on, and everything seemed to be working. I’ll give it another go.

It was saving it as lircd.conf.conf that’s why I didn’t see it:

# 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(default) on Sun Apr  5 17:35:30 2015
#
# contributed by 
#
# brand:                       /home/osmc/lircd.conf.conf
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  /home/osmc/lircd.conf.conf
  flags RAW_CODES|CONST_LENGTH
  eps            30
  aeps          100

  gap          107756

      begin raw_codes

          name KEY_UP
             9038    4444     541     584     533    1685
              530    1687     540    1678     540     582
              532    1714     535    1655     561    1663
              537    1687     529    1707     505    1685
              538     580     541     581     535     586
              533     585     532    1714     533    1650
              546    1708     506     586     534    1685
              541     579     539     580     536     585
              537     583     533     586     532     588
              546    1675     566     554     532    1687
              532     588     539    1680     536    1704
              579

          name KEY_RIGHT
             9003    4486     540     580     558    1659
              588    1605     620    1598     568     578
              539    1690     527    1682     533    1683
              544    1717     501    1692     530    1675
              566     553     531     588     539     581
              558     562     536    1684     562    1656
              583    1637     536    1681     535     586
              533     585     562     557     542     605
              555     539     535     609     508     586
              532    1686     540     578     542    1679
              535     584     580    1641     531    1703
              561

          name KEY_DOWN
             9016    4488     534     555     562    1680
              536    1685     550    1669     537     609
              509    1721     497    1712     514    1678
              552    1666     534    1687     560    1656
              539     610     538     553     535     611
              519     577     537    1681     538    1680
              535     585     534    1690     577    1645
              535     581     537     583     566     583
              517     569     540     579     540     604
              513    1683     552     568     532    1688
              558     591     506    1680     569    1666
              534

          name KEY_LEFT
             9033    4552     465     591     535    1693
              535    1704     534    1627     587     584
              504    1687     562    1657     535    1684
              563    1655     531    1699     526    1680
              538     582     564     555     533     560
              558     591     538    1679     568     563
              524     585     534     586     531    1687
              590     531     537     581     537     582
              536     587     565     553     585     541
              535    1695     553     559     555    1656
              562     583     513    1697     519    1698
              537

          name KEY_OK
             9010    4481     566     556     541    1704
              512    1706     510    1709     550     571
              502    1689     538    1707     539    1678
              509    1688     558    1670     529    1771
              472     555     532     587     530     590
              538     582     567    1653     535    1681
              563     559     559    1660     566    1658
              531    1681     563     558     539    1653
              593     553     536     585     532     587
              562    1656     559     562     567    1653
              532     588     530    1688     539    1696
              540

          name KEY_MENU
             9029    4462     567     556     532    1687
              626    1602     535    1674     535     583
              534    1712     514    1677     539    1705
              481    1740     505    1714     513    1678
              560     561     536     619     498     587
              540     606     531    1687     509     585
              533    1686     540     579     539     591
              528     560     558     612     536     558
              560     584     515     605     512     582
              536    1721     500     614     504    1729
              494     605     511    1682     534    1701
              586

          name KEY_PLAYPAUSE
             9038    4446     560     533     565    1664
              553    1685     547    1671     538     577
              539    1684     563    1652     564    1649
              547    1680     566    1652     564    1653
              593     529     558     563     534     596
              523     585     532    1687     540     580
              540    1681     534    1684     531    1699
              531    1680     562     554     537    1682
              539     586     558     561     538     582
              565    1634     580     552     565    1630
              586     561     541    1651     612    1622
              564

      end raw_codes

end remote

But hey, it’s working now! Thanks for your help!