Bugzilla – Bug 8594
Go to sleep callback
Last modified: 2008-06-30 10:07:27 UTC
I want to subscribe to a callback method for when the sleep timeout occurs, not the commands that the sleep timeout event issues. Something like: Slim::Control::Request::subscribe(\&commandCallbackSleep, [['sleeptime']]); However, there doesn't appear to be such a command to subscribe to. Could the helper function _sleepPowerOff issue an executeRequest for a new command (eg. 'sleeptime')? Perhaps move the stop and power commands into the 'sleeptime' command. Then plugins could subscribe to the callback method to perform other tasks, such as suspending the server.
It sounds like a worthy idea. We'll check back to see if it has more votes and comments. Feel free to drum up support on the forums or with the developers to get this targeted for a specific release!