I fixed it with some Dell support: BIOS power setting, Lid switch --> enable lid switch/power on Lid open. I hope that works for you as well.
My laptop screen and applications keep running when I close the lid, which totally drains the battery between uses. I have changed the lid closure when on battery settings to sleep or hibernate, and also used Command prompt to power off and on the hibernate function. However, nothing shuts down the screen (or produces any noticeable effect at all) when I close the lid. I presume the laptop fails to recognize when the lid is closed? Appreciate any tips or help!
XPS 13 9320, does not detect lid closure