Standby timeout setting ignored after system suspend/resume

Bug #1511703 reported by Graeme Hewson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-disk-utility (Ubuntu)
Confirmed
Undecided
Unassigned

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-disk-utility (Ubuntu):
status: New → Confirmed
Revision history for this message
Graeme Hewson (ghewson) wrote :
Revision history for this message
groby (groby) wrote :

Hi Mr. Hewson,
thanks for your fast response!
I'm a programmer-dummy, so I have to ask first, if I understand the instruction of your link correctly:

1. Because I don't have the folder "system-sleep", I have to create it
2. In that folder I put the script
3. In the script, I have to write "suspend", "hibernate" or "hybrid-sleep", behind the "$2" characters. (In my case it must be "suspend")
4. I have to make the script executable.

Is that also working for reboot and boot? Because the problem affects reboot and boot too.

Thanks and regards!

Revision history for this message
groby (groby) wrote :

Subsequent correction: Reboot and Boot works for me as well as said in the Bug Description.
Sorry for making confusion!

But please still check my procedure of creating the script.

Thanks!

Revision history for this message
Graeme Hewson (ghewson) wrote :

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>.

Revision history for this message
groby (groby) wrote :

Works for me! Just had to change the target device in the script.
It's not really fixing the Gnome-Disk-Utility Bug, I guess. But the script keeps my harddrive on 254 APM-Level after suspend/resume.
Thanks again!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.