How do I keep the notebook turned on with the lid closed?

How do I keep the notebook turned on with the lid closed?

To keep a notebook turned on with the lid closed, you can adjust the power settings. Here’s how to do it depending on your operating system:

On Windows:

  1. Open Control Panel: You can search for “Control Panel” in the Start menu.

  2. Go to Power Options: In the Control Panel, search for “Power Options” and click on it.

  3. Change what closing the lid does:

On the left sidebar, click Choose what closing the lid does.

In the drop-down menus for “When I close the lid”, select Do nothing for both “On battery” and “Plugged in”.

  1. Save changes.

On macOS:

  1. Open System Settings: Click the Apple logo in the top left, then go to System Settings.

  2. Go to Energy Saver or Battery (depending on the macOS version).

  3. Enable “Prevent your Mac from sleeping automatically when the display is off”: This option keeps the system running when the lid is closed, but it requires the device to be connected to a power source.

You can also use Amphetamine (a third-party app from the Mac App Store) to keep your Mac awake with the lid closed.

On Linux:

  1. Open the Terminal.

  2. Edit the logind.conf file:

Run: sudo nano /etc/systemd/logind.conf

Find the line that says #HandleLidSwitch=suspend and change it to HandleLidSwitch=ignore.

Save the file and exit the editor (Ctrl+X, then Y to confirm).

  1. Restart systemd:

Run: sudo systemctl restart systemd-logind.

This way, your laptop will remain on when the lid is closed. :sunglasses: