mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #04874
Re: [Bug 783202] Re: lircmd is not started properly by lirc init script when devinput is used
In principle yes, but it did not work exactly as written.
But it works if you replace
LIRCMD_ARG="--uinput"
with
LIRCMD_ARG="-- --uinput"
I applied your mod both in start and restart section, and it worked (with my fix).
Please include this in the next distro.
16 maj 2011 kl. 07.31 skrev Hock:
> The following check might help.
>
> if [ "$START_LIRCMD" = "true" ]; then
> [ -d "/var/run/lirc" ] || mkdir -p "/var/run/lirc"
> LIRCMD_ARG=""
> REMOTE_DEVICE_TYPE=`echo $REMOTE_DEVICE | cut -c 1-10`
> # Start lircmd to generate Linux Input event if remote device is using devinput
> if [ "$REMOTE_DEVICE_TYPE" = "/dev/input" ]; then
> LIRCMD_ARG="--uinput"
> fi
> log_daemon_msg $LIRCMD_ARG
> log_daemon_msg "Starting remote control mouse daemon : LIRCMD "
> start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircmd $LIRCMD_ARG < /dev/null
> log_end_msg $?
> fi
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/783202
>
> Title:
> lircmd is not started properly by lirc init script when devinput is
> used
>
> Status in “lirc” package in Ubuntu:
> New
>
> Bug description:
> Binary package hint: lirc
>
> lircmd (lirc mouse daemon) must be started with the -u option when
> devinput is used.
>
> This is not done correctly by the /etc/init.d/lirc startup script if
> the lircmd is started by specifiying
>
> START_LIRCMD="true"
>
> in /etc/lirc/hardware.conf.
>
> If /etc/init.d/lirc:
>
> if [ "$START_LIRCMD" = "true" ]; then
> [ -d "/var/run/lirc" ] || mkdir -p "/var/run/lirc"
> log_daemon_msg "Starting remote control mouse daemon : LIRCMD "
> start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircmd < /dev/null
> log_end_msg $?
> fi
>
> is changed to
>
> if [ "$START_LIRCMD" = "true" ]; then
> [ -d "/var/run/lirc" ] || mkdir -p "/var/run/lirc"
> log_daemon_msg "Starting remote control mouse daemon : LIRCMD "
> start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircmd -- -u < /dev/null
> log_end_msg $?
> fi
>
> it works in devinput mode . (there is also a restart section further
> down that needs editing)
>
> However, this is not the right way to do it in the general case, since it will not work if devinput is NOT used.
> Some trick to select when to use/not to use the "-u" switch must be applied.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.04
> Package: lirc 0.8.7-0ubuntu4.1
> ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
> Uname: Linux 2.6.38-8-generic x86_64
> NonfreeKernelModules: nvidia
> Architecture: amd64
> CheckboxSubmission: 6685460b8fac740db235bfc82bb22a5d
> CheckboxSystem: fc73f07fcd9845bb95fa3ca6b8be7ef2
> Date: Sun May 15 23:18:42 2011
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
> ProcEnviron:
> LANGUAGE=en
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: lirc
> UpgradeStatus: Upgraded to natty on 2011-05-03 (12 days ago)
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/783202/+subscribe
--
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to lirc in Ubuntu.
https://bugs.launchpad.net/bugs/783202
Title:
lircmd is not started properly by lirc init script when devinput is
used
Status in “lirc” package in Ubuntu:
New
Bug description:
Binary package hint: lirc
lircmd (lirc mouse daemon) must be started with the -u option when
devinput is used.
This is not done correctly by the /etc/init.d/lirc startup script if
the lircmd is started by specifiying
START_LIRCMD="true"
in /etc/lirc/hardware.conf.
If /etc/init.d/lirc:
if [ "$START_LIRCMD" = "true" ]; then
[ -d "/var/run/lirc" ] || mkdir -p "/var/run/lirc"
log_daemon_msg "Starting remote control mouse daemon : LIRCMD "
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircmd < /dev/null
log_end_msg $?
fi
is changed to
if [ "$START_LIRCMD" = "true" ]; then
[ -d "/var/run/lirc" ] || mkdir -p "/var/run/lirc"
log_daemon_msg "Starting remote control mouse daemon : LIRCMD "
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircmd -- -u < /dev/null
log_end_msg $?
fi
it works in devinput mode . (there is also a restart section further
down that needs editing)
However, this is not the right way to do it in the general case, since it will not work if devinput is NOT used.
Some trick to select when to use/not to use the "-u" switch must be applied.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: lirc 0.8.7-0ubuntu4.1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CheckboxSubmission: 6685460b8fac740db235bfc82bb22a5d
CheckboxSystem: fc73f07fcd9845bb95fa3ca6b8be7ef2
Date: Sun May 15 23:18:42 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
LANGUAGE=en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lirc
UpgradeStatus: Upgraded to natty on 2011-05-03 (12 days ago)
References