I'm having trouble with the proper configuration of the automatic suspend options. I want the laptop to be up and running 24/7 since it is basically a "server". With the default configurations, the laptop suspends a couple of minutes after boot, so naturally I ran the following, as per the documentation at https://wiki.debian.org/Suspend:
- Code: Select all
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
This keeps the laptop from suspending allright, but it has the side effect of increasing CPU usage to somewhere between 70% and 100% at all times. The offending processes are systemd, dbus-daemon, systemd-journal, and systemd-logind.
I've checked journalctl -f. Every 30 seconds it spews out hundreds of these:
- Code: Select all
systemd-logind[520]: Suspending...
systemd-logind[520]: Failed to execute operation: Unit suspend.target is masked.
I've tried to circumvent this by playing around with the various options in /etc/systemd/logind.conf. Currently the following options are set:
- Code: Select all
HandlePowerKey=poweroff
HandleLidSwitch=ignore
IdleAction=ignore
IdleActionSec=30min
... but none of this seems to have any effect with regards to the seemingly endless loop of the laptop trying to suspend itself.
So, my question is how to properly configure this laptop to be up and running 24/7 without having to deal with the CPU issue? Again, I'm a Debian noob so I'm not sure how to proceed. What else can I do to further troubleshoot this matter? What am I missing?
- Code: Select all
$ cat /etc/issue
Debian GNU/Linux 8 \n \l
$ cat /etc/debian_version
8.5
$ hostnamectl
Icon name: computer-laptop
Chassis: laptop
Operating System: Debian GNU/Linux 8 (jessie)
Kernel: Linux 3.16.0-4-686-pae
Architecture: x86