I have installed Zorin-os-16 Pro on a late 2011 Macmini and I am trying to configure the LIRC for an Apple TV Remote (second gen). I want to use the machine mainly as Kodi media centre.
here is a text dump from "lsusb" command in terminal
xpuser@Macmini-Zorin:~$ lsusb
Bus 002 Device 006: ID 045e:07f8 Microsoft Corp. Wired Keyboard 600 (model 1576)
Bus 002 Device 005: ID 0557:8021 ATEN International Co., Ltd Hub
Bus 002 Device 004: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 003: ID 05ac:8242 Apple, Inc. Built-in IR Receiver
Bus 002 Device 002: ID 0424:2513 Microchip Technology, Inc. (formerly SMSC) 2.0 Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 05ac:8281 Apple, Inc. Bluetooth Host Controller
Bus 001 Device 003: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 002: ID 0424:2513 Microchip Technology, Inc. (formerly SMSC) 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I am just above beginner level with Linux and I don't quite understand how the configuration for LIRC works.
From your home folder, right click an open area within the folder and from the menu, select to create a new document.
Name it: 70-infrared.rules
Open the newly created document and paste this into it:
# Automatically load the proper keymaps after the Remote Controller device
# creation. The keycode tables rules should be at /etc/rc_maps.cfg
ACTION=="add", SUBSYSTEM=="input", SUBSYSTEMS=="rc", KERNEL=="event*", ENV{.rc_sysdev}="$id", RUN+="/usr/bin/ir-keytable -a /etc/rc_maps.cfg -s $env{.rc_sysdev}"
Now, let's move it:
sudo mv 70-infrared.rules /lib/udev/rules.d/
Do you have the following directory on your computer?
/lib/udev/rc_keymaps