Client version 1.29.1
I haven’t been able to find any information on how to get LIRC working with the latest HTPC. So I spent some time googling a solution I thought I would share.
I have tested this with the SNAP version of HTPC on ubuntu 16.04 and it works.
In the plex log (~/snap/plext-htpc/common/Logs/Plex HTPC.log) you will find an entry like LIRC socket error = 2
and then if you look in /var/log/syslog you will see that apparmor has denied snap.plex-htpc.plex-htpc access to /run/lirc/lircd wr
So I did the following:
sudo nano /var/lib/snapd/apparmor/profiles/snap.plex-htpc.plex-htpc .
#add the following line near the top, you need to include the comma
/run/lirc/lircd wr,
save the changes then rebooted. Lirc now works fine in the HTPC.
The only issue I have with it now, is it is a bit too fast on key repeats. Does anyone know of a way to set certain keys to single press and not repeat and how to add a delay to the key repeats in the LIRC.json file?
One issue that still exists is that the snap.plex-htpc.plex-htpc file is over written when there is an update. Losing the fix.