4

After I close the lid of the laptop it doesn't enter in suspend mode. This happened immediately after an update of Ubuntu 18.04. I use the setting suspends when the laptop lid is closed OFF until I find a solution.

Why it doesn't suspend mode work?

Kevin Bowen
  • 19,395
  • 55
  • 76
  • 81
tt177
  • 330
  • 1
  • 3
  • 14
  • 1
    I did a new installation of ubuntu and the result is the same : suspend mode doesn't work. The login screen remains locked and i must press and hold the power button to restart the os. – tt177 Aug 05 '19 at 16:54
  • with latest update for ubuntu 18.04.3 the suspend mode is working – tt177 Feb 05 '20 at 17:28
  • same problem with Lubuntu, the screen is back after opening, I can see the processor light but the screen remains black. – user0193 Jan 04 '23 at 08:28

2 Answers2

4

In Ubuntu 18.04 Gnome desktop, there’s no option in Settings utility for configuring laptop lid close actions. And Gnome Tweaks only offer a switch to enable/disable ‘Suspend when the laptop lid is closed.

Follow the steps:

  • Open Terminal
  • Paste the following command in the Terminal sudo gedit /etc/systemd/logind.conf
  • Provide your system password if it asks.
  • Now you need to find the line #HandleLidSwitch=suspend & uncomment it (Remove the # from the beginning).
  • It will be like the below image: enter image description here

  • Save and exit the file.

  • Now restart the Systemd service using the following command: systemctl restart systemd-logind.service

That's it, This method will fix your issue.

Razor Rassh
  • 487
  • 1
  • 3
  • 13
1

I was also facing the same issue. So you may have switched to Nvidia graphics drivers. If that's the case, just switch back to Intel and restart.

Nvidia X server settings

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77