Your message dated Wed, 9 Mar 2016 14:16:58 +0100
with message-id <20160309131658.ga4...@home.ouaza.com>
and subject line Re: Bug#779787: damaging default apm_on_ac configuration
has caused the Debian Bug report #779787,
regarding damaging default apm_on_ac configuration
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
779787: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779787
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: hdparm
Severity: serious
Tags: jessie sid

It is very common that hard disks default to do excessive head parking
attempts (click-ripples like every 8 seconds), just to be woken up
immediately.

To prevent early damage, a save default is: hdparm -B 254,
but there seems to be no possible way to configure such a default
that works for all disks out of the box.


To support a proper default, and actually shipping such a default,
I would suggest to support wildcards in hdparm.conf. And ship with a
visible default like this:

# default to prevent excessive hard disk wear
# (head parking, load-cycling)
/dev/disk/by-id/ata-* {
       apm_on_ac = 254
       apm_on_battery = 128 
}



Note 1)
There is currently some code in 95hdparm-apm that conditionally applies
*hardcoded* apm values (128/254) on battery/ac changes, but *nothing*
for booting/udev plugging with proper defaults.


Note 2)
It makes sense to have some new apm_on_battery and
apm_on_ac options (in addition to the current apm option), to
avoid disabling quick head parking for mobile battery devices on the
move.

--- End Message ---
--- Begin Message ---
Version: 9.43-2

Hi,

On Wed, 04 Mar 2015, Chris wrote:
> To prevent early damage, a save default is: hdparm -B 254,

> Note 1)
> There is currently some code in 95hdparm-apm that conditionally applies
> *hardcoded* apm values (128/254) on battery/ac changes, but *nothing*
> for booting/udev plugging with proper defaults.

We have an udev script which does set options when disks are plugged.
And the default options includes -B254:
$ (. /lib/hdparm/hdparm-functions; hdparm_options /dev/sda)
-B254

So I believe that this bug is fixed in version 9.43-2.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/

--- End Message ---

Reply via email to