[Bug 160763] Re: Acer Aspire 5720 hangs on second resume from suspend, i.e. suspends only once [BIOS PROBLEM]

Maxim Levitsky maximlevitsky at gmail.com
Fri May 21 21:10:15 UTC 2010


On Fri, 2010-05-21 at 18:21 +0000, Enrico Gueli wrote: 
> Maxim... you're AWESOME!! Thanks for the effort!!
> 
> I've tried to apply the patch against the 2.6.34 kernel from git, but
> patch prints a strange output:
> 
> Hunk #1 succeeded at 213 (offset -3 lines).
> Hunk #2 succeeded at 590 with fuzz 2 (offset 292 lines).

2.6.34 from git it no longer 2.6.34...
now merge window is open, and lot of stuff was merged it.
Still its strange, because I just switched to that kernel now, and my
patch applies.

To be honest I used wireless-testing + nouveau master + few my own
patches.
But I really don't think this matters.

This is the patch I use now:


Best regards,
Maxim Levitsky


commit 5084e5abd66fa7d2cd77390d4708bb2c8a543f40
Author: Maxim Levitsky <maximlevitsky at gmail.com>
Date:   Thu May 20 00:18:28 2010 +0300

    power: store/restore NVS area on suspend to ram too
    
    This fixes suspend on my notebook.
    
    This is probably workaround around bug in bios,
    but maybe The Other OS also does that?
    
    Signed-off-by: Maxim Levitsky <maximlevitsky at gmail.com>

diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 24741ac..f1920ed 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -216,6 +216,9 @@ static int acpi_suspend_begin(suspend_state_t pm_state)
 			pm_state);
 		error = -ENOSYS;
 	}
+
+        hibernate_nvs_alloc();
+        hibernate_nvs_save();
 	return error;
 }
 
@@ -295,6 +298,8 @@ static void acpi_suspend_finish(void)
 {
 	acpi_ec_resume_transactions();
 	acpi_pm_finish();
+	hibernate_nvs_restore();
+	hibernate_nvs_free();
 }
 
 static int acpi_suspend_state_valid(suspend_state_t pm_state)

-- 
Acer Aspire 5720 hangs on second resume from suspend, i.e. suspends only once [BIOS PROBLEM]
https://bugs.launchpad.net/bugs/160763
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list