2012-09-05, 02:16
Hi,
Basically, I have a Raspberry Pi that I have powered on all the time.
I am wanting to write a python script that puts XBMC (& the Pi) into a "sleep" state.
This will spin down the harddrives and a few other things to "save power" and most importantly - make no noise.
Is there any python functions to wait for a CEC command? or a XBMC specific command.
Eg: wait for "suspend" command (which Pulse Eight calls) - then the script will catch this and run.
Currently - suspend does nothing on the RPI.
Easier yet would be changing the Pulse Eight to call the python script directly.
I would then want XBMC to "wake up" if the TV powers on or WOL (if I need to access the harddrives from my PC)
Any ideas?
Basically, I have a Raspberry Pi that I have powered on all the time.
I am wanting to write a python script that puts XBMC (& the Pi) into a "sleep" state.
This will spin down the harddrives and a few other things to "save power" and most importantly - make no noise.
Is there any python functions to wait for a CEC command? or a XBMC specific command.
Eg: wait for "suspend" command (which Pulse Eight calls) - then the script will catch this and run.
Currently - suspend does nothing on the RPI.
Easier yet would be changing the Pulse Eight to call the python script directly.
I would then want XBMC to "wake up" if the TV powers on or WOL (if I need to access the harddrives from my PC)
Any ideas?