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?
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?
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:
sudo gedit /etc/systemd/logind.confSave and exit the file.
systemctl restart systemd-logind.serviceThat's it, This method will fix your issue.
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.
I had to do: HandleLidSwitch=ignore HandleLidSwitchDocked=ignore sudo systemctl restart systemd-logind
This means do nothing when lid is closed