Comment 0 for bug 1373318

Revision history for this message
TheNinja (uss-ninja) wrote :

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 udiskd
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"