Trouble installing an Apple Remote Silver on Raspberry Pi 3B+

Hi all,

I am trying to use an Apple Silver Remote (A1294 silver model) with the latest version of OSMC, on a Raspberry 3B+. I was very happy to find this tutorial - so I went and bought a TSOP4838 IR receiver, plugged it into my Pi following the steps in the tutorial, changed the config.txt file and activated the remote control config… But nothing is happening :frowning:

Typing dmesg | grep lirc I read:

[    7.023193] rc_core: IR keymap rc-lirc not found
[    7.023512] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter
[    8.386659] input: lircd as /devices/virtual/input/input5

When I try sudo lsmod | grep lirc_rpi nothing happens.
sudo ls -l /dev/lirc* gives me crw-rw---- 1 root video 243, 0 Nov 28 21:04 /dev/lirc0.

Finally, sudo systemctl status lircd_helper@lirc0 brings up:

● lircd_helper@lirc0.service - lircd remote support
Loaded: loaded (/lib/systemd/system/lircd_helper@.service; static; vendor preset: enabled)
Active: active (running) since Sat 2020-11-28 22:57:44 CET; 17min ago
Process: 363 ExecStart=/bin/sh -c /var/run/lirc/lircd-lirc0.sh (code=exited, status=0/SUCCESS)
Main PID: 414 (lircd)
Memory: 2.1M
CGroup: /system.slice/system-lircd_helper.slice/lircd_helper@lirc0.service
└─415 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput > --output=/var/run/lirc/lircd-lirc0 --pidfile=/var/run/lirc/lircd-lirc0.pid /etc/lirc/lircd.conf

Nov 28 22:57:44 osmc lircd-0.9.4c[365]: Info: Initial device: /dev/lirc0
Nov 28 22:57:44 osmc lircd-0.9.4c[365]: Info: [lirc] protocol is enabled
Nov 28 22:57:44 osmc lircd-0.9.4c[365]: Info: lircd: Opening log, level: Info
Nov 28 22:57:44 osmc lircd-0.9.4c[365]: Warning: Running as root
Nov 28 22:57:44 osmc lircd-0.9.4c[365]: Info: Using remote: Apple_A1294.
Nov 28 22:57:44 osmc lircd-0.9.4c[415]: Notice: lircd(default) ready, using /var/run/lirc/lircd-lirc0
Nov 28 22:57:44 osmc systemd[1]: Started lircd remote support.
Nov 28 22:57:44 osmc lircd-0.9.4c[415]: Info: [lirc] protocol is enabled
Nov 28 23:03:05 osmc lircd-0.9.4c[415]: Notice: accepted new client on /var/run/lirc/lircd-lirc0
Nov 28 23:03:25 osmc lircd-0.9.4c[415]: Info: removed client

And when I run irw, all I get is: Cannot connect to socket /usr/var/run/lirc/lircd: No such file or directory

Still actively trying to debug, but it’s the first time I’m trying to mess with hardware on my Pi, so it’s hard to figure out where the problem may lie. Any suggestion would be very welcome :slight_smile:

(there aren’t any other peripherals attached, btw)

Please see the full debugging log here.

The socket is located at /var/run/lirc/lircd, so you’d need to run irw /var/run/lirc/lircd