Your message dated Mon, 1 Jul 2019 12:48:29 +0200
with message-id <[email protected]>
and subject line hdparm: on battery, the drive spins down too often, even when 
standby is off
has caused the Debian Bug report #684241,
regarding hdparm: on battery, the drive spins down too often, even when standby 
is off
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 [email protected]
immediately.)


-- 
684241: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684241
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hdparm
Version: 9.39-1+b1
Severity: important

Since quite recently, the hard drive of my laptop spins down too often
when on battery: about after 20 seconds - 30 seconds, then it usually
spins up again after a few seconds (sometimes less than 1 second). So,
these spin-downs are completely useless, make the system a bit slower
(when waiting for spin-up), and would probably lower the lifetime of
the drive.

I can see 2 solutions:

1. Detect this automatically. However it seems that the system cannot
   do that.

2. Disable spindown via some option. This is what I did, but without
   any effect!

I first tried putting "spindown_time = 0" in /etc/hdparm.conf, then
ran "/etc/init.d/hdparm restart" (not sure whether this is useful).
But the drive still spins down.

I've written a script to see the options:

#!/bin/sh
. /lib/hdparm/hdparm-functions
hdparm_options /dev/sda

and it outputs "-B254 -q -S0" when on AC power, and "-B127 -q -S0"
when on battery, as expected (from /lib/hdparm/hdparm-functions).

Then I ran directly:

# hdparm -B127 -S0 /dev/sda

/dev/sda:
 setting Advanced Power Management level to 0x7f (127)
 setting standby to 0 (off)
 APM_level      = 127

but the drive still spins down.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hdparm depends on:
ii  libc6     2.13-35
ii  lsb-base  4.1+Debian7

Versions of packages hdparm recommends:
ii  powermgmt-base  1.31

Versions of packages hdparm suggests:
ii  apmd  3.2.2-14

-- Configuration Files:
/etc/hdparm.conf changed:
quiet
spindown_time = 0


-- no debconf information

--- End Message ---
--- Begin Message ---
Closing this bug as it is suppose to be fixed even in oldoldstable, and
likelihood that somebody installs that old Debian version to a laptop is
rather low.

--- End Message ---

Reply via email to