tamanaco;624809 Wrote: 
> After the latest update SvrPowerControl no longer suspends to
> mysqueezebox.com. After pressing+holding the sleep button the SB3
> displays in large letters "SUSPENDING TO WWW.SQUEEZEBOX.COM", but it
> just turns off the player. The clock displays for a few seconds (SB3 is
> set to display clock when off and still connected to SBS) the computer
> eventually suspends, the clock freezes and eventually the display goes
> black. No errors in the log. 
> 
> I had a similar issue a few weeks back with one of the updates and it
> was fixed with a subsequent update. Maybe this problem is related.
I just tried this on my server with a SB3 to double check that this
still worked.  It does for me, anyway.  One thing you should bare in
mind: if you attempt this sleep+hold->suspend to mysb.com too soon
after a server wake-up, the normal on-wakeup delayed "fetch back" code
could end up plucking the player back off of mysb.com just after it's
been pushed there by the suspend request.  This gives the illusion that
the player never got there...though examining the log shows that it did.
Anyway, I just tripped myself up with this while experimenting.

Anyway, a successful sleep+hold->suspend to mysb.com->wakeup round trip
looks like this in the debug log:


Code:
--------------------
    
  [11-04-11 23:07:27.7436] 
Plugins::SrvrPowerCtrl::SleepButton::ourSleepHoldButtonHandler (150) shit+hold 
pressed..
  [11-04-11 23:07:27.7441] 
Plugins::SrvrPowerCtrl::SleepButton::ourSleepHoldButtonHandler (166) msg == 
PLUGIN_SRVRPOWERCTRL_SUSPEND2AS_MSG
  [11-04-11 23:07:27.7447] Plugins::SrvrPowerCtrl::CLI::pluginCLI (532) 
pluginCLI request == 00:04:20:06:29:30->[suspend2as, Suspending to %s, 
sleep+hold, ]
  [11-04-11 23:07:27.7494] Plugins::SrvrPowerCtrl::Plugin::prepareAction (301) 
Timer # EV::Timer=SCALAR(0xbcdae18) created. Action suspend2as is pending in 3 
seconds..
  [11-04-11 23:07:27.7515] Plugins::SrvrPowerCtrl::Plugin::prepareAction (304) 
Pending Action: {
  [11-04-11 23:07:30.0018] Plugins::SrvrPowerCtrl::Util::PowerOffPlayer (556) 
Powering off Squeezebox Classic: SB3White
  [11-04-11 23:07:30.0090] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(178) client == Squeezebox Classic::squeezebox2::'SB3White'-->00:04:20:06:29:30
  [11-04-11 23:07:30.0095] Plugins::SrvrPowerCtrl::Alarms::GetNextAlarm (247) 
No alarms pending..
  [11-04-11 23:07:30.0105] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(233) Clients to push: {
  [11-04-11 23:07:30.0113] Plugins::SrvrPowerCtrl::AltServer::SaveSyncGroups 
(376) Saving syncgroups: []
  [11-04-11 23:07:30.0121] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(294) Powering off SB3White(Squeezebox Classic)-->00:04:20:06:29:30
  [11-04-11 23:07:30.0127] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(300) Unsyncing SB3White(Squeezebox Classic)-->00:04:20:06:29:30
  [11-04-11 23:07:30.0133] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(305) Pushing SB3White(Squeezebox Classic)-->00:04:20:06:29:30 to 
www.mysqueezebox.com..
  [11-04-11 23:07:30.0145] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(294) Powering off Transporter(Transporter)-->00:04:20:10:01:04
  [11-04-11 23:07:30.0151] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(300) Unsyncing Transporter(Transporter)-->00:04:20:10:01:04
  [11-04-11 23:07:30.0156] Plugins::SrvrPowerCtrl::AltServer::PushToAltServer 
(305) Pushing Transporter(Transporter)-->00:04:20:10:01:04 to 
www.mysqueezebox.com..
  [11-04-11 23:07:30.0169] Plugins::SrvrPowerCtrl::Alarms::SetRTCWakeup (365) 
SetRTCWakeForAlarm called..
  [11-04-11 23:07:30.0173] Plugins::SrvrPowerCtrl::Alarms::GetNextAlarm (247) 
No alarms pending..
  [11-04-11 23:07:30.0181] Plugins::SrvrPowerCtrl::Alarms::GetRTCWakeupTime 
(311) EOD start at 1302595200 == 04/12/2011 2:00 AM will be used as next alarm 
time..
  [11-04-11 23:07:30.0187] Plugins::SrvrPowerCtrl::Alarms::SetRTCWakeup (396) 
Setting system wakeup for 1302594900 -- 2011-04-12 01:55:00
  [11-04-11 23:07:30.0192] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (825) 1 
commands: sudo /usr/local/sbin/spc-wakeup.sh %d
  [11-04-11 23:07:30.0200] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (838) no 
modelName: no name executing command: sudo /usr/local/sbin/spc-wakeup.sh 
1302594900
  [11-04-11 23:07:31.0672] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (849) 
Command: "sudo /usr/local/sbin/spc-wakeup.sh 1302594900" returned 0
  [11-04-11 23:07:45.0016] 
Plugins::SrvrPowerCtrl::AltServer::RemotePlayerRequest (653) Sending request: 
http://www.mysqueezebox.com/jsonrpc.js?{"params":["00:04:20:06:29:30",["power","0"]],"method":"slim.request","id":1}
  [11-04-11 23:07:46.4796] Plugins::SrvrPowerCtrl::AltServer::_json_done (586) 
Remote player request succeeded..
  [11-04-11 23:07:47.0010] 
Plugins::SrvrPowerCtrl::AltServer::RemotePlayerRequest (653) Sending request: 
http://www.mysqueezebox.com/jsonrpc.js?{"params":["00:04:20:06:29:30",["sync","-"]],"method":"slim.request","id":1}
  [11-04-11 23:07:48.1047] Plugins::SrvrPowerCtrl::AltServer::_json_done (586) 
Remote player request succeeded..
  [11-04-11 23:07:51.0025] 
Plugins::SrvrPowerCtrl::AltServer::RemotePlayerRequest (653) Sending request: 
http://www.mysqueezebox.com/jsonrpc.js?{"params":["00:04:20:10:01:04",["power","0"]],"method":"slim.request","id":1}
  [11-04-11 23:07:51.9582] Plugins::SrvrPowerCtrl::AltServer::_json_done (586) 
Remote player request succeeded..
  [11-04-11 23:07:53.0010] 
Plugins::SrvrPowerCtrl::AltServer::RemotePlayerRequest (653) Sending request: 
http://www.mysqueezebox.com/jsonrpc.js?{"params":["00:04:20:10:01:04",["sync","-"]],"method":"slim.request","id":1}
  [11-04-11 23:07:54.4834] Plugins::SrvrPowerCtrl::AltServer::_json_done (586) 
Remote player request succeeded..
  [11-04-11 23:08:00.0014] Plugins::SrvrPowerCtrl::Watchdog::SPCWatchdog (749) 
Skipped watchdog check..
  [11-04-11 23:08:43.0043] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (825) 1 
commands: sudo /usr/sbin/pm-suspend --quirk-s3-bios
  [11-04-11 23:08:43.0054] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (838) 
Squeezebox Classic: SB3White executing command: sudo /usr/sbin/pm-suspend 
--quirk-s3-bios
  [11-04-11 23:10:20.6381] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (849) 
Command: "sudo /usr/sbin/pm-suspend --quirk-s3-bios" returned 0
  [11-04-11 23:10:32.9546] Plugins::SrvrPowerCtrl::Watchdog::OnWakeupWatchdog 
(647) Wakeup Call!!
  [11-04-11 23:10:32.9561] Plugins::SrvrPowerCtrl::Stats::NetStat (145) Net IO: 
29 (kb / 60 seconds)
  [11-04-11 23:10:32.9567] Plugins::SrvrPowerCtrl::Watchdog::IdleWatchdog (262) 
Activity history: 111111111111111111111111111111111111111111110 System is idle 
with 44 minutes left in the idle countdown..
  [11-04-11 23:11:17.0029] Plugins::SrvrPowerCtrl::AltServer::PullFromAltServer 
(487) Fetching from www.mysqueezebox.com (www.mysqueezebox.com): 
["00:04:20:06:29:30", "00:04:20:10:01:04"]
  [11-04-11 23:11:17.0034] 
Plugins::SrvrPowerCtrl::AltServer::GetAltServerPlayers (105) Trying to get list 
of players from www.mysqueezebox.com (www.mysqueezebox.com)..
  [11-04-11 23:11:17.0065] 
Plugins::SrvrPowerCtrl::AltServer::GetAltServerPlayers (131) Other players on 
www.mysqueezebox.com (www.mysqueezebox.com): (
  [11-04-11 23:11:17.0071] 
Plugins::SrvrPowerCtrl::AltServer::RemotePlayerRequest (653) Sending request: 
http://www.mysqueezebox.com/jsonrpc.js?{"params":["00:04:20:06:29:30",["connect","192.168.0.198"]],"method":"slim.request","id":1}
  [11-04-11 23:11:17.0093] 
Plugins::SrvrPowerCtrl::AltServer::RemotePlayerRequest (653) Sending request: 
http://www.mysqueezebox.com/jsonrpc.js?{"params":["00:04:20:10:01:04",["connect","192.168.0.198"]],"method":"slim.request","id":1}
  [11-04-11 23:11:18.8876] Plugins::SrvrPowerCtrl::AltServer::_json_done (586) 
Remote player request succeeded..
  [11-04-11 23:11:18.8907] Plugins::SrvrPowerCtrl::AltServer::_json_done (586) 
Remote player request succeeded..
  [11-04-11 23:11:21.0022] Plugins::SrvrPowerCtrl::SleepButton::mapKeyHold 
(239) Mapping SB3White::squeezebox2::4::00:04:20:06:29:30's sleep.hold to 
modefunction_PLUGIN.SrvrPowerCtrl::Plugin->ourSleepHoldButtonHandler for 21 
modes.
  [11-04-11 23:11:21.0040] Plugins::SrvrPowerCtrl::SleepButton::mapKeyHold 
(239) Mapping Transporter::transporter::5::00:04:20:10:01:04's sleep.hold to 
modefunction_PLUGIN.SrvrPowerCtrl::Plugin->ourSleepHoldButtonHandler for 21 
modes.
  
--------------------
That's a lot of gobbledegook, I know.  But it actually fairly describes
the whole process that SrvrPowerCtrol goes through to get the job
done.

Again, with all the changes that have happened in the past few weeks,
it's entirely possible that your prefs have become deranged. You can
try going into the SrvrPowerCtrl settings and unchecking the "Assign
Server Power Control action to the Sleep+Hold button?" setting, saving,
re-checking and then saving again and see if that makes any sort of a
difference.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to