2

I am working with a HP Zbook 15 Workstation with Ubuntu 18.04 installed. When I close my laptop lid the screen goes black but doesn't suspend. When I open it again I don't have to login or anything.

I have tried many things including editing /etc/systemd/logind.conf and installing gnome tweaks and selecting "suspend when laptop lid is closed" but nothing works.

If anyone has any ideas please let me know. Thanks.

  • what is your RAM size? – George Udosen Aug 9 at 17:27
  • It is 16 Gigabytes – R Doyle Aug 9 at 17:28
  • And your swap size? – George Udosen Aug 9 at 17:29
  • The swap is 2 GB, I believe – R Doyle Aug 9 at 17:30
  • Normally it should be half the size of the RAM, perhaps that should be the first step! – George Udosen Aug 9 at 17:32
2

After trying varies things I found that adding acpi=force to the line GRUB_CMDLINE_LINUX_DEFAULT= in /etc/default/grub did the trick.

So for anyone running Ubuntu 18.04 on a HP Zbook v15 use:

sudo gedit /etc/default/grub

and change the line that reads GRUB_CMDLINE_LINUX_DEFAULT= to:

GRUB_CMDLINE_LINUX_DEFAULT="acpi=force"

  • I make your ttitle more detailed to help others with same laptop. Please remember to click grey check mark next to your answer so others know it works. – WinEunuuchs2Unix Aug 9 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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