Comment 21 for bug 1788235

Revision history for this message
xekon (xekon) wrote :

-------------------------------------------------------
sudo apt purge ir-keytable lirc
sudo apt-get install -y lirc lirc-compat-remotes
sudo dpkg-reconfigure lirc
sudo irw
sudo systemctl stop lircd-uinput.service
sudo systemctl disable lircd-uinput.service

sudo cp /usr/share/kodi/system/Lircmap.xml /home/batman/.kodi/userdata/Lircmap.xml
-------------------------------------------------------

The dpkg-reconfigure lirc line, no screen opens, but i ran this anyway incase it creates files.

afterwards onmy ubuntu 18.04 system I was able to type at the command line:

sudo irw and point my IR remote at it and press buttons and the output worked:
000000008001006c 00 KEY_DOWN devinput-32
0000000080010067 00 KEY_UP devinput-32
000000008001006c 00 KEY_DOWN devinput-32
0000000080010160 00 KEY_OK devinput-32
00000000800100ae 00 KEY_EXIT devinput-32

next I launched kodi, and all remote functions were working as well!

the last line with sudo cp Lircmap.xml is to copy the default map, obviously you should veryify the paths here exist on your system. Also this line is only necessary if your using Lirc for Kodi purposes.