Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368489 - app-misc/lirc: update init script to disable kernel IR decoding
Summary: app-misc/lirc: update init script to disable kernel IR decoding
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 19:29 UTC by Craig Andrews
Modified: 2012-07-17 19:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2011-05-23 19:29:39 UTC
The current /etc/init.d/lirc does not disable in kernel IR decoding when using the in kernel remote control modules. This means that all button presses are handled twice - once as an input event by the kernel, and once by LIRC. Since LIRC 0.9.0 drops a bunch of it's own modules, and plans to phase out all of them in favor of in kernel ones, this problem will become more prevalent over time.

In kernel handling can be disabled by doing this:
echo 'lirc' > /sys/class/rc/rc0/protocols
at the top of the init script's 'start' function.

Fedora's init script seems to be do everything nicely - http://pkgs.fedoraproject.org/gitweb/?p=lirc.git;a=blob;f=lirc.init;hb=HEAD
Perhaps Gentoo could adopt it (with appropriate modifications)?

Reproducible: Always
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-17 19:21:00 UTC
+*lirc-0.9.0-r1 (17 Jul 2012)
+
+  17 Jul 2012; Ian Stakenvicius <axs@gentoo.org> +files/lircd-0.8.6-r1,
+  +lirc-0.9.0-r1.ebuild, +files/lircd.conf.3:
+  converted ebuild to EAPI4, made drivers build separately from tools to fix
+  bug 160134, fixed init script so that socket path exists (bug 414307), added
+  option so that init script can set 'lirc' as the kernel IR decoding protocol
+  on startup (bug 368489)
+


Please test.  I've added a variable in /etc/conf.d/lircd to allow for specification of the particular devices in /sys/class/rc/ that will be set to use the lirc protocol , and defaulted it to 'rc0' as this will be the most likely default for all users.