Closing Lid Doesn't Put Systems to Sleep

Hi All,

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.

You’re probably waiting for an answer now,

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 :magnifying_glass_tilted_left: in the forum for “hybrid sleep”

:footprints:

Based on your post which has almost no details, I only can offer the following:

Check your settings and make changes as root in:

/etc/systemd/logind.conf

It may be one of these:

#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes
1 Like

Fair, I agree not enough information but wasn’t sure what to give. Here are my system specs:

Operating System: Manjaro Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.18.2-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce RTX 4060 Laptop GPU
Manufacturer: Dell Inc.
Product Name: XPS 15 9530

As far as my logind.conf, those were already my settings:

#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes

Reproducible Steps:

  1. Unplug my laptop with lid open and system on
  2. Shut lid

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! :wink:

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:↓
:warning: Beware of where you put magnets if you are using magnetic storage (spinning disks).

Those settings in logind.conf are commented out by default. To try any of those settings you have to remove the “#" sign (uncomment),save and reboot.

If hibernation is what you are looking to achieve, take a look here:

1 Like