lircmd is not started properly by lirc init script when devinput is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lirc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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_
in /etc/lirc/
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-
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-
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
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
CheckboxSubmission: 6685460b8fac740
CheckboxSystem: fc73f07fcd9845b
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)
Changed in lirc (Ubuntu): | |
status: | Fix Committed → Fix Released |
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