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

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

  1. manfaat binahong

    What you wrote made a bunch of sense. But, what about this?
    suppose you added a little information? I mean,
    I don't want to tell you how to run your blog, but what if you added something to maybe get folk's attention? I
    mean Fix Ubuntu (or Linux) Suspend/Hibernate Not Working Bug
    | Code Central is kinda plain. You should look at Yahoo's front page
    and see how they create news headlines to get viewers interested.
    You might add a video or a pic or two to grab people
    interested about everything've got to say. In my opinion, it could
    make your blog a little livelier.

  2. buko

    Good job!

    Script is grate for Fedora 19 ×86_64.
    Now suspend to RAM is working fine.
    Lenovo Ideapad Y550 (with nvidia drivers)

  3. zebulon

    I'm on Debian 8 (Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) x86_64 GNU/Linux).

    This script cannot solve this suspend/hibernate problem (on my Debian 8, neither suspend nor hibernate awake corectly) because I have not the driver paths given in your script(s) :

    $ ls /sys/bus/pci/drivers

    So, how to adapt the script(s) for a Debian 8 ?

    Best regards.

  4. zebulon

    I think I should added these :

    [Desktop-PC / Debian 8 "Jessie"]

    Motherboard : ASRock P55-Pro
    CPU : I5-750
    RAM : 4 GB
    Vidéo : NVIDIA GTS-250 (1 GB Video RAM)

    + a few hard disks (PATA & SATA)

  5. Matthew

    Thanks for the script - got my Linux Mint 17.1 hibernation working again after a package update broke it. Thanks!

  6. Alejandro

    It works like a charm on a fresh install, Ubuntu 14.04. My macine is a Dell Inspiron 5737.

    Thanks a lot!

  7. Pingback: Thinkpad does not wake from sleep - 14.04 - TecHub

  8. JLoButADude

    Thanks for this script! I put this in Linux Mint 17.2 on a Lenovo IdeaPad S12. I had drivers named 'ehci-pci' and 'ohci-pci' rather than 'ehci_hcd' and 'xhci_hcd'. I had to make the following changes:

  9. Pingback: Ubuntu:laptop screen goes blank after waking from sleep – Ubuntu Linux Questions

  10. Kala

    Link exchange is nothing else however it is
    just placing the other person's blog link on your ppage
    at suitable place and other person will also do same in support of you.

  11. phuquoc island city

    The oddly shaped Dinh Cau Rock at the mouth of the Duong Dong
    River is the symbol of Phu Quoc and is a sacred, holy place.
    Travelers who know the Thai islands Ko Samui and Phuket often comment: "The island of Ph Quốc is still natural and untouched like Ko Samui 10 years and Phuket 20 years ago".
    At the opposite end of the country the Mekong River concludes its 3,050 mile journey from the Himalaya in a tangled mass of tributaries covering 15,
    000 square miles, creating a watery network through rich farmland.

  12. Pingback: Ubuntu:Machine freezes after a period of inactivity – Ubuntu Linux Questions

  13. Tonja

    Click here to read a detailed article on ship to shore power.
    Upon knowing the fuel oil consumption for a day and the next voyage plan, the quantity
    of fuel oil required is calculated and compared with the available bunker tank capacity.
    If that is where your primary interest lies, you'll
    do better if you stick to buying your books at online or brick-and-mortar stores.

  14. Catalina

    go to Settings >> General >> About and there is an update to the caierrr settings for Telecom taking it to 11.1 which fixes the contacts bug. It was always a caierrr bundle issue that has now been fixed. Nothing to do with Apple. Nothing to do with Apple is incorrect. Apple host the caierrr bundles on their servers and it is up to them to sign and push them out the caierrrs have no control over this. It isn't like a SIM update that can be pushed OTA.What is interesting (and I didn't know before today) is that Telecom have their own caierrr bundle despite not being an official caierrr. I wonder how they managed that. 2degrees do not appear to have this.Right so names matching and personal hotspot is now fixed. Just the APN menu to go and we'll be back to 4.3 functionality again.(rdw11 has made 15 comments)

  15. Simon

    You can rest assured there were APN stgitnes available in the previous version of the carrier bundle otherwise you would have no data connection on your iPhone at all The APN stgitnes field is just handy to tinker with and to give you the flexibility to choose what flavor of internet you use on your device.WAP, internet or direct all have their own characteristics that can be of interest depending on your particular use case.No biggie, I am just glad everything works as I expect it to (bengels has made 2 comments)

Leave a Reply

Your email address will not be published. Required fields are marked *