[mythtv-users] lirc device load order changed - tidiest way to recover?

Stephen Worthington stephen_agent at jsw.gen.nz
Mon May 21 03:00:15 UTC 2018


On Sun, 20 May 2018 16:14:37 -0400, you wrote:

>On Sun, May 20, 2018 at 3:39 PM, Andrew Codrington <
>andrew.codrington at fidenti.ca> wrote:
>
>>
>> On Sun, May 20, 2018 at 2:43 AM, Stephen Worthington <
>> stephen_agent at jsw.gen.nz> wrote:
>>
>>> On Sat, 19 May 2018 13:03:06 -0400, you wrote:
>>>
>>> <snipped>
>>>
>>
>>> So I could use
>>>
>>> REMOTE_DEVICE="/dev/input/by-id/usb-SMK_eHome_Infrared_Trans
>>> ceiver_SM005h4M-event-if00"
>>>
>>> and avoid having a udev rule.  The by-id option is only available in
>>> recent kernels, but has been available for at least a couple of years.
>>>
>>
>> Thank you very much for a detailed response!
>>
>> My machine has by-id so I started with that.
>>
>> First pass doesn't look successful though. lirc didn't look happy about
>> restarting.
>> I'll keep googling....
>>
>
>Since your response made it clear the only place I needed to edit was in
>the hardware.conf file I changed the REMOTE_DEVICE to point at /dev/lirc1
>and will just hope the load order stays stable...
>
>I'm back in business. Thank you!
>
>Cheers,
>Andrew

I would not rely on the order of the IR receivers remaining stable,
unless you can figure out why it changed in the first place.  Did you
plug in some new USB device?  Or move where you plug in the IR
receiver to a different USB port?  If not, then you may find you have
a race condition and the order of the devices can change at any boot,
depending on how long they take to start up.

I am also surprised that the by-id link did not work.  But I am still
using a udev rule as I was doing that well before the by-id option
became available.  So you should try a udev rule.


More information about the mythtv-users mailing list