home windows 10 hp computer is not going to sleep with lid closed at sure instances

That is mentioning to malicious program me. There are occasions when my computer does fall asleep when i shut the lid, after which there are occasions it does now not so i get up to a lifeless battery.

I’ve checked energy settings, complex energy settings and anyplace i may bring to mind to ensure “what to do when lid is closed” choices have been set to sleep.

I even uninstalled avast virus scanner as it used to be fighting me from saving bmp’s from my very own photograph modifying device.

I don’t have any spyware and adware in this system after a scan and it nonetheless wont sleep 75% of the time when i shut the lid

What else might be inflicting this?

thank you