#24556·systemd

logind should rate limit requests to suspend the system on lid switch, in case these requests are systematically broken

Author: mu-hiCreated Sep 4, 2022Updated Sep 17, 2026
LabelsRFE 🎁login

systemd version the issue has been seen with

249.11-0ubuntu3.4

Used distribution

Ubuntu 22.04

Linux kernel version used

5.15.0-47-generic

CPU architectures issue was seen on

x86_64

Component

systemd-logind

Expected behaviour you didn't see

It shouldn't overload CPU when closing down the laptop lid.

Unexpected behaviour you saw

No response

Steps to reproduce the problem

Run systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target to prevent laptop to sleep when the lid is closed.

After closing the lid, systemd-logind starts overusing the CPU and causing laptop to heat.

Later, I also masked systemd-logind, ran the server on tty and closed the lid. The problem didn't occur this time.

Additional program output to the terminal or log subsystem illustrating the issue

No response