About SmartUpdate()

David Zeuthen zeuthen at gmail.com
Sat Jun 23 13:56:15 PDT 2012


On Sat, Jun 23, 2012 at 4:39 PM, Anant Kamath <kamathanant at gmail.com> wrote:
> Hi,
>
> For which properties does the SmartUpdate() method (in the
> org.freedesktop.UDisks2.Drive.Ata interface) need to be called ?
> Are properties like temperature, SmartFailing updated automatically?

The D-Bus properties are updated every time SMART data is collected.
This happens at udisksd startup (e.g. at boot-up) and then every ten
minutes (unless the drive is asleep) or when the SmartUpdate() method
is invoked. Applications should only call SmartUpdate() in response to
a user action (never periodically as it may wake up a disk that is
asleep), e.g. for a "Refresh" button or similar in a SMART dialog.
This is what GNOME Disks is doing, see

 http://people.freedesktop.org/~david/disks-slightly-better-smart-dialog.png

Hope this helps.

    David


More information about the devkit-devel mailing list