Summary: | lirc-0.8.6-r1: Breaks multiple instances | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Le Cuirot <chewi> |
Component: | Current packages | Assignee: | Television related Applications in Gentoo's Portage <media-tv> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fauli, maxime.deroucy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | lircd.patch |
Description
James Le Cuirot
2009-10-05 09:17:12 UTC
Is there any status on this? Does the original poster have a workaround? I'm trying to run multiple instances of lirc. I did this a year or so back with a previous version of lirc, and even with ugly hardcoding I've been unable to do so with the current version. This looks like the clean way to do it, rather akin to the way net.* init scripts work. Even with a few ugly hacks added, this would be cleaner what I was doing before. If you've got something working, would you please share it. Created attachment 223515 [details, diff]
lircd.patch
Sorry for the delay in responding. I just made these quick adjustments.
I think it should be better to move LIRCD_SYMLINKFILE and LIRCD_SOCKET from /etc/init.d/lircd to /etc/conf.d/lircd. It works great for me. I have : * one file /etc/init.d/lircd without LIRCD_SYMLINKFILE or LIRCD_SOCKET variable. * one symlink call /etc/init.d/lircd_0 pointing on /etc/init.d/lircd . * one /etc/conf.d/lircd with : LIRCD_SYMLINKFILE=/dev/lircd LIRCD_SOCKET=/var/run/lirc/lircd LIRCD_OPTS="-H devinput -d /dev/input/by-id/blabla1 --connect=localhost" * one /etc/conf.d/lircd_0 with : LIRCD_SYMLINKFILE=/dev/lircd0 LIRCD_SOCKET=/var/run/lirc/lircd0 LIRCD_OPTS="-H devinput -d /dev/input/by-id/blabla2 --output=$LIRCD_SOCKET --listen" Fixed in lirc-0.9.0-r2 -- It probably should've been done this way to begin with. |