Comment 102 for bug 379780

Revision history for this message
In , Zeuthen (zeuthen) wrote :

(In reply to comment #9)
> Previously users could use UDISKS_DISABLE_POLLING to inhibit SMART data updates
> for hard drives which had a longer spindown timeout than the SMART polling
> interval (which seems to be 10 minutes). Is there a new mechanism to disable
> SMART data updates by device?

Not apart from either turning SMART off (using e.g. hdparm(8)) such that e.g.

 ID_ATA_FEATURE_SET_SMART_ENABLED

will be set to 0 in the udev database.... (a udev rule to set this on the device should work too - that way you won't have to turn SMART off).

But even with SMART enabled, udisks reading SMART data should not wake up the disk - in fact, we check if the disk is asleep and avoid reading SMART data if this is so.... if this in turn causes the disk to never go to sleep, I think it may be a problem with the disk sleep timer in question (changing the disk sleep timeout to < 10 min or forcing it to go to sleep could fix it).