Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend to RAM weird behavior... bad behavior...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Thu Sep 13, 2012 6:52 pm    Post subject: Suspend to RAM weird behavior... bad behavior... Reply with quote

The hardware: HP Envy4 laptop. Replace "hard drive" with "SSD".
The setup: Dual boot, swap partition for Linux hibernation. Gnome power manager.

The problem:

When I hit suspend in Gnome or suspend to disk after setting up the hibernation partition, it does something weird:

First, the machine seems to suspend. Then seconds later it wakes up and writes a bunch of stuff to disk and then shuts off... this isn't S3! It seems to have gone to S4 hibernate somehow.

When I turn the machine back on, it seems to resume fine from disk.

HOWEVER! I notice that my swap partition is corrupt! When I shut down and restart the machine, the swap partition is no longer recognized as a valid swap partition.

With the swap partition invalid, hibernate no longer works... BUT if I hit "suspend" again, this time it will suspend and not touch the hard drive. The power LED blinks as if it were in S3 suspend-to-RAM, and it resumes just fine.

Anyone know what's going on here? I'm using the kernel default swsusp code but it shouldn't be triggered for the S3 suspend-to-RAM?

My initial guess is that ACPI BIOS is actually trying to suspend to disk and not linux swsusp. I can't think of how or why the swap partition gets corrupted.

Any thoughts on why my swap partition gets eaten?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Thu Sep 13, 2012 8:56 pm    Post subject: Reply with quote

Are you running a 3.6-rcX kernel? AFAIK they are implementing something like on Windows/OSX, hybrid suspend/hibernate, maybe it's got to do with it.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Thu Sep 13, 2012 9:27 pm    Post subject: Reply with quote

I'm using 3.4.9 (x86_64 stable?), are they doing in-kernel hybrid suspend in that version?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Thu Sep 13, 2012 9:52 pm    Post subject: Reply with quote

AFAIK not, it's only scheduled for 3.6 or 3.7.

I'm on 3.5.3 and can't reproduce this, but then again, I'm not using gnome.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9601
Location: almost Mile High in the USA

PostPosted: Fri Sep 14, 2012 2:23 pm    Post subject: Reply with quote

I'm pretty sure this is BIOS and not Linux corrupting that partition. Going to try to put swsusp partition somewhere else and see where/if it still corrupts...
Also I wonder if Intel Rapid Start is causing some of this headache...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum