Bug 13693 - Controller resets after coming out of sleep
: Controller resets after coming out of sleep
Status: RESOLVED FIXED
Product: SB Controller
Classification: Unclassified
Component: OS
: unspecified
: PC Windows Home Server
: P1 major with 13 votes (vote)
: 7.4.0
Assigned To: Richard Titmuss
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-26 09:12 UTC by Gary
Modified: 2010-04-07 21:30 UTC (History)
6 users (show)

See Also:
Category: Bug


Attachments
Log File from JIVE (234.53 KB, application/octet-stream)
2009-08-27 10:42 UTC, James Richardson
Details
Serial Log (9.68 KB, text/plain)
2009-08-27 15:06 UTC, James Richardson
Details
SBC log file (104.11 KB, text/plain)
2009-08-27 16:09 UTC, James Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary 2009-08-26 09:12:37 UTC
I'm running the latest nightly (7.4.0-r7259).
For sometime now I have noticed an issue where the controller just resets after coming out of sleep mode.  It tries to connect for a second...pauses then resets.

I have several apps installed but this was happening before I installed them.

I have not done any hacking to turn of powersave to improve connection to SqueezeServer as was once suggested on Forum.
Comment 1 James Richardson 2009-08-26 09:58:48 UTC
I too have seen the controller randomly rebooting when recovering from sleep/suspend states.
Comment 2 Gary 2009-08-26 17:26:56 UTC
(In reply to comment #1)
> I too have seen the controller randomly rebooting when recovering from
> sleep/suspend states.

I have noticed that it is not every time it comes out of sleep.
It sometimes recovers without issue although not as quick as I'd like.
Comment 3 Mikael Nyberg 2009-08-26 21:07:59 UTC
Ok since the last upgrade this is now happening all the time
Comment 4 Mikael Nyberg 2009-08-26 21:10:35 UTC
https://bugs-archive.lyrion.org/show_bug.cgi?id=10774
groundhog day ?
Comment 5 Richard Titmuss 2009-08-27 01:13:58 UTC
James, can you get me a serial console log. Thanks.
Comment 6 James Richardson 2009-08-27 10:42:29 UTC
Created attachment 5710 [details]
Log File from JIVE

Here is the log from the SD card on a Jive that fails to recover from sleep state.  I.E. it reboots when you wake the device.
Comment 7 James Richardson 2009-08-27 10:45:29 UTC
I'm still working on this, trying to get a serial log from jive (with syslog disabled) to capture the actual reboot.
----------------
Richard: how do I remove the syslog from Jive 7.4 so I can see what happening in real time on serial in 7.3.x I used rm /usr/lib/lua/5.1/syslog.so

That doesn't work in 7.4 anymore
Comment 8 James Richardson 2009-08-27 15:06:06 UTC
I think I got it to happen, the jive was attached to serial with out the AC attached, but has a battery.  I started typing commands and the jive went to suspend.

I plugged the AC into the serial board and the unit rebooted.  Attached is the log for that.
Comment 9 James Richardson 2009-08-27 15:06:45 UTC
Created attachment 5728 [details]
Serial Log
Comment 10 James Richardson 2009-08-27 16:09:32 UTC
Created attachment 5730 [details]
SBC log file

I was able to capture the reboot from suspend in this log, hope it helps narrow down the cause.

Look to the end of the file for text I entered after log was closed:
=============================================================
(( ATTEMPTING TO WAKE DEVICE CAUSED A REBOOT AT THIS POINT))
=============================================================
Comment 11 Mikael Nyberg 2009-09-07 13:13:53 UTC
No change here ? it still does this reboot out of suspend with the latest 7433
Comment 12 Richard Titmuss 2009-09-08 02:59:25 UTC
I'm having trouble re-creating this. It's happened once while I've been testing this morning. How often do people see this, on every resume?

If you do see this frequently, could you try sshing  into the Controller and do 'rm /etc/watchdog.conf'. Then reboot the Controller. Does the problem still happen then?
Comment 13 Richard Titmuss 2009-09-08 03:20:13 UTC
Don't worry about trying that. I just had the problem with the watchdog file removed, and the system freezes.

Can you confirm this did not happen in 7.3?
Comment 14 SVN Bot 2009-09-08 03:53:36 UTC
 == Auto-comment from SVN commit #6376 to the player repo by richard ==
 == https://svn.slimdevices.com/player?view=revision&revision=6376 ==

Bug #13693
Only claim FIQ is wlan driver will use it.
Comment 15 SVN Bot 2009-09-08 03:54:41 UTC
 == Auto-comment from SVN commit #7444 to the jive repo by richard ==
 == https://svn.slimdevices.com/jive?view=revision&revision=7444 ==

Bug #13693
Don't print the battery status while resuming.
Comment 16 Richard Titmuss 2009-09-08 08:24:14 UTC
Ok, so my hunch here is this is a problem if the Controller is suspended at the top of the hour (like 4:00), and you try to wake it up afterwards. That certainly agrees with James log, and the testing I've done this afternoon.

This would make sense, as the Controller briefly wakes up to check the battery level. This was recently added in 7.3.x, what I don't understand is why it would not work in 7.4. No kernel level changes have been made to the Controller for this release.
Comment 17 SVN Bot 2009-09-10 01:50:02 UTC
 == Auto-comment from SVN commit #7485 to the jive repo by richard ==
 == https://svn.slimdevices.com/jive?view=revision&revision=7485 ==

Bug #13693
Don't make audio thread RT priority on jive, this does not actually help (as it is not running RT Linux) and actually seems to break suspend/resume.
Comment 18 Richard Titmuss 2009-09-10 01:52:40 UTC
The last change seems to have worked all day while testing yesterday. I'll continue to test today.
Comment 19 Richard Titmuss 2009-09-10 12:08:49 UTC
I've been testing all day, and it looks good with no resets.
Comment 20 Gary 2009-10-03 04:22:25 UTC
(In reply to comment #19)
> I've been testing all day, and it looks good with no resets.

I don't get any resets any more either.
I am now plagued with 'trying to come out of sleep' waiting and a constantly reveolving circle of boredom.
Comment 21 Mikael Nyberg 2009-10-03 04:39:26 UTC
I still see resets but very rare .
I managed to provoke one by holding the pause button pressed while it was getting out of sleep .

It is 99% gone but it still happens.
Comment 22 James Richardson 2009-10-05 14:35:35 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 23 Mikael Nyberg 2009-10-22 23:26:04 UTC
You must missed my last comment .
If i was unclear it's not fixed tried 7.4.0 , 7.4.1 and now on 7.5.0

It was and is still rebooting, sometimes .
Is this the wrong bug or do you have a new one ?
Comment 24 Jim Zachary 2009-10-25 08:18:06 UTC
This bug is NOT fixed.

It has happened to me twice in the last 24 hours with two different controllers and the 7.4.1 firmware as the controller wakes up from sleep.

Please continue to work on this bug.
Comment 25 Lee Ziegenhals 2009-10-26 09:37:53 UTC
I am having the same problem on a brand new Squeezebox Duet running 7.4.1
Comment 26 Mikael Nyberg 2009-10-26 20:30:25 UTC
Regarding my 2009-10-03 coment, now it does it as often as it always did.
Comment 27 Ben 2009-10-28 05:08:09 UTC
This bug is NOT CLOSED as of 7.4.1, controller v 7.4.1 r7915.

My controller fairly consistently reboots anytime I wake it up.
Comment 28 Gary 2009-11-04 04:08:11 UTC
(In reply to comment #27)
> This bug is NOT CLOSED as of 7.4.1, controller v 7.4.1 r7915.
> My controller fairly consistently reboots anytime I wake it up.

Mine has only rebooted once or twice in a month but I have turned off the sleep function for the wifi.
It does still get stuck in the "ring of boredom" but more often than not I get to use the controller almost straight away.

I would however agree that this issue should NOT be closed.
Comment 29 Gary 2009-11-04 04:09:47 UTC
This issue is still causing problems for many.
Comment 30 Mikael Nyberg 2009-11-30 01:41:38 UTC
I have used my *new* controller (old one exchanged with logitech for examination) a little bit for a week and noticed one reboot and several cracks from the speaker.

I have reformatted my SD card on a PC and put it in hopefully it catches some files.

My exchange controller came in a box marked C/NO:32-0516 DATE1:10-OCT-08
Controller itself is marked PM/N C-RL65 P/N:830-000019 PID: LZ841S2
Comment 31 SVN Bot 2010-01-06 00:59:53 UTC
 == Auto-comment from SVN commit #8281 to the jive repo by felix ==
 == https://svn.slimdevices.com/jive?view=revision&revision=8281 ==

Bug: 13693 
Description: Possible fix for SBC resets after coming out of sleep
- Test w/ patch: 50 times ok out of 50 suspend resume cycles
- Test w/o patch: 3 times not ok out of 40 suspend resume cycles
Comment 32 Felix Mueller 2010-01-06 01:01:04 UTC
Update hours worked.
Comment 33 Felix Mueller 2010-01-06 01:06:29 UTC
Assuming there isn't another cause forcing a reset while resuming from suspend I am going to close this bug for now as I am unable to make it happen anymore.

Fix is in r8281.
Comment 34 SVN Bot 2010-01-06 02:01:49 UTC
 == Auto-comment from SVN commit #8282 to the jive repo by felix ==
 == https://svn.slimdevices.com/jive?view=revision&revision=8282 ==

Bug: 13693 
Description: Forgot to update the source recipe.
Comment 35 Felix Mueller 2010-01-06 02:38:54 UTC
Sorry, I forgot a recipe. Please try r8282.
Comment 36 Dennis Mutsaers 2010-01-26 07:15:47 UTC
It's back... I've seen both my controllers reboot for no apparent reason several times a day the last few days... 7.5.0 r8398
Comment 37 Jim Zachary 2010-01-26 07:19:23 UTC
I'm not having any reboots now on the General Release 7.4.1.

They just stopped happening, but I will probably jinx myself with this email.

On Tue, Jan 26, 2010 at 9:16 AM,  <bugs@bugs.slimdevices.com> wrote:
> https://bugs-archive.lyrion.org/show_bug.cgi?id=13693
>
>
>
> --- Comment #36 from Dennis Mutsaers <fifafo@fun4me.nl> 2010-01-26 07:15:47 PST ---
> It's back... I've seen both my controllers reboot for no apparent reason
> several times a day the last few days... 7.5.0 r8398
>
> --
> Configure bugmail: https://bugs-archive.lyrion.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are a voter for the bug.
>