[mythtv-users] irexec fails to start on boot

Robert Dege livemotion at gmail.com
Thu Jan 14 00:18:25 UTC 2016


Alec,

The socket location was the problem.  In /etc/lirc/hardware.conf, I set
REMOTE_SOCKET="/dev/lircd".  Even though /dev/lircd was a soft link to
/var/run/lirc/lircd, irexec was failing since it wasn't following the sym
link.  I updated the REMOTE_SOCKET variable to point to
/var/run/lirc/lircd, and now it works fine.

Thanks!

-Robert

On Wed, Jan 13, 2016 at 2:29 PM, Alec Leamas <leamas.alec at gmail.com> wrote:

> On 13/01/16 03:36, Robert Dege wrote:
>
>> I'm running mythbuntu 14.04.3 LTS (64bit).  LIRC is running with no
>> issues, but I'm unable to get irexec to run:
>>
>> # lircd -v && irexec -v
>> lircd 0.9.0
>> irexec 0.9.0
>>
>>
>> # sudo irexec /etc/lirc/lircrc
>> irexec: could not connect to socket
>> irexec: No such file or directory
>>
>>
>> The lircrc config file points to $USER/.lirc/mythtv
>> # ls -l /etc/lirc/lircrc
>> lrwxrwxrwx 1 root root 24 Jan 12 20:19 /etc/lirc/lircrc ->
>> /home/rob/.lirc/mythtv
>>
>>
>> The only oddity that I notice is that there's two session of lirc
>> running, with two pid files:
>> # ps -aef | grep lirc
>> root      3356     1  0 21:29 ?        00:00:02 /usr/sbin/lircd
>> --output=/dev/lircd --driver=devinput
>> --device=phys=usb-0000:00:04.0-1/input1 --listen
>> --pidfile=/run/lirc/lircd1.pid
>> root      3358     1  0 21:29 ?        00:00:00 /usr/sbin/lircd
>> --output=/dev/lircd --driver=devinput
>> --device=phys=usb-0000:00:04.0-3/input0 --connect=localhost 8765
>>
>
> Hi!
>
> The culproit is probably simple: irexec doesn't know that you are using
> /dev/lirc as the lircd output socket. You  need to tell it, but I'm unsure
> if it's possible in 0.9.0, in modern lirc it works, though.
>
> So, your setup could be improved. Using /dev/lirc is basically a bad idea,
> it's udev's task to create entrys in /dev. Better then to stick to the
> (modern) default /run/lirc/lircd. Using the default socket also means
> thatirexec will find it.
>
> Also, usiing the same output socket in two lircd processes is basically a
> no-go.  You get away with it since the connecting instance forwards events
> to the other instance over TCP instead of sending them to the socket.
> Still, I think it would be clearer if you gave each instance a unique
> output socket.
>
> Cheers!
>
> --alec
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160113/eac61e8d/attachment.html>


More information about the mythtv-users mailing list