Fix for /dev/lirc0 -> /dev/lirc1 after suspend & wake
#1
I had to resort to complete shutdown and power-up instead of suspend and wake due to lirc incrementing the device number upon wake after suspend. I found a fix today that works for me. If your remote isn't working after wake, you may have the same problem.

Create a script /etc/pm/sleep.d/90_lirc :
Code:
#!/bin/sh

# Script to disable lirc before suspend and restart after wake.

case "${1}" in
        suspend|hibernate)
                /etc/init.d/lirc stop
                ;;
        resume|thaw)
                /etc/init.d/lirc start
                ;;
esac

Make sure the script is executable:

Code:
chmod 755 /etc/pm/sleep.d/90_lirc
Reply

Logout Mark Read Team Forum Stats Members Help
Fix for /dev/lirc0 -> /dev/lirc1 after suspend & wake0