2010-01-18, 07:29
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 :
Make sure the script is executable:
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