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, with chmod u+x <filename>. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-disk-utility in Ubuntu. https://bugs.launchpad.net/bugs/1511703 Title: Standby timeout setting ignored after system suspend/resume Status in gnome-disk-utility package in Ubuntu: Confirmed Bug description: 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, gnome-disk-utility 3.16.2. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/1511703/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp