Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have Ubuntu Lucid installed on a Panasonic Toughbook CF-29. Most things work well, but, under Gnome, suspend and hibernate do not work. Interestingly, in Xubuntu, hibernate does work. So my question is twofold:

1) How do I troubleshoot the hibernate function in Gnome desktop (since I know the laptop can hibernate in Ubuntu), and

2) How to go about troubleshooting the suspend function? I got as far as looking at the /var/log/pm-suspend.log, but that just tells me the things that ran successfully... I'm kind of stuck there.

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted
+50

Some tips are at https://wiki.ubuntu.com/DebuggingKernelSuspendHibernateResume

Fails to suspend/hibernate

$ dmesg|less

There is usually an entry what application caused the suspension to fail:

[32467.560058] Freezing of tasks failed after 20.01 seconds (1 tasks refusing to freeze, wq_busy=0):
[32467.560115] plasma-desktop D 0000000000000000 0 2065 1 0x00800004
...

The stack trace often tells you where the problem might lie:

[32467.560155] [<ffffffff81087f00>] ? autoremove_wake_function+0x0/0x40
[32467.560163] [<ffffffffa016e523>] SendReceive+0x1a3/0x3b0 [cifs]
[32467.560169] [<ffffffffa0153c79>] CIFSSMBUnixQPathInfo+0x139/0x2b0 [cifs]
[32467.560176] [<ffffffffa016853d>] cifs_get_inode_info_unix+0x7d/0x1a0

Fail to resume

Make sure the swap partition is correctly set, see https://help.ubuntu.com/community/SwapFaq

share|improve this answer
    
Great link - I hadn't actually seen that one yet. AFAIC, this answer is the best answer to date to my question ("how to troubleshoot"...) so I'm awarding the bounty here. –  Aerik Sep 13 '11 at 16:25
add comment

I used to have Ubuntu hibernation issue on laptop as well as desktops. Then I read somewhere, and which made sense, was that the swap space must be big enough to store the current memory contents. So a good rule of thumb is to have a swap space slightly bigger than the physical memory the laptop has.

So I used 1.6GB of swap for 1GB memory in the next Ubuntu release installation (I am now on Ubuntu 10.04) and I can hibernate the laptop without any issue.

Another way to make it work is to use swap file and not swap partition. Below link has more details:

Hybernate without partition

share|improve this answer
add comment

Apparently Ubuntu has a problem with suspend and hibernate on laptops.

See this Ubuntu Forums HowTo : Fix suspend and hibernate on laptops.
This article has many comments that might be worthwhile reading.

share|improve this answer
1  
Hmm... I've looked at a bunch of stuff like this. Mostly what I've seen are "shotgun" solutions (like "try uswsusp"). My question is really more "how to troubleshoot". I'm looking for a linux guru who is familiar with these components in the different variants of Ubuntu to give some pointers as to how to figure it out, not just go down a long list of things to try to see if they work. –  Aerik Sep 8 '11 at 19:39
    
As the problem seems to be localized to the Ubuntu distribution and only on laptops, you might be better asking it in their forums. As a last note, the following threads contain lots of pointers and info : Troubleshooting suspend and hibernate and How to troubleshoot Suspend/Hibernate in Ubuntu 10.10. –  harrymc Sep 8 '11 at 20:42
    
funny - it worked fine for me on my netbook :) –  warren Sep 12 '11 at 21:42
    
@warren: Apparently, the problem is not for all models. –  harrymc Sep 13 '11 at 4:49
    
@harrymc - thanks for the tips and links –  Aerik Sep 13 '11 at 16:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.