Option to stop lircd upon sleep

Ask for new features here.

Moderator: Pablo

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

Option to stop lircd upon sleep

Post by ac9bj » Thu Jan 24, 2013 2:51 am

When using USB-based LIRC receivers, the Sleep/Wake cycle results in the existing lircd spinning and consuming an entire CPU, while eventlircd starts up a fresh lircd on the new USB device created by udev when the host wakes up. Multiple Sleep/Wake cycles result in an additional lircd spinning for each Sleep/Wake cycle.

Adding an option such that mm_sleep may gracefully kill any running lircd processes would prevent this from occurring. By gracefully, I mean NOT kill -9; just a plain kill.

This can be accomplished by gathering all the PIDs found in all files in /var/run/lirc/lircd-*.pid and then killing them gracefully.

Post Reply