the gentoo vdr scripts starts the lirc init script if the confd file sets IR_CTRL to lirc so the lircd reassigns the /dev/lircd socket to the lirc server and so overrides the already provided lircd socket from the irtrans server. Reproducible: Always
Created attachment 129213 [details, diff] add irtrans support this patch adds a new IR_CTRL named irtrans this way "when set right" the irtrans server is started to provide the lircd socket and no reasigning is done.
Maybe it also works to add some kind of "provide lircd" to irtrans init-script
(In reply to comment #2) > Maybe it also works to add some kind of "provide lircd" to irtrans init-script > this would be a hack as the following output shows: media vdr # /etc/init.d/vdr restart * Caching service dependencies ... * Cannot add provide 'lircd', as a service with the same name exists! [ ok ] * Stopping vdr watchdog ... [ ok ] * Stopping vdr ... [ ok ] * Starting lircd ... [ ok ] * Preparing start of vdr: * config files ... [ ok ] * You have not set a charmap! (LANG in /etc/env.d/02locale or /etc/conf.d/vdr) * Automatically using locale en_US.utf8 to get most of vdr utf8 support. * Skipped these plugins: * Not Existing: reelchannelscan wirbelscan setup * Waiting for prerequisits (devices nodes etc.) ... [ ok ] * Starting vdr ... [ ok ] * Waiting for working vdr ... [ ok ] * Starting vdr watchdog ... [ ok ] media vdr # wfg Mario
(In reply to comment #2) > Maybe it also works to add some kind of "provide lircd" to irtrans init-script > and as you can see it will also start the lircd (bad)
For now we can use your version (or similar stuff). I also had the idea: one could depend on lirc (not lircd as it is now). And add provide lirc to both: lirc-init-script and irtrans one.
(In reply to comment #5) > For now we can use your version (or similar stuff). > I also had the idea: one could depend on lirc (not lircd as it is now). And add > provide lirc to both: lirc-init-script and irtrans one. > yes the second one would be the right way to do this. but adding an virtual/lirc wouldn't that be a little extreme for that ? wfg Mario
(In reply to comment #6) > (In reply to comment #5) > > For now we can use your version (or similar stuff). > > I also had the idea: one could depend on lirc (not lircd as it is now). And add > > provide lirc to both: lirc-init-script and irtrans one. > > > yes the second one would be the right way to do this. > but adding an virtual/lirc wouldn't that be a little extreme for that ? > > wfg > Mario > oh i scewed up the irtrans wont provide lirc headers so something like virtual/lirc is not needed ha. so only the provides are requred.
i have tested adding "provide lirc" to both init scipts it works great media ~ # /etc/init.d/irtrans-server stop * Stopping IRTrans ... [ ok ] media ~ # /etc/init.d/lircd stop * WARNING: lircd has not yet been started. media ~ # /etc/init.d/vdr restart * Stopping vdr watchdog ... [ ok ] * Stopping vdr ... [ ok ] * Starting IRTrans ... IRTRans Send Done: 1 Name : Version: D5.04.13 FW SNo : 14110 Capab : Power On; FW Cap : 3964953 USB SNo: Node : /dev/ttyUSB0 [ ok ] * Preparing start of vdr: * config files ... [ ok ] * You have not set a charmap! (LANG in /etc/env.d/02locale or /etc/conf.d/vdr) * Automatically using locale en_US.utf8 to get most of vdr utf8 support. * Skipped these plugins: * Not Existing: reelchannelscan wirbelscan setup * Waiting for prerequisits (devices nodes etc.) ... [ ok ] * Starting vdr ... [ ok ] * Waiting for working vdr ... [ ok ] * Starting vdr watchdog ... [ ok ] media ~ # so adding "provide lirc" to init.d/lircd init.d/irtrans-irserver and changing lircd to lirc in the init.d/vdr will do it great
(In reply to comment #5) > For now we can use your version (or similar stuff). > I also had the idea: one could depend on lirc (not lircd as it is now). And add > provide lirc to both: lirc-init-script and irtrans one. > Matthias can you plz comment on # 190669 so this bug can be solved.
Created attachment 136914 [details] depend on lirc instead of lircd
any news about this modification thx Mario
This should be fixed on gentoo-vdr-scripts-0.4.7 17 Nov 2009; Matthias Schwarzott <zzam@gentoo.org> usr/share/vdr/rcscript/pre-start-30-parameter.sh, etc/init.d/vdr: Use new lirc socket path if it exists. Now depend on virtual service lirc to be able to use different lirc daemons. Don't know, why isn't this bug closed... Mario is the bug still present, please reopen