Windows lid settings control sleep/display behavior, not powering on from a full shutdown.
For many laptops, power on when the lid opens is controlled by the BIOS/UEFI or the manufacturer utility, not by Windows. That is why changing the Windows lid setting may not make the laptop start when the lid is opened.
What is supported in Windows 11:
- Open Control Panel.
- Go to System and Security > Power Options.
- Select Choose what closing the lid does.
- Set the lid action you want for On battery and Plugged in.
- Select Save changes.
If the goal is to keep the laptop running with the lid closed, set When I close the lid to Do nothing for Plugged in. If preferred, leave On battery as Sleep to avoid battery drain and heat when the laptop is closed and not connected to power.
If the goal is specifically turn on the laptop by opening the lid, Windows does not provide a supported way in the provided material to force that behavior. That feature is commonly firmware/vendor-controlled on HP systems.