Are you tired of having a laptop turns on randomly every time you open the lid? This feature, intended as a convenience, often becomes a source of irritation - especially if you carry the device in a bag or just want to check something on the screen without completely booting up the system. Fortunately, there are several ways to disable automatic activation when opening the lid, and we will analyze each of them in detail.
The problem is relevant for all modern laptops - from budget Lenovo IdeaPad up to bonus MacBook Pro and gaming ASUS ROG. The reasons for this behavior lie in the settings BIOS/UEFI, operating system or even in hardware features (for example, a Hall sensor in the lid). In this article you will find unique solutions for Windows 10/11, macOS and Linux, as well as instructions for working with BIOS from different manufacturers.
Why does my laptop turn on when I open the lid?
Before moving on to the solution, it is important to understand how this feature works. In 90% of cases it is to blame lid opening sensor (usually magnetic or mechanical) which sends a signal to the motherboard. The system interprets this as a command to wake up from sleep mode or turn on completely. Here are the key reasons:
- 🔹 BIOS/UEFI setup: Many manufacturers (for example, Dell, HP, Acer) activate the option
Power On By Lid Opendefault. - 🔹 Windows Power Policy: In the power settings, automatic wake-up when the lid is opened can be enabled.
- 🔹 ACPI Drivers: Incorrect operation of Advanced Configuration and Power Interface drivers (especially after updates).
- 🔹 Hardware failure: Damage to the lid sensor or shorted contacts (often after dropping the laptop).
Interestingly, on some models (for example, Microsoft Surface) this function is implemented at the firmware level and does not have a separate setting in the BIOS. In such cases, only a software solution through the OS or physically disconnecting the sensor will help (which is not recommended without experience).
- Lenovo
- HP
- Dell
- ASUS
- Acer
- Apple
- MSI
- Other
Method 1: Disable in BIOS/UEFI (the most reliable method)
Changing the BIOS settings is guaranteed to solve the problem, as it controls the hardware behavior of the laptop. However, the BIOS interface differs depending on the manufacturer. Below are instructions for popular brands.
To enter the BIOS, when booting the laptop, press:
- 🔹 Lenovo, Dell:
F2orDel - 🔹 HP, Acer:
F10orEsc→F10 - 🔹 ASUS, MSI:
F2orDel - 🔹 Apple MacBook: Hold
Option (Alt) + Command + P + Rto reset NVRAM (similar to BIOS).
| Manufacturer | Path to setup | Option to disable |
|---|---|---|
| Lenovo (ThinkPad, IdeaPad) | Config → Power |
Power On With Lid Open → Disabled |
| Dell (Inspiron, XPS) | Advanced → Power Management |
Lid Switch Wake → Off |
| HP (Pavilion, Omen) | System Configuration → Built-in Device Options |
Wake on Lid Open → Disable |
| ASUS (ROG, Vivobook) | Advanced → APM Configuration |
Power On By Lid Open → Disabled |
⚠️ Attention: On some laptops (for example, HP Spectre x360) the option may be called differently -Wake on LidorLid Open Resume. If you don't find the exact name, look for sections with words Power, Wake or ACPI.
After changing settings be sure to save the changes (usually the key F10) and reboot your laptop. If there is no option in the BIOS, proceed to the software methods.
Disconnect the laptop from charging (recommended)
Connect to an uninterruptible power supply (if available)
Remember current BIOS settings (take a photo)
Do not interrupt the process of saving settings -->
Method 2: Adjust power options in Windows
If the BIOS does not have the required option or you do not want to go there, you can change the behavior of the lid via Windows Control Panel. This method works on Windows 10 And Windows 11.
Open Control Panel → Hardware and Sound → Power Options. From the left menu select What the power buttons do, then:
- Click
Change settings that are currently unavailable(administrator rights required). - In the section
Shutdown OptionsuncheckEnable fast startup (recommended). - Find below
Action when closing the lidand set both states (on battery and mains) toDo nothing. - Save your changes.
This method does not always disable full inclusion when opening the lid, but will prevent you from getting out of sleep. To completely disable the function, you will need to edit the registry.
If after the changes the laptop still turns on, check the settings in Device Manager → System Devices → Lid Sensor. Disconnect the device (right click → Disable), but please note that this may affect the sleep function.
Method 3: Editing the Windows Registry (Advanced Users)
If the standard settings do not help, you can manually disable the reaction to opening the lid through registry editor. This method is suitable for Windows 10/11 and requires caution.
Open Registry Editor (Win + R → enter regedit → Enter) and follow the path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\ee12f906-d277-404b-b6da-e5fa1a576df5
On the right side of the window, find the option Attributes and change its value from 1 on 2. Then:
- Open
Control Panel → Power Options → Configure power plan → Change advanced power settings. - In the section
Power buttons and covera new parameter will appearAction when opening the lid. - Set it to a value
Do nothing.
⚠️ Warning: Incorrectly editing the registry can lead to system inoperability. Before making changes, create a restore point (Control Panel → Recovery → Set up system recovery).
Method 4: Disable the feature on MacBook (macOS)
On laptops Apple automatic switching on when opening the lid is controlled by firmware SMC (System Management Controller). You cannot completely disable this feature, but you can minimize its impact:
- 🔹 Disable Wake on Network: Go to
System Settings → Batteryand uncheckWake for network access. - 🔹 Reset SMC:
- Turn off your MacBook.
- Hold
Control + Option (Alt) + Shiftand press the power button for 10 seconds. - Release the keys and turn on the laptop.
sudo pmset -a womp 0
On MacBook with M1/M2 chip Resetting the SMC is not required, but you can try resetting the NVRAM:
- Turn off your MacBook.
- Hold the power button for 10 seconds.
- Turn on the laptop and immediately press
Option + Command + P + Rfor 20 seconds.
What to do if your MacBook turns on in your bag?
If laptop MacBook Pro/Air turns on in the backpack, this may be due to:
1. **Light sensor** (on some models it reacts to changes in light when the bag is opened).
2. **Press the trackpad** (in the bag, an accidental touch may be triggered).
3. **Connected accessories** (for example, Magic Mouse or USB hub).
Solution: Disconnect all peripheral devices before transporting and use a case with a rigid lid.
Method 5: Soft shutdown for Linux (Ubuntu, Fedora, Arch)
On Linux distributions, power management is done through systemd And acpid. To disable response to opening the lid:
Open a terminal and run:
sudo nano /etc/systemd/logind.conf
Find the line #HandleLidSwitch=suspend and replace it with:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
Save the file (Ctrl + O → Enter → Ctrl + X) and restart the service:
sudo systemctl restart systemd-logind
For Ubuntu with GNOME you can also use the utility dconf-editor:
- Install it:
sudo apt install dconf-editor. - Open and follow the path:
org → gnome → settings-daemon → plugins → power. - Disable the option
lid-close-ac-actionAndlid-close-battery-action.
Method 6: Physically disabling the lid sensor (as a last resort)
If software methods did not help, and the problem is critical (for example, the laptop turns on in a bag and overheats), you can physically disable the lid sensor. This method is only suitable for experienced users!
In most laptops, the sensor is:
- 🔹 Magnetic switch (there are magnets on the cover and body).
- 🔹 Mechanical microswitch (closes when closing).
- 🔹 Optical sensor (rarely, for example, in some Microsoft Surface).
To disable the sensor:
- Remove the back cover of the laptop (you will need a plastic spatula and a screwdriver).
- Find the cable that goes from the cover to the motherboard (usually labeled as
LID_SWorHALL_SENSOR). - Carefully disconnect the cable or cover the magnetic sensor with electrical tape (if it is magnetic).
⚠️ Attention: Disabling the lid sensor will deprive you of the sleep function when closing the laptop. This may also lead to loss of warranty and damage to the device if not handled carefully. We recommend this method only if other methods have not worked.
Physically disconnecting the sensor is a permanent change. Before the procedure, make sure that the problem is not solved by software and you are ready to lose the automatic sleep functionality.
Method 7: Alternative solutions (if all else fails)
If all the above methods don't work, try these options:
- 🔹 Use hibernation instead of sleep:
Hibernation (
hibernation) completely shuts down the laptop, but saves the system state to disk. To include it in Windows, run on the command line as administrator:powercfg /hibernate onThen in the power settings, set the action when closing the lid to
Hibernation. - 🔹 Disable Fast Startup:
This function in Windows may conflict with the lid sensor. Disable it in
Control Panel → Power Options → What the Power Buttons Do → Change Settings That Are Currently Unavailable(uncheckEnable Fast Startup). - 🔹 Update BIOS and drivers:
Outdated firmware or drivers ACPI may cause incorrect operation of the sensor. Download the latest versions from the laptop manufacturer's website.
For Linux you can also try a kernel with power management patches (eg linux-tkg for Arch Linux). B macOS sometimes it helps to roll back to a previous version of the system if the problem appeared after an update.
FAQ: Frequently asked questions and answers
My laptop turns on when I open the lid, even if it is turned off. Why?
This means that the function is activated at level BIOS/UEFI. The laptop not only “wakes up”, but turns on fully (same as pressing the power button). The solution is to disable the option Power On By Lid Open in BIOS (see Method 1).
After disabling the function in the BIOS, the laptop stopped going to sleep when the lid was closed. How to return?
You need to configure Windows power policy. Go to Control panel → Power → Action when closing the lid and set the value Dream for the "on battery" and "on mains" states.
On mine ASUS ROG no option Power On By Lid Open in BIOS. What to do?
Some gaming laptops (eg. ASUS ROG Strix or MSI GE76) hide this setting. Try:
- Update BIOS to the latest version.
- Reset BIOS to factory settings (
Load Default Settings). - Use software methods (registry editing or
systemdfor Linux).
Is it possible to disable the lid sensor only when the charger is connected?
Yes, in Windows this is done through Control Panel → Power Options → Change advanced power settings. In the section Power buttons and cover configure separate actions for the “on battery” and “on mains” states.
After disabling the function, the laptop became slower to wake up from sleep. Is this normal?
Yes, if you have disabled quick start or switched to hibernation, the awakening time may increase. This is due to the fact that the system completely unloads the state from memory to disk (in case of hibernation) or boots from scratch (if fast startup is disabled).