Fix Ubuntu (or Linux) Suspend/Hibernate Not Working Bug

I own an Asus N73JQ laptop, the spec is top notch. Since Windows has been long gone from my candidate OS, I installed Ubuntu 10.10 right away. So far the result is quite amazing. Smooth, reliable, and it feels just right. Although the OS itself is very impressive, I have 2 major issues with the hardware: (1) Function key that switches to external monitor does not work; (an update on the external monitor issue can be found here) (2) Suspend/Hibernate does not work. I have not found a solution for (1), which remains unsolved. I have, however, found a solution for (2). I am going to share this share this solution with those who having the same problem.

By googling around, I found this post. It seems that it will also work for other laptops that have similiar problem in Ubuntu 10.10. The credit belongs to the original poster and all others who contributed to that solution. Though I have thoroughly tested the script and it works for me, I do not guarantee it will work for you. So use it at your risk.

Step 1

Create a script under /etc/pm/sleep.d/. It can be any name, but to ensure the load order, use the prefix 20_.

Follow either Step 2 or Step 2 Old, but not both. The script in Step 2 appears to be more stable than the one in Step 2 Old.

Step 2

Note that if you use the code from "Step 2 Old" below, please skip this step. This script is contributed by commenter Danne.

Insert the following code into the file you have just created:

Step 2 Old

Note that if you use the code from "Step 2" above, please skip this step.

Insert the following code into the file you have just created:

Step 3

Add executable permission:


Your suspend/hibernate should be now working as expected. Suggestions on improving this script are welcome.

Other Thoughts

If this script has worked for you, please post the make/model, Ubuntu distribution, related hardware information of your laptop below.

Updated 2012/03/02

Making sure you have enough space for your swap partition, otherwise hibernate will not work. I have recently upgraded my RAM. In my case, I have 12GB of RAM, but only 6GB of swap space. After the upgrade, hibernation stop working. However, after following this guide (see "Making the swap partition work for hibernate" section), hibernation becomes functional again.

I create a 30GB swap partition, and instruct Ubuntu to use this partition. Hibernation works like a charm again. To verify your system is using the swap, do


Update 2011/11/10

If this has been working for you, but stop working after upgrading to Ubuntu 11.10, you may try this method:

Other Tips:
This might give you some clues on the suspend/hibernate issue:

Related Posts

Switch to External Monitor Connected via HDMI/VGA port in Ubuntu
Ubuntu 11.10 Look Overhaul

713 Comments Fix Ubuntu (or Linux) Suspend/Hibernate Not Working Bug

  1. Steve

    Worked on my Sony Vaio VPC-F115FM. Its pretty slow to wake up but its better than nothing! don't be freaked out by a white screen that last a few seconds followed by a black screen for another fairly long period of time. just wait it out and it will work. at least for me! :). Thanks alot great fix!

  2. Steve

    Actually my comment above is sadly flawed, just tested out closing the lid... dose not work :/. i will search and post back!

  3. n61jq

    Legendary. Thanks a lot. I also saw the original posters code before urs and didnt work. Urs worked great though. HCeers

  4. threepenpals

    You're my hero!!

    This fixed suspend and hibernate on my Asus 1018p, under Xubuntu 32bit.

  5. Pingback: Linux: Asus-Notebooks & Standby «

  6. Sid

    Sony Vaio VPCF1. Worked better than the fix suggested by ubuntu themselves. You should let them know of your idea.

  7. Shaked

    hey, I`m using Fedora Core (14) with Asus N53J. Your guide helped me with Suspend mode, so I just wanna say thanks ;)

    Unfortunately, Hibernate doesn't work yet but will figure it out somehow.

    I wanted to ask if I may publish your post with link to it on my blog.

    thanks about everything mate.

  8. Darx

    Works flawlessly on Asus U50F running Ubuntu 10.10. Wish i could find a good fix for sound though.... not a huge deal though. Thanks!

  9. Manfred Nachtsheim

    On my Asus X51RL with Ubuntu 10.10 64 Bit it doesn't work. When opening the book and pressing Space-Key, I see the hard disk working for a while, but display keeps dark.

  10. Alberto J. Azevedo

    10.000 tanks for you man! It works great on my brand new Asus n53j with ubuntu 11.04

    I was actually thinking on removing 11.04 and install 10.10 to solve this, but tanks to you, I no longer need to do this.

    Great Job!

  11. rolf

    10k thanks to you. It's the first time I got suspend/hibernate working on this ASUS B53F series machine using Ubuntu 10.10 and 11.04.

  12. gede

    You're a genius (I wonder how you did Many thanks. I works ok on my Asus G73Sw, with 11.04.

    There's just a tiny catch: when the computer goes back from sleep or hibarnate the Unity laucher is blured. But that just disappears when I put the cursor on it.

  13. blau

    works with ubuntu 11.04, gnome (ubuntu classic), asus x52j, amd radeon graphics card drivers enabled

  14. Pingback: Fedora Core 14 – 64 Bit – Asus N53J – installation & configuration #2 « Shaked's

  15. Nicolas Demarais

    It works fine !

    Asus K52JR
    Ubuntu 11.04 X64
    ATI Mobility Radeon HD 5000 series.

    Problème de mise en veille et d'hibernation résolue !

    Thank you !

  16. Krish

    Excellent - was really struggling with the suspend not working on a desktop and sendnig the machine into a hang.

    This script worked perfectly for me;

    I do have an ASUS U3S^ card which uses the xhci_hcd module and built in USB 2.0 which uses ehci_hcd - dont know which of these needed to be unloaded but this really did the trick.

    Incidentally I use the nvidia-current proprietary driver from ubuntu.

    This is a DESKTOP.

    Thanks a lot...

  17. Pingback: [How to] Fix Suspend/Hibernate in Ubuntu 10.10

  18. Pingback: [How to] Fix Suspend/Hibernate in Ubuntu 10.10 » - Sit, Relax and Read!

  19. Pingback: How to fix Ubuntu suspend/hibernate issue

  20. Boris

    I LOVE YOU =p. my laptop: k72jr asus OS: elementary OS Jupiter.
    this works great!
    thank you!

  21. Björn A.
    • Lenovo IBM ThinkPad R60
    • Ubuntu 10.10

    It doesn't work. At the first try it looks great. A few minutes later the screen stays black.

  22. intraland

    Works for my 10.04 64-bit desktop. ASUS M4A785-M motherboard.

    Thanks for the post! I wish I had discovered this sooner. Had to live a year without hibernate since migrating from Windows. Thinking about the wasted energy just makes me frown.

  23. Lens

    It works on an Asus P31F with Ubuntu 11.04. But what does this script do? And why isn't it included in Ubuntu?

  24. ppnon

    Works to fix hibernate bug but not the suspend on ubuntu 11.04, sony vaio wgn-fw235j

Comments are closed.