Bug 1151 - DateTime screensaver does not work on SB2
: DateTime screensaver does not work on SB2
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 6.0.0
: All All
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-21 15:44 UTC by Dave Cohen
Modified: 2008-08-18 10:53 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
should fix 1151 (3.04 KB, patch)
2005-03-24 10:47 UTC, Dave Cohen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cohen 2005-03-21 15:44:42 UTC
When using datetime as the screensaver while the player is _on_, the display
updates very infrequently.  So the clock appears stopped.

Take a look at SqueezeBox2::refresh().  It special cases modes which require
frequent updates, but fails to test for the datetime mode while player is on. 
The quickest fix would be to explicitly test for the datetime mode there.

In the slimservice branch, I solved this (and another) problem by allowing each
mode to specify their required update interval.  They do this by setting a mode
param, 'modeUpdateInterval'.  If you'd like to bring that fix into the trunk,
just assign this bug to me.
Comment 1 KDF 2005-03-24 01:31:53 UTC
the comment on Squeezebox2::refresh indicates the need to move this control to
the modes.  I think its probably also good to keep common code as much as
possible between server and service.  I'd say go for it, Dave.

we can always reopen or leave open for post 6.0 if this isn't the ideal fix. 
right now, its something we can at least fix for 6.0 in some way.  
Comment 2 Dave Cohen 2005-03-24 10:47:46 UTC
Created attachment 372 [details]
should fix 1151

This patch allows any mode to set a param, "modeUpdateInterval".  Then, while
in that mode, $client->update() will be called periodically, at the interval
specified by that param.

Slim::Buttons::Common looks for the param in pushMode().  If set, it starts the
timer which calls the updates.

DateTime mode and NowPlaying modes use the new parameter to ensure they are
updated every second.
Comment 3 Dave Cohen 2005-03-24 10:49:54 UTC
Dean, please check out the attached patch and decide if you want it in 6.0.

I can think of one drawback, which is that for pre-SB2 Squeezeboxen, update
might be called twice a second instead of just once for now playing and datetime
modes.

Comment 4 Blackketter Dean 2005-03-25 10:01:10 UTC
*** Bug 1124 has been marked as a duplicate of this bug. ***
Comment 5 Blackketter Dean 2005-03-25 10:08:31 UTC
fixed for next nightly build.  Please verify and close the bug or reopen with details.  Thanks!