Bugzilla – Bug 1340
SB power (on/off) on Web UI does not track actual state of SBs
Last modified: 2008-12-18 11:50:27 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
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...
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.
Please reopen if this is still an issue in 6.0.1
Routine bug db maintenance; removing old versions which cause confusion. I apologize for the inconvenience.