2010-01-19, 07:11
Instead of a convoluted script that uses curl to shut down and start lirc through XBMC, use Ubuntu's power management system.
Create a file named, /etc/pm/sleep.d/90_lirc :
Then make it executable:
Create a file named, /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
Then make it executable:
Code:
chmod 755 /etc/pm/sleep.d/90_lirc