Too fast "housekeeping" prevents harddrive from sleeping

Bug #1507003 reported by Stefan K.
This bug report is a duplicate of:  Bug #1281588: Disk standby timer is broken. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udisks2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

udisks2 has a function called housekeeping where regular stuff is done. In example refreshing SMART data from attached drives. Currently it has a timeout of ten minutes. The old udisks(1) was more relax and waited thirty minutes. Therefore I have to let my drives sleep after ten minutes at maximum before SMART data is fetched. Usually this is a bit fast. I´m unsure whether desktop drives like these tight cycles as laptop devices do.

If anybody thinks like me, patching is easy. Have a look at "udiskslinuxprovider.c" in the src folder. Around line 470 is the "housekeeping timeout" set to 10*60 seconds. Reset to a value you like and recompile the package. I guess it won´t harm, if you update SMART every thirty minutes instead of ten :)

Description: Ubuntu 14.04.3 LTS
Release: 14.04

udisks2:
  Installiert: 2.1.3-1ubuntu0.1
  Installationskandidat: 2.1.3-1ubuntu0.1
  Paket-Pinning: 2.1.3-1ubuntu0.1
  Versionstabelle:
 *** 2.1.3-1ubuntu0.1 1001
        500 http://de.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.1.3-1 1001
        500 http://de.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Revision history for this message
Graeme Hewson (ghewson) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.