I have two Dell XPS laptops and both have the same problem (always have). Despite my settings saying to put the system to sleep with lid shut, this doesn’t seem to happen, so, my computers are constantly draining if they aren’t plugged in. Happy to provide whatever logs I can. Best I can tell, screen shuts off when I close the lid but the system doesn’t go into sleep and thus, a few hours later, my battery will go from 100% down to near 0% if not on power.
but I can only give you tips on how to get a faster and, more importantly, a better answer.
Your post is missing the system information from
sudo inxi -zv8
This would contain some information that you forgot to mention (DE, kernel, processor, exact motherboard type, etc.). This way, anyone who wants to answer can get a clear picture without having to ask a hundred questions first.
Please format it so that it's easily readable.
You can take a look at this post as an example:
or you may want to in the forum for “hybrid sleep”
Hours later I come back and the computer is dead or near dead. Are there any logs that I can provide to show that it’s actually on still or what is actually happening when I close the lid?
Full inxi -zv8 output would be preferable to the output of a neofetch-type program, cheers!
Also, are you sure the display is being switched off? Or just blanked maybe?
Perhaps the “magnet test” where the lid switch is, with the lid open. ↓Important:↓ Beware of where you put magnets if you are using magnetic storage (spinning disks).