You are not logged in.

#1 2012-10-27 02:11:26

almostalive
Member
Registered: 2012-10-27
Posts: 3

[SOLVED] lirc / systemd question

So I just recently did a fresh install of Arch and am now running systemd. So far everything has gone well except for lirc. The service is enabled, the moudles loaded, the conf is setup. but my remote is not working

with irw it shows
irw
^[[A^[[B^[[C^[[D

Thats pressing up/down/right/left. Those are the only buttons that show something or do something in xbmc.

I think the problem is whats detailed here on the lirc wiki page 9.2 After upgrading or installing Arch, an existing configuration stopped working

I needed that in the past, but now I'm not sure how to do that since rc.local is no longer used.

so any help would be greatly welcomed.
Thanks in advance.

Last edited by almostalive (2012-10-27 13:25:40)

Offline

#2 2012-10-27 09:54:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Offline

#3 2012-10-27 13:10:48

almostalive
Member
Registered: 2012-10-27
Posts: 3

Re: [SOLVED] lirc / systemd question

Thanks graysky.

Your service file alone did not work for me, but reading that thread did help. I looked into ir-keytable --help and saw that i could enable the LIRC protocol with --protocol=LIRC. Doing that worked so i added an extra line to your service file

ExecStartPost=/usr/bin/ir-keytable --protocol=LIRC

I then rebooted, ran irw and it was working like it should.

This is what my lirc.service file now looks like

[Unit]
Description=LIRC Daemon
After=network.target

[Service]
Type=forking
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

ExecStart=/usr/sbin/lircd -d /dev/lirc0 -P /run/lirc/lircd.pid
ExecStopPost=/bin/rm -f /dev/lircd
ExecStopPost=/bin/rm -fR /run/lirc
ExecStartPost=/usr/bin/ir-keytable --protocol=LIRC

[Install]
WantedBy=multi-user.target

I'm not sure if this is proper or not but it works for me.

Last edited by almostalive (2012-10-27 13:26:47)

Offline

Board footer

Powered by FluxBB