2009-04-29, 11:30
I would like to kill xbmc when I suspend and start it when I resume from suspend.
What is the best way of doing that?
I have tried to add a file like: /etc/pm/sleep.d/06xbmc
But that didn´t work, it seems to fail when resuming, something about no display if I remember correctly.
Thanks in advance!
What is the best way of doing that?
I have tried to add a file like: /etc/pm/sleep.d/06xbmc
Code:
#!/bin/bash
. /usr/lib/pm-utils/functions
case "$1" in
hibernate|suspend)
killall -9 xbmc.bin
;;
thaw|resume)
xbmc
;;
*)
;;
esac
exit $?
But that didn´t work, it seems to fail when resuming, something about no display if I remember correctly.
Thanks in advance!