2012-02-20, 00:10
As per the title, is it possible to have XBMC wake from sleep/suspend and go straight to the profile selection screen? That was the kids can't wake XBMC and be in the adult profile by default.
Cheers!
Cheers!
#!/bin/sh
[[ "$1" = "suspend" ]] && xbmc-send --action="System.LogOff"
Richy Freeway Wrote:Tried this, didn't work.Just tested it on my machine, works fine.
When enabled, pressing the power button to suspend makes the screen flash black once, then nothing. Doesn't even suspend any more. Removing the file puts things back to normal.
Any suggestions? I suppose I should drag up a logfile.
root@xbmc:/etc/pm/sleep.d# /etc/pm/sleep.d/49xbmc suspend
/etc/pm/sleep.d/49xbmc: 2: [[: not found
root@xbmc:/etc/pm/sleep.d#
root@xbmc:/etc/pm/sleep.d# ls -l /etc/pm/sleep.d/49xbmc
-rwxr-xr-x 1 root root 71 2012-02-23 20:04 /etc/pm/sleep.d/49xbmc
root@xbmc:/etc/pm/sleep.d#
#!/bin/sh
[ "$1" = "suspend" ] && xbmc-send --action="System.LogOff"