I have installed Ubuntu Server 14.04 on a laptop. I want to change some power management options from the terminal (I don't have GNOME or a GUI installed, and I don't want to either). The current behavior is:
- The laptop goes to sleep/hibernate, causing the server to stop working, when I close the lid. Ideally, I'd be able to close the lid, have the screen turn off, but still have the server working.
- The laptop turns off the screen after some short time of inactivity (which is fine, I just list this to be complete). After some hours of inactivity, the laptop shuts down completely by itself, even when plugged in.
- A brief press of the power button shuts down the system. I want to avoid this, as it is quite easy to press the power button: I'd rather have to shut it down explicitly via the terminal.
I have tried some solutions found on askubuntu, but none of them works. Specifically, I have removed acpid from the system. Weirdly enough, this didn't change anything. After that, I commented out the relevant lines in /etc/acpi/events/powerbtn. Again, this didn't change anything: the system still shuts down after a brief touch of the power button. Acpid no longer runs, but it still seems like /etc/acpi/powerbtn.sh is executed (which was the action for powerbtn). I have looked at the ubuntu manpage entry for acpi to try to figure out if it was still running somehow, but I'm not experienced enough to understand it completely.
Any help would be welcome.