Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 368489

Summary: app-misc/lirc: update init script to disable kernel IR decoding
Product: Gentoo Linux Reporter: Craig Andrews <candrews>
Component: New packagesAssignee: Television related Applications in Gentoo's Portage <media-tv>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.