I installed Ubuntu 11.10 on my machine and I notice several problems with the Hibernate functionality. When I use s2disk/pm-hibernate, I see an embarrassingly slow wakeup from the hibernate state. I am talking on the order of 5-6 minutes when Windows 7 on the same system resumes within 1 minute even when I hibernate with a slightly loaded system. But this slow resume from hibernate is unacceptable and I would be glad if someone can help me repair it. I have a Core i5 processor with 8GB RAM. I have set about 6GB of hard disk space for swap. It would be helpful if someone can help me identify and rectify the bottleneck in the resume process.
Also with Windows 7 I was able to setup my system to wake up from hibernate state automatically at a specified time. But I am not able to get the same functionality running on linux. I am following this Automatic System Wakeup Guide.
Thanks for your help!
Update:
Interesting observation from /var/log/kern.log
During s2disk stage: I see the following log message:
Jan 16 01:38:00 pc kernel: [10682.575070] PM: Preallocating image memory... done (allocated 1902274 pages)
Jan 16 01:38:00 pc kernel: [10706.894027] PM: Allocated 7609096 kbytes in 24.33 seconds (312.74 MB/s)
This seems to be the bottleneck of s2disk stage.
During resume the only time consuming steps as per kern.log are:
Jan 16 01:38:01 pc kernel: [10709.361876] video LNXVIDEO:00: Restoring backlight state
Jan 16 01:38:13 pc kernel: [10726.919537] wlan0: authenticate with c0:c1:c0:f0:68:6b (try 1)
This takes 12 seconds.
Jan 16 01:38:15 pc kernel: [10728.620666] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
Jan 16 01:38:17 pc kernel: [10730.903990] wlan0: deauthenticated from *:*:*:*:*:6b (Reason: 15)
This takes 2 seconds.
Jan 16 01:38:17 pc kernel: [10730.967287] cfg80211: Calling CRDA to update world regulatory domain
Jan 16 01:38:19 pc kernel: [10732.265611] wlan0: authenticate with *:*:*:*:*:6b (try 1)
This takes 2 seconds.
Jan 16 01:38:19 banga-pc kernel: [10732.271086] wlan0: associated
Jan 16 01:38:35 banga-pc kernel: [10748.866054] cfg80211: Ignoring regulatory request Set by core since the driver uses its own custom regulatory domain
Jan 16 01:38:35 banga-pc kernel: [10748.866063] cfg80211: World regulatory domain updated:
This takes 16 seconds.
Rest all the log messages are closely spaced in time. This does not explain the 5-6 minute resume time. Also after about 2 minutes of power on I do see the windows and everything but the system takes about 3-4 minutes to become usable. Until then I do not see the mouse pointer and the keyboard does not work. The screen remains frozen until then as if waiting on sudo s2disk
I had issued before hibernating the system.
Strange but I do need help to fix this soon. I am used to < 30 seconds resume time and restarting my computer < once per week. I would be delighted if I could get the same with Ubuntu. I also need help to fix the ACPI Wakeup thing I mentioned above.
In case it matters I have an integrated Intel graphics card on my laptop.