← Back to team overview

desktop-packages team mailing list archive

[Bug 1373318] Re: Udisks2 prevents HDDs from going to standby because of polling SMART information

 

Another hint: If you want to compile udisks, use ./configure
--prefix=/usr if you want to replace udisksd on your system otherwise
the new version will be in /usr/local/lib/udisks2/.

-- 
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/1373318

Title:
  Udisks2 prevents HDDs from going to standby because of polling SMART
  information

Status in “udisks2” package in Ubuntu:
  New

Bug description:
  1) Ubuntu Version:
  Description:	Ubuntu 14.04.1 LTS
  Release:	14.04

  2) Package Version
  udisks2:
    Installiert:           2.1.3-1
    Installationskandidat: 2.1.3-1
    Versionstabelle:
   *** 2.1.3-1 0
          500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
          100 /var/lib/dpkg/status

  3) What I expected to happen:
  My two Seagate drives go to sleep after 10 minutes of inactivity.

  4) What happened instead:
  The drives stay on all the time.

  The full story:
  The problem is that the minimum time for the drives to go to sleep is 10 minutes, but they are kept awake by the udisks2 daemon which polls them every 10 minutes for SMART data, resetting the idle timer by doing so. Also this might not happen to all drives, there should be a workaround.
  Would be great if the patch proposed here [1] would also be integrated into udisks2.
  A more universal approach might be to make the polling interval configurable with 0=polling disabled.

  Disabling SMART for the disks works partially:

  a) The following UDEV flags don't have any effect:
  E: ID_ATA_FEATURE_SET_SMART=0
  E: ID_ATA_FEATURE_SET_SMART_ENABLED=0
  E: UDISKS_DISABLE_POLLING=1
  E: UDISKS_IGNORE=1

  b) The following works:
  (Note: without killing the daemon, according to "udisksctl monitor" it keeps polling.
  By polling, the SMART support is reactivated, which seems to be some unexpected behaviour from libatasmart [2])

  sudo killall udisksd
  sudo smartctl --smart=off /dev/sdb
  # verify
  sudo smartctl --all /dev/sdb | grep "SMART support"
  I think it is quite a bad workaround to kill the deamon after every reboot to be able to diable SMART. And disabling SMART is not good either, but it would be fine for me as workaround.

  [1] https://www.libreoffice.org/bugzilla/show_bug.cgi?id=26508

  [2] can be verified with
  sudo smartctl --smart=off /dev/sdb
  sudo smartctl --all /dev/sdb | grep "SMART support"
  sudo skdump --overall /dev/sdb
  sudo smartctl --all /dev/sdb | grep "SMART support"

  PS:
  This is mainly about the old udisks1, but may provide some additional information:
  https://www.libreoffice.org/bugzilla/show_bug.cgi?id=26508
  This is about gnome-disk-utility, but the underlying problem seems udisks2
  https://bugzilla.redhat.com/show_bug.cgi?id=1047339

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1373318/+subscriptions


References