Bug 8594 - Go to sleep callback
: Go to sleep callback
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Sleep
: 7.2
: PC Windows XP
: -- enhancement with 1 vote (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-28 01:13 UTC by Philip Meyer
Modified: 2008-06-30 10:07 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2008-06-28 01:13:51 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.
Comment 1 Chris Owens 2008-06-30 10:07:27 UTC
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!