Ok, so the problem is that udisks tries to update the drive's SMART
status every 10 minutes.  This will wake the drive and reset its standby
timer.  It does check to see if the drive is already asleep first, and
skips the check if it is, but that doesn't help if the standby timer is
> 10 minutes.  It also seems that my Western Digital drives also refuse
to standby in under 10 minutes; setting it to 5 minutes still makes it
wait just over 10.  This is why my patch to switch to the STANDBY
command appeared to fix it at first: by immediately putting the drive
into standby, it made the SMART updates be skipped.

You can verify this by killing the udisksd process and you can see the
drive does spin down after just over 10 minutes.

The proper fix for this is to add another check to see if there has been
any IO since the last SMART update according to the kernel performance
counters, and if not, skip the update.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to udisks2 in Ubuntu.
https://bugs.launchpad.net/bugs/1281588

Title:
  Disk standby timer is broken

Status in “udisks2” package in Ubuntu:
  Triaged

Bug description:
  gnome-disk-utility's support for the drive standby timer is broken.
  Instead of issuing the STANDBY command to the drive, it issues the
  IDLE command.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1281588/+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

Reply via email to