How to get white Apple ir remote (A 1156) control working with usb ir receiver?

Hi

Using newest rasplex.

I am trying to set up my white Apple remote (A 1156) to be used with rasplex.

Hardware info about the ir dongle, so it seems to be working:

[  237.861128] usb 1-1.2.3: new full-speed USB device number 6 using dwc_otg
[  237.957286] usb 1-1.2.3: New USB device found, idVendor=066f, idProduct=4200
[  237.957329] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  237.957348] usb 1-1.2.3: Product:  IrDA/USB Bridge
[  237.957364] usb 1-1.2.3: Manufacturer:  Sigmatel Inc

I have found the howto at github.com/RasPlex/RasPlex/wiki/GPIO-IR but somehow I don’t manage to get it to work. I have the feeling, that some low-level stuff is not working (USB ir-receiver?).

OK. Some info:

RasPlex:~ # dmesg | grep lirc
[    7.900425] lirc_dev: IR Remote Control driver registered, major 245
[    7.936112] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[    8.847792] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[    8.848085] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[    8.848100] lirc_rpi: driver registered!
[   11.991152] input: lircd as /devices/virtual/input/input1
RasPlex:~ #

So I assume the drivers for the USB ir receiver are loaded - am I correct?

The following file is from official lirc site:

RasPlex:~ # cat .config/lircd.conf  
# this config file was automatically generated 
# using lirc-0.8.1(iguanaIR) on Fri Mar 30 19:20:40 2007
#
# contributed by Matthias Urlichs <matthias|urlichs.de>
#
# brand:                       Apple
# model no. of remote control: A1156
# devices being controlled by this remote: new (late 2006) MacBook
#
# This config files are for non-Apple receivers only.
# Use the lircd.conf.macmini file when you are using the Apple receiver.
#

begin remote
  name  Apple_A1156
  bits            8
  flags SPACE_ENC
  eps            30
  aeps          100

  header       9065  4484
  one           574  1668
  zero          574   547
  ptrail        567
  repeat       9031  2242
  pre_data_bits   16
  pre_data       0x77E1
  post_data_bits  8
  post_data      0xC5
  gap          37600
  toggle_bit      0
  ignore_mask 0x80ff

      begin codes
          KEY_PLAY                 0x20                      #  Was: play
          KEY_KPPLUS               0xD0
          KEY_FASTFORWARD          0xE0                      #  Was: ffwd
          KEY_REWIND               0x10
          KEY_KPMINUS              0xB0                      #  Was: minus
          KEY_MENU                 0x40                      #  Was: menu
      end codes

end remote
RasPlex:~ #
`

This one is based on the Lircmap.xml at github.com/RasPlex/RasPlex/wiki/GPIO-IR

RasPlex:~ # cat /storage/.plexht/userdata/Lircmap.xml
<lircmap>
        <remote device="devinput">
                <up>KEY_KPPLUS</up>
                <down>KEY_KPMINUS</down>
                <left>KEY_REWIND</left>
                <right>KEY_FASTFORWARD</right>
                <select>KEY_PLAY</select>
                <menu>KEY_MENU</menu>
        </remote>
 </lircmap>

RasPlex:~ #

and finally, so that everything gets started,

RasPlex:~ # cat /storage/.config/udev.rules.d/99-lircd.rules
SUBSYSTEM=="lirc", DRIVERS=="lirc_rpi", ENV{lircd_driver}="default", ENV{lircd_conf}="/storage/.config/lircd.conf"
RasPlex:~ #

So what is wrong? How can I see if the receiver is working? I have no idea how to continue.

Thanks for any suggestions,

Rainer

I use an FLIRC Dongle to use an Apple Remote… works fine…

I am sure it does, and I am thinking about FLIRC as well, but at the moment I am trying to get it to work with what I have and rather spend the money on a new pi 3 ( I am running rasplex from a first generation pi).