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. Pingback: Suspend/hibernate doesn’t work on an Asus laptop | Some Ubuntu Questions and Answers

  2. Nick

    Thinkpad T420, Ubuntu 14.04.

    Suspend worked fine until I added a USB3 card. It uses xhci_hcd driver. Used the script but changed the driver to xhci_hcd, and it suspends again.

  3. cheap car insurance

    Thank you for sharing superb information. Your web-site is so cool. I’m impressed by the details that you have on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles.


    Ok, I think I can do this. No…wait…I KNOW I can do this. Just a few days ago I went thrift shopping and came out with three dress shirts for work and 1 pair of pants. It can be done. Agree on the undergarments stuff. I’m in!

  5. Sigourney Juneau

    Compaq Presario F500
    Ubuntu 14.04.

    So happy this works :)

    I installed instead of 16.04 because of this issue and a video driver issue.

    Laptop now works with this script for sleep/hibernate and Gnome shell for Graphics issues :)
    Unity doesn't load.


    It's a shame you don't have a donate button! I'd certainly
    donate to this superb blog! I guess for now i'll settle for
    bookmarking and adding your RSS feed to
    my Google account. I look forward to new updates and will talk about this site with my Facebook
    group. Talk soon!

  7. Mustafa Hashem

    Dell XPS 1640/ ubuntu 16.14
    The suspend was working perfectly before,two day ago I have notice spinning fan while lid cover is closed.

    Thanks a lo, it was very clear TUT even for a newbie like me.

  8. Adam

    Is there a way to make this all into a .sh file? Would simply making an executable file and running it using the info in Step 2 work or does it have to be in that location?

    Linux Mint 18 Cinnamon

Comments are closed.