How do I stop my laptop from automatically suspend when I close the lid?

How do I stop my laptop from automatically suspend when I close the lid?

Stop the computer from suspending when the lid is closed

  1. Open the Activities overview and start typing Tweaks.
  2. Click Tweaks to open the application.
  3. Select the General tab.
  4. Switch the Suspend when laptop lid is closed switch to off.
  5. Close the Tweaks window.

How can I tell Ubuntu to do nothing when I close my laptop lid?

To make Ubuntu do nothing when laptop lid is closed:

  1. Open the /etc/systemd/logind.conf file in a text editor as root, for example, sudo -H gedit /etc/systemd/logind.conf.
  2. If HandleLidSwitch is not set to ignore then change it: HandleLidSwitch=ignore.

How do I keep my laptop on when I close Linux?

Go to System Settings and then click on Power. In the power setting, make sure that option for ‘When the lid is closed’ is set to Suspend. If you had a different setting here, you should check if you are able to suspend Ubuntu by closing the lid. If not, then follow the workaround in the next section.

Does laptop sleep when lid is closed?

By default, most laptops automatically go into sleep mode when you close the lid. This is usually great, as most of us shut our laptops, throw them into our bags, and then expect them to be running in an instant when we get them back out at the next stop.

How to suspend on lid close in Debian?

Suspend on lid close. In order to trigger suspend on closing the lid, make sure that there is a line in /etc/systemd/logind.conf that reads HandleLidSwitch=suspend, and that it is not commented out (prefixed with #). The default values are : HandleLidSwitch=suspend.

How to enter suspend mode in Debian Linux?

Now you should be able to enter suspend-mode, either by closing the lid, or via systemctl suspend, and have the system suspend immediately, and be ready to wake up quickly for 5 minutes (300 seconds). After that time, the system should briefly wake up on its own, and immediately hibernate.

Why does my laptop stop working in Jessie?

I have a HP15 r007TX laptop with Debian 8 (Jessie) installed. Whenever I close the lid and then reopen, the laptop stops working. It get’s stuck showing a blank screen. From there nothing happens and I have to hard reboot it. I even changed the setting to do nothing when laptop lid is closed and still have the issue.

Why does my laptop stop working after closing the lid?

Or better restart logind service: Do a search search under “power”. Go to Power Management. Look for “when the lid is closed”. You can try installing laptop-mode-tools if you haven’t done so before. I had the similar issues with my MBR.