OK Last post before bedtime, I promise. So I worked out it must be the
times. So I rewrote the debug like this just to be 100% sure:
Code:
--------------------
my $a = $client->isUpgrading();
my $b = $client->isPlaying();
my $c = Time::HiRes::time() - $client->lastActivityTime;
my $d = $a || $b || ($c <= INTERVAL);
# if ( $client->isUpgrading() || $client->isPlaying() ||
(Time::HiRes::time() - $client->lastActivityTime <= INTERVAL) ) {
if ( $d && 1) {
main::DEBUGLOG && $log->is_debug && $log->debug("Player
" . $client->name() . " is busy...");
main::DEBUGLOG && $log->is_debug && $log->debug("Player
upgrading " . $a . " playing " . $b . " time " . $c . " result " . $d);
return 1;
}
--------------------
And this is the result
Code:
--------------------
[22-12-07 23:31:40.0114] Slim::Plugin::PreventStandby::Plugin::_playersBusy
(164) Player Kitchen is busy...
[22-12-07 23:31:40.0119] Slim::Plugin::PreventStandby::Plugin::_playersBusy
(165) Player upgrading 0 playing time 54.7731530666351 result 1
[22-12-07 23:31:40.0122]
Slim::Plugin::PreventStandby::Plugin::checkClientActivity (109) Resetting idle
counter. 3 minutes left in allowed idle period.
[22-12-07 23:31:40.0124]
Slim::Plugin::PreventStandby::Plugin::checkClientActivity (126) Preventing
System Standby...
[22-12-07 23:32:40.0111] Slim::Plugin::PreventStandby::Plugin::_playersBusy
(164) Player Squeezebox Radio is busy...
[22-12-07 23:32:40.0115] Slim::Plugin::PreventStandby::Plugin::_playersBusy
(165) Player upgrading 0 playing time 8.22161316871643 result 1
[22-12-07 23:32:40.0117]
Slim::Plugin::PreventStandby::Plugin::checkClientActivity (109) Resetting idle
counter. 3 minutes left in allowed idle period.
[22-12-07 23:32:40.0120]
Slim::Plugin::PreventStandby::Plugin::checkClientActivity (126) Preventing
System Standby...
[22-12-07 23:33:40.0035] Slim::Plugin::PreventStandby::Plugin::_playersBusy
(164) Player Kitchen is busy...
[22-12-07 23:33:40.0038] Slim::Plugin::PreventStandby::Plugin::_playersBusy
(165) Player upgrading 0 playing time 8.58207488059998 result 1
--------------------
So clearly the lastActivityTime keeps being updated even though the
players are off. That is what is causing the staying awake, though I
have no idea why that is happening.
Does that help find out what's going on?
------------------------------------------------------------------------
bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997
View this thread: http://forums.slimdevices.com/showthread.php?t=117181
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter