Why does the laptop turn off when the lid is closed and how to fix it
Closing the laptop lid automatically puts it into sleep mode or turns it off completely - standard behavior intended by manufacturers. However, this is not always convenient: for example, when you connected your laptop to an external monitor, started downloading files or rendering video. In such cases you need to change the system's reaction to closing the lidto keep the device working.
The problem is relevant for all modern operating systems: Windows 10/11, macOS and distributions Linux. Reasons for automatic shutdown may be due to power plan settings, BIOS/UEFI settings, or power management drivers. In this article we will analyze unique solutions for each operating system, including hidden settings for gaming laptops and lifehacks to save battery power.
Important: Some methods require administrator rights or BIOS access. If you are using a corporate laptop, these settings may be blocked by security policies.
Method 1: Changing the power plan in Windows 10 and 11
The easiest way to disable automatic shutdown is to configure the power settings via Control panel. This method works on 90% of laptops running Windows, including models Dell XPS, HP Pavilion And Acer Swift.
Instructions:
- Open
Control Panel → Hardware and Sound → Power Options. - Click
Setting up the power plannext to the active scheme (for example, "Balanced"). - Select
Change advanced power settings. - In the section
Power buttons and coverfind the itemAction when closing the lid. - Set to Options
On batteryAndFrom the networkmeaningNo action required. - Save changes with the button
Apply.
If item No action required is not listed, it means your version of Windows or power management drivers do not support this option. In this case, try updating the chipset drivers via Device Manager or the laptop manufacturer's website.
- ASUS
- Lenovo
- HP
- Dell
- Acer
- MSI
- Other
Method 2: Setting up BIOS/UEFI for gaming laptops
On gaming laptops (MSI GE76, ASUS ROG Strix, Lenovo Legion) a common problem occurs: even after changing the Windows settings, the device still turns off when the lid is closed. This is due to settings in the BIOS that override the behavior of the OS.
To change them:
- Reboot your laptop and enter the BIOS by clicking
F2,DelorEsc(depending on the model). - Find a section
AdvancedorPower Management. - Look for options like:
- 🔹
Lid Close Action→ installDo Nothing - 🔹
After Power Failure→ selectStay Off(if any) - 🔹
ErP/EuP Ready→ disable (Disabled)
- 🔹
F10) and reboot.⚠️ Attention: Incorrect BIOS settings can cause the laptop to overheat when the lid is closed. Make sure the cooling system is working properly, especially on gaming models with powerful graphics cards (NVIDIA RTX 30/40 series).
What to do if the BIOS does not have the necessary settings?
On some laptops (eg Apple MacBook or Microsoft Surface) access to power settings through the BIOS is limited. In this case, the only software solution left is to use the manufacturer’s utilities (for example, MyASUS or Lenovo Vantage) or third party tools like PowerToys from Microsoft.
Method 3: Command Line for Advanced Users
If the GUI does not allow you to change settings, you can use command line (CMD) or PowerShell. This method is suitable for Windows 10/11 Pro and corporate editions, where group policies restrict access to the control panel.
Run the following commands in order:
powercfg /setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
powercfg /setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
Command decoding:
- 🔹
SCHEME_CURRENT— current power supply scheme. - 🔹
4f971e89-eebd-4455-a8de-9e59040e7347— GUID of the “Action when closing the lid” parameter. - 🔹
0— value "No action required".
After running the commands, restart your laptop. To return to default settings, replace 0 on 1 (sleep) or 2 (hibernation).
If the commands do not work, check the current power supply via powercfg /list and replace SCHEME_CURRENT on her GUID.
Method 4: Set up macOS (MacBook Pro/Air, iMac)
On laptops Apple The power management logic is different. There is no classic BIOS here, and the settings are hidden in the system parameters. To MacBook did not turn off when closing the lid, you need to:
- Connect an external monitor via
USB-C/ThunderboltorHDMI. - Open
System Settings → Battery. - Uncheck the box
Put the display into sleep mode when connected to power. - In the section
FoodinstallNeverfor parameterTurn off display when idle.
Feature macOS: Even after these settings, the laptop may overheat when the lid is closed. To avoid this, use external keyboard and mouse - this will reduce the load on the system.
| MacBook model | Does it support operation with the lid closed? | Recommendations |
|---|---|---|
| MacBook Air (M1/M2) | Yes, with external monitor | Use an adapter USB-C → HDMI with support 4K@60Hz |
| MacBook Pro 13" (2020 and newer) | Yes, but may overheat | Install the utility Macs Fan Control for manual fan control |
| MacBook Pro 16" (Intel) | Yes, without restrictions | It is recommended to connect to a 220V network for stable operation |
| iMac (all models) | No (no cover) | — |
Method 5: Linux (Ubuntu, Fedora, Mint) - editing configs
In distributions Linux power management is implemented through daemons systemd And logind. To disable the reaction to closing the lid, you need to edit the configuration files.
Steps for Ubuntu/Debian:
- Open a terminal and run:
sudo nano /etc/systemd/logind.conf - Find the line
#HandleLidSwitch=suspendand uncomment it, replacing it with:HandleLidSwitch=ignore - Save the file (
Ctrl+O) and restart the service:sudo systemctl restart systemd-logind
For Fedora/RHEL Additionally, you may need to disable gnome-settings-daemon:
gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing'
⚠️ Attention: On some distributions (for example, Arch Linux) After these changes, adjusting the screen brightness may stop working. To fix this, install the packageacpilightorlight.
Method 6: Third-party utilities for advanced management
If standard methods do not work, you can use specialized programs. They offer flexible power settings, including control of the lid, temperature settings and even overclocking.
Top 3 utilities:
- 🔧 ThrottleStop (for Windows) - allows you to disable the response to the lid and configure the TDP of the processor. Suitable for Intel Core i5/i7/i9.
- 🔧 Macs Fan Control (for macOS) - controls the fans when the cover is closed, preventing overheating.
- 🔧 TLP (for Linux) - optimizes energy consumption and manages lid events via the console.
Setting example ThrottleStop:
- Download the program from the official website TechPowerUp.
- In the section
OptionsuncheckLid Close Action. - Save the profile and add the program to startup.
Download latest version from official website|
Disable antivirus during installation|
Create a Windows restore point|
Check CPU temperature via HWMonitor-->
Method 7: Hardware solutions for continuous operation
If software methods do not help or you need the laptop to work with the lid closed constantly (for example, as a server), consider hardware solutions:
- 🖥️ Docking station (For example, Dell WD19 or HP Thunderbolt Dock) - allows you to connect external monitors, keyboard and power, leaving the lid closed.
- 🔌 Lid lock - a physical device that prevents the lid from closing completely (suitable for Lenovo ThinkPad And HP EliteBook).
- 🌡️ Cooling system - If the laptop overheats, use a USB-powered cooling pad (for example, Cooler Master NotePal X3).
For server tasks (mining, hosting), it is better to use laptops with processors Intel Xeon or AMD Ryzen PRO — they are optimized for long-term operation under load. Avoid gaming patterns (ASUS TUF, MSI Katana) - their cooling systems are not designed to operate 24/7 with the lid closed.
To constantly operate the laptop with the lid closed, be sure to disable the option in the BIOS Intel SpeedStep or AMD Cool'n'Quiet - this will prevent processor throttling.
FAQ: Frequently asked questions and answers
Is it possible to leave a laptop with the lid closed all night?
Yes, but only if:
- 🔋 The laptop is connected to the network (not running on battery).
- 🌡️ CPU temperature does not exceed 70°C (check through HWMonitor or Core Temp).
- 🖥️ An external monitor is used (the built-in display is disabled).
For MacBook and laptops with OLED screens (For example, Dell XPS 13) Working for a long time with the lid closed may cause pixel burnout.
Why does my laptop turn off when I close the lid even if I changed the settings?
Possible reasons:
- 🔄 Driver conflict - update chipset and power management drivers via Device Manager.
- 🔒 Group Policies (in corporate Windows) - check via
gpedit.msc. - 🔧 BIOS Settings - some manufacturers (for example, HP) block changes to the cover parameters at the firmware level.
Solution: Try resetting the BIOS to factory settings or updating it to the latest version.
How can I check if my laptop can work with the lid closed?
Verification methods:
- Run
PowerShelland do:Get-CimInstance -ClassName Win32_PortableBattery | Select-Object *Look for the parameter
BatteryStatus- if it is equal1, the laptop supports flexible power settings. - Check the documentation on the manufacturer's website (section
Power Management). - Install the utility HWiNFO and look at the section
ACPI- there should be pointsLID0orLID1.
What should you do if your laptop overheats when the lid is closed?
Recommendations:
- 🌀 Install the fan control utility (SpeedFan for Windows, smcFanControl for macOS).
- 🛠️ Clean the cooling system from dust (especially important for MSI And Gigabyte).
- ⚙️ Lower the maximum processor frequency in BIOS (
CPU RatioorTurbo Boost). - 💻 Use a cooling pad with additional fans.
The critical temperature for most processors is 90°C. If this value is exceeded, the laptop may shut down immediately.
Is it possible to disable the reaction to the lid only when connected to a docking station?
Yes, but it requires additional settings:
- B Windows create a separate power plan for the docking station via
PowerShell:powercfg /duplicate scheme SCHEME_BALANCED - Set up a new scheme so that when connected to a docking station (
Docked) the cover was ignored. - Use AutoHotkey to automatically switch schemes when connecting/disconnecting a docking station.
On macOS this is done through Automator or utility BetterTouchTool.