Try this Windows 11 check list in order:
- Set lid close to Sleep
- Open Search on the taskbar, type control panel, and open it.
- Go to System and Security > Power Options > Choose what the power buttons do.
- Select Change settings that are currently unavailable.
- For When I close the lid, set On battery to Sleep.
- Set Plugged in to Sleep too if the lid is often closed while connected to power.
- Select Save changes.
- Shorten the screen and sleep timers in Settings
- Go to Start > Settings > System > Power & battery > Screen and sleep.
- Set On battery power, turn off my screen after to a shorter time.
- Set On battery power, put my device to sleep after to a shorter time.
- If the laptop is usually plugged in, also reduce the Plugged in times.
- Use a more efficient power mode
- Go to Start > Settings > System > Power & battery.
- Under Power mode, choose a more efficient mode, or Best Power Efficiency if available.
- This can reduce background activity and power use.
- Turn on Energy saver
- Go to Settings > System > Power & battery > Energy saver.
- Turn on Lower screen brightness when using energy saver.
- Check display settings that affect power use
- Go to Start > Settings > System > Display > Brightness and lower brightness.
- Go to System > Display > Advanced display and select a lower refresh rate.
- If available, enable Dynamic refresh rate.
- Run the Power troubleshooter
- Go to Start > Settings > System > Troubleshoot > Other troubleshooters.
- Select Run next to Power.
- If the PC still refuses to sleep, use a temporary workaround
- Install PowerToys from the Microsoft Store and use Awake to control sleep behavior while troubleshooting.
Since the lid is often down, step 1 is the most important. If When I close the lid is set to Do nothing, the laptop can stay awake with the screen behavior controlled separately, which matches the problem described.
- Power settings in Windows 11 | Microsoft Support
- [Windows 11](https://support.microsoft.com/windows/experience/power-battery/shut-down-sleep-or-hibernate-your-pc#sleep)
- [Windows 11 24H2 or later](https://support.microsoft.com/windows/experience/power-battery/battery-saving-tips-for-windows#change-power-settings)
- [Windows 11 24H2 or later](https://support.microsoft.com/windows/experience/power-battery/battery-saving-tips-for-windows#change-display-settings)
- My pc is automatically going to sleep. in event viewer it shows kernel error id 42 sleep due to power button or ld. sometimes it also shows error due to application ai or similar. Any solutions? - Microsoft Q&A