[mythtv-users] irexec won't autostart

Alec Leamas leamas.alec at gmail.com
Mon Aug 29 18:24:47 UTC 2016



On 29/08/16 19:56, Dan Wilga wrote:
> On 8/28/16 1:27 AM, Robin Gilks wrote:
>>
>> If I could find out where in the lirc startup that irexec should be 
>> fired
>> up (I thought it used to be due to finding a config file for irexec) 
>> then
>> I could probably follow it though but I can't even find the lirc.service
>> file!! I have a valid /etc/lirc/lircrc file
> I don't use *buntu, but I have yet to encounter a distro that starts 
> irexec automatically.

Indeed.
> You usually have to add it to (a local copy in /etc/systemd/system of) 
> the lircd.service file (preferred) or to /etc/init.d/rc.local (less 
> effective). If you can't find a service file (try `systemctl cat 
> lircd.service`), then your system might be using /etc/init.d/lircd or 
> the like as a fallback.

No. The lircd.service file has nothing to do with irexec.

There is actually at least twos way to run irexec, with different 
trade-offs. The first is to run as root, typically as a systemd service. 
Modern lirc contains such a service file irexec.service out of the box. 
The problem running is this way is that the session (including display 
and sound) typically isn't available for irexec.

The other way is to run irexec as part of the session. This means 
running as a regular user, creating problems if you need to button for 
e. g. sleep/reboot or similar function (this can be handled using sudo). 
OTOH, running this way gives full access to the session. Again, modern 
lirc contains templates which can be dropped in ~/.config/autostart to 
create a session service.

The 0.9.0 lirc version in debian/ubuntu lacks all this support. You are 
on your own here...


Cheers!

--alec


More information about the mythtv-users mailing list