Bug 1340 - SB power (on/off) on Web UI does not track actual state of SBs
: SB power (on/off) on Web UI does not track actual state of SBs
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 5.x or older
: Sun All
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-08 19:13 UTC by Nicholas Gianniotis
Modified: 2008-12-18 11:50 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 Nicholas Gianniotis 2005-04-08 19:13:42 UTC
After upgrading to 5.4.1 I noticed that controlling the power (on/off) of
squeezebox clients via the web UI no longer works reliably.
It appears the UI is not getting the current on/off state from the client and is
often displaying the state as On when in fact the clients are off.
Turning the suqeezeboxes on/off via remote control and then refreshing the UI
also results in power toggling and incorrect display of state.

To reproduce:
1. turn SB OFF via remote control
2. restart slimserver
3. status of SB in UI will appear as ON despite it still being OFF. At this
point you can't turn SB ON via the UI (because it thinks it's already on).
4. turn SB ON via remote control
5. refresh UI, it displays state of SB as ON (correct)
6. UI and SB are now in sync
7. Turn SB OFF via UI
8. SB turns off (displays datetime screensaver), but UI updates to show SB still ON.
9. etc. lots of other similar out-of-sync cases can be demonstrated
Comment 1 Nicholas Gianniotis 2005-04-08 19:19:49 UTC
I added a few debug statements to Slim::Web::Pages.pm line 587 to display what
$params->{'mode'} was being set to. I'm not an expert on the code, but I see
that when the SB is turned off, or in the off state, the mode is set to '
SCREENSAVER.datetime'. The status_header.html page logic for the On/Off state
tests mode against the string 'off' to determine whether the SB is on or off.
Thus when the SB is off, but has the datetime screensaver displayed, the UI
thinks it's ON...
Comment 2 KDF 2005-04-08 19:42:57 UTC
try 6.0.1.  that is the latest official release.  5.4.1 is a final release for
5.4.x level of the server.
Comment 3 Dan Sully 2005-04-12 16:47:35 UTC
Please reopen if this is still an issue in 6.0.1
Comment 4 Chris Owens 2008-12-18 11:50:27 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.