Hello,
For most HP Pavilion models, the “power on when lid is opened” behavior depends on whether the feature is supported at the firmware/BIOS level. It cannot be enabled through Windows power options alone.
You can boot your HP into BIOS and see if you have an option in BIOS to set it. If you don't see it in BIOS at all, then it can mean that the firmware doesn't support such.