Running Ubuntu 18.04 on an older Dell machine, one of those mini machines that mounts on the back on a monitor. Thing is, it's a headless system, and I removed the GUI since I won't be needing it anyway.
The PC sleeps after a certain time. Haven't really timed it, but after a while idling, it goes to sleep. I'd like to configure that timing a bit so it works better for this particular case.
Question is: who is issuing that sleep command, and where is the timing configured? Most info sources on power management in ubuntu direct me to gnome-power-manager. But on this machine, there's no GUI, so.. no gnome-power-manager. I've checked ps for sleepd or powerdevil, nothing.
dmesg |grep sleep shows:
[ 5453.702143] ACPI: Preparing to enter system sleep state S3
[ 5453.726769] cache: parent cpu1 should not be sleeping
[ 5453.727509] ACPI: Waking up from system sleep state S3
[10865.469908] ACPI: Preparing to enter system sleep state S3
[10865.492327] cache: parent cpu1 should not be sleeping
[10865.493067] ACPI: Waking up from system sleep state S3
[16297.564114] ACPI: Preparing to enter system sleep state S3
[16297.586192] cache: parent cpu1 should not be sleeping
[16297.586924] ACPI: Waking up from system sleep state S3
Anybody know where I can configure this thing?
Also, a few years back (I think it was on Ubuntu 14 or so) I remember I used to have a power management package for the command line, which was really nice. You could set sleep, hibernate, etc. time in a config file, and you could also create conditions for no sleep... worked like a charm. I remember I used to have a condition where the system wouldn't sleep if a program called "stayawake" was running. So when I needed it to stay on, I would just run a blank endless script called "stayawake" and that was that. But, I can't remember what package it was. Can anyone refresh my memory?