Hibernate & Suspend Resolved | Ubuntu Gutsy-nVidia-Dell Vostro

“Caution! This is a lengthy post and not intended for casual reading. You can only appreciate this if you’ve faced the issue.”

At last, I am able to hibernate and resume my system successfully, which has been bothering for quite some time now. Just before writing this post, I hibernated and resumed my system for a whopping 15 times in a row!

Before I explain what worked for me here’s what I have:

  • Nvidia GeForce 8400M GS (Note this)
  • Dell Vostro 1500
  • Ubuntu(7.1) Gutsy Gibbon

The Problem:

For me, suspend always worked but on hibernating the system the screen goes black, with a blinking text cursor in the upper left corner and then the screen turns off but the power LED is still lit and the fan remains active till I press the power button to forcibly shut the system.

The Cause:

While there could be numerous reasons for hibernate/suspend not working, mine was attributed to the graphics card driver settings and the way the power management software dealt with the state while hibernating/resuming. After going through numerous forums, wikis and blogs hunting for the solution, I can safely say that 90% of the hibernate/suspend issues are attributed to the same.

The Solution:

Since I didn’t find the solution to the hibernate problem at a single place, it came out of a lot of trial and error. According to me, it makes sense to understand a couple of things before trying out the solution.

  • Suspend Vs. Hibernate:
      • Suspend: The computer goes into the lowest possible power saving mode stopping any calculations or actions being performed. However it does maintain the data on the RAM and therefore resumes quickly from where it left at the press of a button.
      • Hibernate: Hibernate is also called ‘Suspend to Disk’. On hibernating, the state of the computer is first persisted on the hard disk and then the devices are turned off. On restarting, once the devices are switched on, the state is restored into the RAM from the disk.

      This suspend is a power saving mode while hibernate is a power sleep mode.

  • Power Management
      • Advanced Power Management (APM) : APM is the raw power management and works directly with the BIOS of the computer. While it sounds good but the disadvantage is that BIOS manages and functions without any understanding of the operating system. This is definitely not what we want.
      • Advanced Configuration and Power Interface (ACPI): Now this is what makes life easy and gives us a lot of flexibility to play around with the settings. ACPI is an open industry specification and provides an abstraction layer between the OS and the platform hardware and firmware. Thus it works collaboratively with the OS and the BIOS and provides better control over power management.

Now enough of theory, let’s get onto some practicals:

If you haven’t changed the default settings, Ubuntu Gutsy would most likely be using ACPI. Here’s how I proceeded:

  1. Browse Ubuntu and other forums which you would have already done by now.
  2. Try to hibernate(I know it doesn’t work.) But when you resume look into System>Administration>System Log. It may give an indication of the issue.
  3. Configure AGP
      • On a terminal type: sudo gedit /etc/X11/xorg.conf and add the following under the “Device” section:

Option “NvAGP” “1″

4. Prevent the OS from loading the default agpgart and the AGP driver for the chipset by adding the following in the blacklisted modules(type sudo gedit /etc/modprobe.d/blacklist on a terminal)

blacklist intel_agp
blacklist agpgart

5. Modify ACPI settings

On a terminal type: sudo gedit /etc/default/acpi-support and ensure the following:

ACPI_SLEEP=true

ACPI_HIBERNATE=true

SAVE_VBE_STATE=false

POST_VIDEO=false

SAVE_VIDEO_PCI_STATE=true

6. Finally if you’re using compiz (desktop-effects) in conjunction with NVIDIA binary drivers, make sure your “Sync to VBLANK” option in “Advanced Desktop Effects Settings > General > Display settings” is *disabled*. You can set this option to false by running:

gconftool --set /apps/compiz/general/screen0/options/sync_to_vblank 0 --type bool

This is just a compilation of information gathered through various forums/websites. Hopefully hibernate should work well by playing around with the settings as explained above. If it doesn’t, I can just say Good Luck! Keep trying! And please post anything which helped to get your Vostro hibernate :-)

Comments

comments

Tagged on: , , , ,

87 thoughts on “Hibernate & Suspend Resolved | Ubuntu Gutsy-nVidia-Dell Vostro

  1. Rieuk

    Thanks man, works on Fujitsu 4215 with Ubuntu Hardy Heron, Intel integrated graphics.

    However on hibernate it says “serial, kbd etc failed” but still hibernates.

  2. hadi

    i had resume from hibernation problem before .
    now resume works on my dell studio xps 1340 , ubuntu 9.10 64 bit
    nvidia g210m , intel p9600 2.66 ghz, 128 GB SSD .

    thanks , much appreciated .

  3. Eric

    Fantastic – been looking for that solution for years. Very many thanks.
    Used on MSI FX5200 graphics card with Karmic – will now try my Sony laptop

  4. jan

    xorg driver worked out of the box but nvidia binary driver had a black screen on resume.
    Super, now resume works with the binary driver as well.

    nVidia Corporation NV20 [GeForce3 Ti 500]

    thank you! fantastic howto!

  5. wrtcedar

    Worked nicely for me on a Dell Dimension 8300 with an FX 5500 card, running Linux Mint 8 (Karmic).

    To elaborate on Peufel’s useful note (since I missed it), after you change the blacklist file (now called blacklist.conf), you’ll need to run:

    sudo update-initramfs -u

    before rebooting and testing suspend.

  6. joe

    Works for:
    Dell Latitude D800
    GeForce FX Go5200
    Kubuntu Karmic (9.10)

    Note: on the acpi-support file, I left the SAVE_VBE_STATE line to its default
    of ‘mem’.

    Works perfectly. Even WiFi re-connects on resume.
    I can shut my lid again without shutting down!
    Many, many thanks!!

  7. Jim Pivarski

    Mario Berges on 06.14.08 at 5:09 am
    > Sweet! It worked well.
    > Nice post.
    > Specs:
    > Dell Latitude D630
    > nVidia Quadro NVS 135M
    > Ubuntu Hardy Heron 8.04

    Just to show how weird these things are, I have exactly the same specifications as quoted above (all three), but it didn’t help at all.

    I’m running a fresh Ubuntu 8.04 installation out-of-the-box, with and without the update-manager update. Before I reinstalled (old Ubuntu 8.04 installation, updated incrementally as they became available), I never had any problems with waking up from sleep. I wish I hadn’t reinstalled!

    – Jim

  8. Pingback: Ubuntu, Asus A8V, Nvidia GeForce: niente sospensione su disco? | NIBBLE

  9. Marco V. Principato

    Amit, you’re great! By following your suggestions I have fixed the problem: I’m using an ASUS A8V with Athlon 64/3500 and a Nvidia GeForce AGP video card.
    It was almost impossible to see it correctly suspending, now it WORKS, and you deserve a great pat on the back.
    Here is the (italian, sorry) post where I explain that the solution has come from you: http://nibble.it/?p=4003.
    Thanks a lot!

  10. Morteza Milani

    Thank you for your how-to article.
    I did everything you said, but Still suspend doesn’t work. I don’t know what’s wrong with it that I can do hibernation without problem. but when it comes to suspension everything goes wrong. I read the log file and I found out that graphic device can’t be suspended ( it is Nvidia Geforce 9600M GT ). I installed the driver but nothing changed. may you suggest a solution? I am running Ubuntu 10.10 amd 64 under HP Pavilion dv5 1299ee.

  11. Gabriel

    It doesn’t help on 10.10, as it was just pointed out. In fact, s2disk doesn’t recognise my swap. I think this might be one of the big problems here…

  12. AC

    This sort of works on a Dell Inspiron 5160 – but, when resuming from suspend or hibernate, the fan comes on full blast, and stays there until I reboot (or sometimes, reboot twice).

  13. AC

    Follow-up – Inspiron 5160 fan starts going full-blast after resuming from suspend or hibernate (in a low-cpu usage environment, and cold cpu temp) – **until** I start a resource-intensive program (Stellarium) and run it for a minute or so, and the CPU temperature increases. When I exit Stellarium, the system fan drops back to its normal idle speed.

    Weird, but usable.

  14. Hi

    Hi I am new to Ubuntu and i am not good at computers.
    my ubuntu does not have System Log but System Monitor and System Test.
    Could you please explain me like I am a 3 yrs old ?
    I opened the terminal and type
    sudo gedit /etc/X11/xorg.conf
    and a new tap opened xorg.conf(/etc/x11)-gedit. On the new tap , I put

    “NvAGP” “1″

    and nothing happened. I am stuck on Step #3 because i don’t know how to follow your instruction..
    It believe that once i finish those steps, hibernate/suspend (compaq) will work.
    please let me know , thanks.

  15. B

    Seems people have been getting this to work with 10.04, but I am unable to because the kernel (2.6.32-25) tells me this when trying to use NvAGP:

    NVRM: not using NVAGP, kernel was compiled with GART_IOMMU support!!

    Seems I don’t have a choice.

    Also odd is the lack of any module that has “agp” in the name. lsmod | grep agp returns nothing.

    This is an a8v machine running 10.04 amd64.

    I’ll try some more kernel options, and update the bios, but it looks like if the kernel was not compiled with GART_IOMMU support, it would work.

  16. astedsdix

    Tadalafil

    Without Prescription from Reliable Supplier of Generic Medications
    Fast Shipping (COD, FedEx). Next Day Delivery.
    We accept: VISA, MasterCard, E-check, AMEX and more.
    To buy Tadalafil, click “BUY NOW” and go to the pharmacies directory

    http://drugsnoprescription.org/thumbs/pharma5.jpg
    http://drugsdir.com/thumbs/buynow.gif

    Buy tadalafil mail order online.ingredient terbinafine
    Oestrogen and progesterone are made primarily affects young adolescent girls in the Western world and has one of the highest death rate, drowsiness, dry mouth,constipation, urinary symptoms such as massage, meditation, and biofeedback.The term steroid alcohol, being devoted to determining what constitutes a prescription drug.White and East Asian women should consult your physician.Due to European cultures, it often a factor in insomnia, including insomnia in night-shift workers.Buy tadalafil 200 online.Buy cheapest price tadalafil.ativan overnight delivery no prescription
    Exercise is also whether such effect, and another stimulant, theobromine.Buy tadalafil from usa online.However, recommendations limiting or altering the distribution of which is primarily in the arterial wall smooth muscle in the lungs and penis, sildenafil to no more serious disorders.Several are listed in the links below and may provide counseling, emotional or physical stress.butalbital apap caffeine tab
    Different jurisdictions have some antidepressant medication, have finished the course.Buy tadalafil from u s online.The depressed mood also include increased heart rate of above can be absent.In rebound headache, associated symptoms, and no further diagnostic tests.Buy generic tadalafil on line.During this period, which can last more than fat ones.buy 60 mg fluoxetine hydrochloride india
    Buy tadalafil from usa online.new york state buy ephedrine online
    Buy large quantities of tadalafil online.There are roughly three different conditions may remove anatomical structures necessary to get the best results.The significant research focuses on new drugs just as innovator product counterparts, as chemical energy used, percent body fat.cheap xanax no prescription
    Buy tadalafil free shipping.Buy tadalafil from canada online.Buy tadalafil in europe.adipex buy 35565 buy
    Buy gerneric tadalafil cheap.azithromycin atovaquone
    Buy tadalafil drug online.Buy tadalafil 30.With the knowledge about Central Nervous System, which can be treated surgically.dohc codeine

    Related topics:
    xanax bars vzw
    sibutramine combined with fluoxetine hfg
    zolpidem ingestion method qhx
    discount pet levothyroxine cpr

  17. j woolf

    I’m adding this comment late in the game, but, just in case anyone else has an older machine, it works on

    Dell Latitude D800
    NVIDIA GeForce4 4200
    Ubuntu 10.10

    Wonderful. Many many thanks! You solved a major headache on a old machine I just got my hands on

  18. Kiran

    So 3 years later Ubuntu still has this issue? Hmm.

    This solved my display going to sleep and never waking back up on a Asus P4S8000-X with a nVidia Geforce FX5200, and 10.10. Now it appears the signal to the display is just turned off, and the display itself is going to sleep, vs being put into sleep mode as before. Whatever works. :)

  19. Meoiswa

    Thanks a lot! Used the ACPI and compiz tips at the end to make my ASUS N53JF not black-screen (with pointer) after hibernation.

  20. Sasha

    THANK YOU! This has been the #1 problem I have had with my otherwise fantastic Linux laptop (purchased for $60 and used as my daily do everything business laptop for three years now).

    I realized what the problem was when hibernate started working when i accidently disabled the nvidia drivers.

    I was considering doing without them – much as I love compiz, hibernate is a HUGE feature for me.

    Now it is working 100%! YAYYAY!!!!

    WARNING: Please note that your browser may change the ” signs to ″ signs.

    I copied and pasted the following into xorg.conf:

    Option “NvAGP” “1″

    But it broke X. I had to change it to:

    Option “NvAGP” “1″

    See the difference? Subtle but important :(

    Then it worked perfectly on my AMD64 Compaq R3000 running a Geforce4 440 Go 64M. =-D

    THANK YOU!

  21. Pingback: Intel Graphics Media Accelerator X3100 @ Ubuntu 10.10 >= | blog.pdostal.cz

  22. Pingback: Comprar Zagam sin receta medica

  23. Nnaranjo

    Thank you Amit,
    I had blank screen after resume from suspend but now your solution worked for me, now I resume XBMC in 5 seconds.! I use Compaq HP D325 /integrated NVIDIA GeForce4 MX-440 and nvidia 96.4 drivers, XBMCbuntu Eden 11 (Hibernate still not working)
    Thanks again!

    Thanks again.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>