Ubuntu – How to get suspend working on an HP DV4T

suspend

Suspend doesn't work on my laptop. When the laptop tries to suspend, the screen turns off briefly, some system-looking text appears for a bit, the screen turns off again, then the screen turns back on and I am at a locked-screen prompt.

I tried:

  1. The suspend button on the unity menu
  2. sudo pm-suspend
  3. sudo acpitool -s
  4. dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
  5. Deleting /etc/pm/sleep.d (as suggested here)
  6. sudo modprobe -r tpm_tis
  7. Modfying /proc/acpi/wakeup to switch everything but the power button to disabled.
  8. Putting SUSPEND_MODULES="alx" into /etc/pm/config.d/modules
  9. Writing a script that forces the graphic card to reboot itself using a "kick" from chvt1 and chvt7 and putting it in /etc/pm/sleep.d/20_custom-ehci_hcd (@Sushantp606's answer below)
  10. Trying the same thing as #9 in a different way (the third part of @Sushantp606's answer below)
  11. sudo s2ram

    This kernel doesn't have KMS support. Machine is unknown. This machine
    can be identified by:
    sys_vendor = "Hewlett-Packard"
    sys_product = "HP Pavilion dv4 Notebook PC"
    sys_version = "F.24"
    bios_version = "F.24"

None of these solved the problem. #9 changed the behavior a little (it cycled more quickly between trying to go to sleep and waking up).

Any suggestions what I can look at doing next?

Best Answer

This page may help: https://help.ubuntu.com/community/SwapFaq

Hibernation (suspend-to-disk) The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition before turning off the machine. Therefore, your swap partition should be at least as big as your RAM size. The hibernation implementation currently used in Ubuntu, swsusp, needs a swap or suspend partition. It cannot use a swap file on an active file system.

Related Question