Oddness with USB-UIRT and lircd/eventlircd standby and wake

Help with using MiniMyth (except Booting)

Moderator: Pablo

Post Reply
ac9bj
New Member
Posts: 5
Joined: Wed Aug 15, 2012 4:37 pm

Oddness with USB-UIRT and lircd/eventlircd standby and wake

Post by ac9bj » Sun Jan 06, 2013 2:05 am

Hello all,

I have a USB-UIRT which is connected to an Eeebox EB1012p. With much trial and error, I eventually got it working with eventlircd:

MM_LIRC_DEVICE='/dev/persistent/ttyUSB-usb:0403:f850::00'
MM_LIRC_DRIVER='uirt2_raw'

Now the remote works across standby and wake, but each time the host goes to sleep and then wakes up, another /dev/ttyUSBx gets created and another lircd gets started.

What do I need to do to get the lircd processes to exit on sleep/standby? This seems to be related to getting the USB-UIRT to wake the host - everything I've read says that it won't do it if lircd is holding the device when it enters standby.

ac9bj
New Member
Posts: 5
Joined: Wed Aug 15, 2012 4:37 pm

Re: Oddness with USB-UIRT and lircd/eventlircd standby and w

Post by ac9bj » Thu Feb 28, 2013 6:26 am

Solved.

Added the following line to minimyth.conf:
MM_EXTERNAL_POWER_OFF='/usr/bin/killall lircd'

Now lircd gets stopped when entering sleep. udev and eventlircd take care of starting it back up after sleep.

Wasn't able to change the MM_LIRC_DEVICE from /dev/persistent/ttyUSB-usb:0403:f850::00 back to /dev/ttyUSB0. For some reason it wasn't starting up lircd, even on initial boot.

So the settings for the USB-UIRT are as follows:
MM_LIRC_DEVICE='/dev/persistent/ttyUSB-usb:0403:f850::00'
MM_LIRC_DRIVER='uirt2_raw'
MM_EXTERNAL_POWER_OFF='/usr/bin/killall lircd'

Post Reply