If I change hdparm -S to something high like 7200 then the problem goes
away.  In conclusion from all this as stated earlier, hdparm -S
overrides hdparm -B, which it shouldn't according to the man page.
Here's a direct quote:

-B     Set Advanced Power Management feature, if the drive supports it.
              A low value means aggressive power management and a  high  value
              means better performance.  Possible settings range from values 1
              through 127 (which permit spin-down), and values 128 through 254
              (which  do  not  permit spin-down).  The highest degree of power
              management is attained with a setting of 1, and the highest  I/O
              performance  with a setting of 254.  A value of 255 tells hdparm
              to disable Advanced Power Management  altogether  on  the  drive
              (not all drives support disabling it, but most do).

The behavior of hdparm is not consistent with its man page!  If I set
hdparm -B to 128, then no matter what -S value is set (1, 12, 30), the
hard drive should NOT spin down according to what is quoted directly
above.  It took me months to figure this problem out, and it will only
cause confusion for people in the future.  I'll try looking at the code
myself and seeing what I can do.  It won't be a hard fix at all.

-- 
harddrive spins down when it shouldn't in laptop-mode
https://bugs.launchpad.net/bugs/286846
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to