You are not logged in.

#1 2013-04-29 21:51:23

cctsurf
Member
Registered: 2013-04-29
Posts: 1

LIRC and SYSTEMD fail

I'm new to arch linux, I've been running gentoo and ubuntu among others for years, but this systemd thing has me shaking my head.
I've been reading all sorts of things in the forums about lirc and systemd, and I still can't get anywhere...  I borrowed my setup from one of the forums where it worked for the poster, no help.
I'm not certain if I'm getting bit by the problem on systemd 201/202?  https://bbs.archlinux.org/viewtopic.php?id=161579 but I've been having problems for a couple of weeks now.

I'm running an old xbox remote receiver and initially thought I would have to compile from scratch to get it to work (as I did under ubuntu).  Upon working on it a while, I realized I didn't, arch uses the lirc_atiusb driver, and running lircd from the command prompt and then checking the remote from irw worked great.  WIN for arch!

Here's the problem, I can't get lircd to run from systemd no matter what I try...  I've even put the same commandline into my lirc.service file as I use in the terminal, and it fails!

cat /etc/systemd/system/multi-user.target.wants/lirc.service
[Unit]
Description=LIRC Daemon
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/lircd.conf
PIDFile=/run/lirc/lircd.pid
ExecStartPre=/bin/mkdir -p /run/lirc
ExecStartPre=/bin/rm -f /dev/lircd
ExecStartPre=/bin/rm -f /run/lirc/lircd
ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd
ExecStartPre=/bin/ln -sf /dev/lirc0 /dev/lirc

ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE
ExecStopPost=/bin/rm -f /dev/lircd
ExecStopPost=/bin/rm -fR /run/lirc
#ExecStartPost=/usr/bin/ir-keytable --protocol=LIRC

[Install]
WantedBy=multi-user.target

Here's what I get in the lircd log no matter what I put into the lirc.service file:
Apr 29 16:41:38 Dilbert lircd: lircd(default) ready, using /var/run/lirc/lircd
Apr 29 16:41:52 Dilbert lircd: accepted new client on /var/run/lirc/lircd
Apr 29 16:41:52 Dilbert lircd: could not get file information for /dev/lirc
Apr 29 16:41:52 Dilbert lircd: default_init(): No such file or directory
Apr 29 16:41:52 Dilbert lircd: WARNING: Failed to initialize hardware
Apr 29 16:42:02 Dilbert lircd: removed client

Again, If I run lircd from the terminal, it works fine, it acts as if it's still trying to get to /dev/lirc, and I've attempted to make a link inside of my lirc.service file, but it doesn't really seem like anything is being used from that file, I don't get rid of the /dev/lircd or /run/lirc when I issue the systemctl stop lirc.service command...

for good measure, I'll post my /etc/conf.d/lircd.conf
cat /etc/conf.d/lircd.conf
#
# Parameters for lirc daemon
#

LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER="default"
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE="/etc/lirc/lircd.conf"

Any help would be greatly appreciated.
Thanks,
James

Offline

Board footer

Powered by FluxBB