I am using ubuntu 22.04 on my dell laptop with processor intel core i3 4gb and 1tb storage.
I want to make my laptop to not suspend when I close laptop lid. I don't know how to do it.
I have used some methods but failed.
After a lot of search, I have found two methods to do it.
Method 1: Using GNOME Tweaks First we have to install gnome-tweaks-tool.
sudo apt-get install gnome-tweaks
Then open the gnome-tweaks and follow below steps:
Method 2: Change login configuration (for advanced users)
If you look into the content of the file /etc/systemd/logind.conf, you’ll see three different types of default settings for the laptop lid closing.
If you want, you can change the value of those parameters to one of these as per your preference:
I would suggest going with ignore
Then save the file do a restart.