This question already has an answer here:

How can I set Hibernation in Ubuntu 18.04 LTS (laptop)?

When I open the Power option > When the Power Button is pressed, I just see the following options:

  • Suspend
  • Power OFF
  • Nothing

But does not show Hibernate.

marked as duplicate by K7AAY, Eric Carvalho, Pilot6, user535733, Kevin Bowen Jun 7 '18 at 22:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Follow this guide- ubuntuhandbook.org/index.php/2017/10/… – HattinGokbori87 May 3 '18 at 18:01
  • 5
    Voting to reopen since in 18.04 things have changed. The pm-utils package is obsolete and power management is now handled by systemd. – psusi Jul 11 '18 at 20:50
  • 2
    @psusi and doesn't the linked post have the systemd solution as well? – muru Jul 12 '18 at 4:10
 1. Before you click "Power Button" - press "Alt" 
 2. Click "Power Button" and hold it.
  • 1
    Why was this reply down voted? I "plussed" it because it is the simplest answer and it answers the question. By pressing Alt the Power button changes to a "Pause" button; click it again, the computer goes into hibernation. – Norm C. May 13 '18 at 16:39
  • 11
    This is a good trick to know, but this does not hibernate (suspend to disk) but instead puts the computer to sleep (suspends to RAM) – B T May 27 '18 at 4:02
  • This may not answer the question as asked, but compared to the true answers (enabling hibernate in Ubuntu 18.04 is complicated!) it's a partial solution and it's simple. – robm Jun 1 '18 at 23:40
sudo systemctl hibernate

This did not work for me. I try pm-hibernate which did not work for me either until I added missing package uswsusp

sudo apt install uswsusp  
  • What did not work? The blogpost suggestion? If you meant this, then I can confirm it didn't work, though I followed the procedure. Any idea, what went wrong? – Semo Jun 14 '18 at 4:55
  • 1
    hibernate command was acting like shutdown for me, no windows restored. Then I installed uswsusp and hibernate worked for me just once. Now I see the option in action for power button press and set it too. But now again hibernate acts like shutdown. – Mr.Hunt Nov 11 '18 at 8:40

Use this, it is more recent. It worked for me with a new 18.04 install on my laptop. http://ubuntuhandbook.org/index.php/2018/05/add-hibernate-option-ubuntu-18-04/

Also, check that you have a swap file before you start. You should have one by default. Run

swapon --show

to check.

Not the answer you're looking for? Browse other questions tagged or ask your own question.