FS#23673 - [lirc-utils] lircd init script should set remote protocol to "lirc"
Attached to Project:
Arch Linux
Opened by Aaron Barany (akb825) - Sunday, 10 April 2011, 04:13 GMT
Last edited by Ray Rashif (schivmeister) - Tuesday, 26 March 2013, 22:32 GMT
Opened by Aaron Barany (akb825) - Sunday, 10 April 2011, 04:13 GMT
Last edited by Ray Rashif (schivmeister) - Tuesday, 26 March 2013, 22:32 GMT
|
Details
Description:
With a recent update to lirc, the legacy kernel modules (such as lirc_mceusb) have been removed, so the modules that come with the kernel are loaded instead. Unlike the legacy modules, the standard kernel modules treat remotes as keyboards by default, so utilities such as lircd don't recognize remote input. In order to get lirc to recognize the remote input, the remote protocol must be changed by executing the following command: echo lirc > /sys/class/rc/rc0/protocols I emailed the developer of lirc to try to get this in lircd itself, but he told me that it should be done by the package maintainers of each distribution. That being the case, the above command should be executed when /etc/rc.conf/lircd is started. Additional info: lirc 1:0.9.0-1 lirc-utils 1:0.9.0-1 Steps to reproduce: 1. Attempt to press any remote button. Notice how no lirc application (including irw) accept remote input. However, directional buttons on the remote is treated like arrow keys. 2. As root, execute the command: echo lirc > /sys/class/rc/rc0/protocols 3. Press a remote button, and notice how the buttons are now recognized. |
This task depends upon
Closed by Ray Rashif (schivmeister)
Tuesday, 26 March 2013, 22:32 GMT
Reason for closing: Won't fix
Additional comments about closing: Please open a new bug report if this affects you on a systemd-based system.
Tuesday, 26 March 2013, 22:32 GMT
Reason for closing: Won't fix
Additional comments about closing: Please open a new bug report if this affects you on a systemd-based system.
I guess the best way would be to add a variable LIRC_PROTOCOL or LIRC_PROTOCOLS to /etc/conf.d/lircd in which the user can set the protocol he needs. If this variable is set then only this or these protocols should be activated by the initscript otherwise all for this device available protocols should be activated at once.
Activating one single protocol can be done by
echo "protocol" > /sys/class/rc/rc0/protocols
Activating all protocols at once can be done by
echo "+protocol1 +protocol2 +protocol3 ..." > /sys/class/rc/rc0/protocols
Given that this bug refers to the initscript daemon and is 2 years old, I would tend to think that we should close this bug as "won't fix" (or remove the initscript stuff, at least in svn trunk). If there is an issue with the service files, someone will open a new bug report with current information.