Comment 6 for bug 1896137

Revision history for this message
JP Guisset (ubuntuforums-jpgu) wrote :

I am using an old laptop as server. The internal screen has been removed. When no external display is connected, the system quickly goes to sleep mode. To avoid this I had masked sleep.target and suspend.target, which resulted in the described repeated "systemd-logind: hibernation is restricted; see man kernel_lockdown.7" and 80% load by systemd-logind.

I could avoid suspend without triggering this issue by modifying /etc/systemd/logind.conf:
 HandleSuspendKey=ignore
 HandleHibernateKey=ignore
 HandleLidSwitch=ignore
 HandleHibernateKey=ignore