The laptop thinks the lid is shut
Why does my laptop think the lid is closed when it is open?
Written by The CommonFixes team · fact checked by CommonFixes review desk
Last updated
Short answer
Laptops do not have a switch under the lid any more. They use a small magnet in the lid and a magnetic sensor in the base, so anything magnetic near the palm rest, or a sensor that has drifted, tells the computer the lid is shut. The other common cause is a firmware or driver mix up after an update, where the lid event is reported once and never cleared. The quickest thing to try first: move every magnet away from the palm rest — Magnetic phone holders, a phone on a magnetic case, a tablet cover, magnetic earphones, a speaker and even a wristband clasp will all trigger the sensor when they sit near the front edge or the speaker grille. Clear the desk, move the phone half a metre away and open the lid again. This is far and away the most common cause. Most people are done in about 15 minutes.
Full walkthrough below: 6 steps for Windows and Mac, rated medium.
Sounds like this
- •The screen goes black seconds after you open the lid
- •It sleeps whenever you tilt the screen back
- •An external monitor keeps working while the built in screen stays dark
Why it happens
Laptops do not have a switch under the lid any more. They use a small magnet in the lid and a magnetic sensor in the base, so anything magnetic near the palm rest, or a sensor that has drifted, tells the computer the lid is shut. The other common cause is a firmware or driver mix up after an update, where the lid event is reported once and never cleared.
Work through these in order
0% done- 1
Move every magnet away from the palm rest
Magnetic phone holders, a phone on a magnetic case, a tablet cover, magnetic earphones, a speaker and even a wristband clasp will all trigger the sensor when they sit near the front edge or the speaker grille. Clear the desk, move the phone half a metre away and open the lid again. This is far and away the most common cause.
- 2
Tell Windows to do nothing when the lid closes
This stops the symptom immediately while you look for the cause. Open Control Panel, Power Options, Choose what closing the lid does, and set Do nothing for both On battery and Plugged in. The screen stays on even when the sensor is fooled, so you can keep working.
- 3
Drain the residual power to reset the sensor
Shut the laptop down, unplug the charger, remove the battery if it comes out, then hold the power button for thirty seconds. Put everything back and start it. This clears the stored power state that keeps the false lid closed event alive, and it is the step laptop makers give first for this fault.
- 4
Update the firmware and the chipset driver
Go to your model support page and install the latest BIOS or UEFI firmware along with the chipset and Intel Management Engine drivers. Several models had a firmware bug that reported the lid as closed after waking, and the fix ships in firmware, not in Windows. Keep the charger plugged in for the whole firmware update.
- 5
Mac: reset the system controller and check for a magnetic case
On an Apple silicon Mac, shut down fully, wait thirty seconds and start again, which resets the controller. On an Intel Mac, shut down and hold Control, Option, Shift on the left side with the power button for ten seconds. Also check for a magnetic laptop stand or an iPad sitting beside the trackpad, because those set off the sleep sensor in exactly the same way.
- 6
Check the sensor with a small magnet
With the laptop on and the lid open, slide a fridge magnet slowly along the front edge and the bezel. When the screen sleeps, you have found the sensor position, which tells you which spot to keep clear. If the screen never sleeps during that test, the sensor is dead in the on position and needs replacing rather than avoiding.
If none of that worked
If the screen still switches off with nothing magnetic nearby and current firmware installed, run powercfg /lastwake in Command Prompt after it happens, then look in Event Viewer under Windows Logs, System around the same time. When those name the lid or the button device rather than a driver, the sensor board has failed and a service centre can replace it. Setting the lid action to Do nothing is a safe way to keep working until then.
Did this fix work for you?
A quick thumbs up helps other readers find the guides that actually work.
Share this fix
Related fixes worth reading
Chosen automatically from the 157 guides on CommonFixes, based on how closely they match this problem.
Auto-hide the taskbar on OLED
How do I set the taskbar to auto-hide to protect my OLED screen?
Brightness keys stopped working on Linux
Why does my laptop's brightness keys not work after installing Linux?
Monitor reports a higher resolution than the desktop
Why does my external monitor show an active signal resolution higher than my desktop resolution?
Put the taskbar back at the bottom
How do I move my taskbar back to the bottom of the screen?
The screen dims or flickers only on battery
My laptop screen changes brightness by itself. How do I stop it?
Everything looks huge or stretched after an update
My screen resolution changed by itself and looks stretched. How do I set it back?
Still not it? Browse every fix or see more in screen troubles.
Who wrote this and how we checked it
The CommonFixes team
Writer and researcher
We are a small group of people who spend our days repairing laptops and desktops for family, friends and small offices. Every guide here starts with a problem someone actually brought to us, and we only write down the steps that put the machine right.
- Everyday repairs
- Windows and Mac
- Plain language
CommonFixes review desk
Technical editor
Before a guide goes live, a second person walks through it on a real machine and checks each instruction against the maker's own support pages. Anything we cannot confirm is removed rather than guessed at.
- Fact checking
- Safety warnings
- Source links
Sources we checked these steps against
This guide was last updated on 13 August 2026. If a step no longer matches what you see on screen, tell us on the contact page and we will test it again.
A gentle reminder: back up anything you cannot afford to lose before major repairs. If a step ever feels risky, stop and ask a technician. There is no shame in that.