[systemd-devel] lirc package

Anthony Messina amessina at messinet.com
Mon Oct 14 08:56:58 PDT 2013


On Monday, October 14, 2013 02:32:23 PM Colin Guthrie wrote:
> 2. Setting the protocols properly e.g. currently you have
> ExecStartPre=/bin/sh -c 'echo lirc > /sys/class/rc/rc0/protocols' in the
> https://github.com/leamas/lirc-pkg/blob/master/lircd.service, but this
> basically assumes $LIRC_DEVICE=/dev/lirc0 I believe (rc0 in the fixed
> string). It should also reset it after finishing too such that some
> other use of it can be made.

Perhaps with handily crafted udev rules.  Currently, I am using this hammer
in /usr/lib/udev/rules.d/99-remote-control-lirc.rules.  But that's only 
because I don't want other protocols to interfere with MythTV ;)

# Disable all but the "lirc" protocol for infrared devices
SUBSYSTEM=="rc", ATTR{protocols}="lirc"

-A

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20131014/e7f85b3c/attachment.pgp>


More information about the systemd-devel mailing list