Improved previous attachment. You'll also need to:
sudo cp [FILENAME] /lib/systemd/system-sleep/00powersave
sudo chown root.root /lib/systemd/system-sleep/00powersave
sudo chmod u+x /lib/systemd/system-sleep/00powersave
** Attachment added: "pm-powersave hook for systemd, save as
/lib/systemd/sy
Caused by switch from upstart to systemd.
Copy attachment (requires root) to /etc/udev/rules.d/powersave.rules.
See also bug https://bugs.launchpad.net/ubuntu/+source/pm-
utils/+bug/1455097 for same problem with suspend/resume
Still always assumes on battery at boot though.
** Attachment added:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1458390 is
probably a duplicate bug.
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1461386 is a
related issue concerning calling pm-powersave on AC loss/connection.
--
You received this bug notification because you are a member of
Almost certain is same bug as https://launchpad.net/ubuntu/+source/pm-
utils/+bug/1455097. Caused by switch to systemd from upstart.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/14
Was caused by switch to systemd from upstart. Instead of pm-suspend,
systemd uses systemd-sleep. Instead of running scripts in
/etc/pm/sleep.d/ and /usr/lib/pm-utils/sleep.d/ it runs scripts in
/lib/systemd/system-sleep/. However, no script is installed here to
call pm-powersave, and systemd doe