You are not logged in.

#1 2015-05-25 08:36:16

marko2010
Member
Registered: 2010-04-17
Posts: 70

Wrong protocol getting selected for lirc

If I run:
# cat /sys/class/rc/rc0/protocols
what I get is:
other unknown rc-5 nec [rc-6] jvc sony rc-5-sz sanyo sharp mce_kbd lirc xmp

This breaks Kodi (formerly XBMC), which needs "lirc" to be specified for the remote to function. I can manually fix this by running echo > /sys/class/rc/rc0/protocols as root, but I don't want to have to break out a terminal every time I need to use Kodi.

I tried unstalling/re-installing lirc after deleting the /etc/lirc folder, but that made no difference. Also I wrote a custom unit with the following content, but it failed to make a difference even though it was running after lircd service loaded:

[Unit]
Description=LIRC fix
After=lircd.service

[Service]
Type=oneshot

ExecStart=/usr/bin/echo lirc > /sys/class/rc/rc0/protocols

[Install]
WantedBy=multi-user.target

Offline

#2 2015-05-28 12:38:08

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: Wrong protocol getting selected for lirc

Try

ExecStart=/bin/sh -c 'echo lirc > /sys/class/rc/rc0/protocols'

Offline

Board footer

Powered by FluxBB