ubuntu 18 hibernation using the power button
Solution 1:
Use the config on the ARK wiki and its debian version here. Then, systemd
would start using s2disk (pm-hibernate
uses s2disk) to hibernate. This will getsudo systemctl hibernate
working, and dependent features like hibernate on Power button press will automatically work.