1. Yes, if /lib/systemd/system-sleep/ doesn't exist, create it with mkdir.
2. Yes.
3. No, unless for some reason you want to limit the script to suspend only, or
something. Here's my script:
#!/bin/sh
case $1/$2 in
pre/*)
;;
post/*)
hdparm -B 254 -S 120 /dev/sdb
;;
esac
4. Yes,
See also
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/199094/comments/29
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-disk-utility in Ubuntu.
https://bugs.launchpad.net/bugs/1511703
Title:
Standby timeout setting i
Public bug reported:
If a standby timeout setting is applied in Drive Settings, this works
fine at first when the setting is made, and after the system is
rebooted. However, if the system is suspended and resumed, the timeout
setting is ignored and the disk continues to spin.
Using Ubuntu 15.10,
Still not working in Kubuntu 13.10 or 14.04.
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1201180
Title:
Pressing power button turns off the PC ignoring the presence of
a
Also affects Kubuntu Trusty alpha.
** Tags added: kubuntu trusty
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1201180
Title:
Pressing power button turns off the PC ignorin