Dear any interested,

I just found out that the hdparm -B and -S parameters were being overridden by 
the laptop_mode-tools. Whenever I put my laptop on battery after using it on 
AC, its hdparm values set at boot time are overridden by the settings inside 
the following file (if you have laptop_mode-tools installed, that is). I hope 
this will give insight to the devs to do something about this issue. 
I checked it myself by modifying BATT_HD_POWERMGMT from 1 to 128 and voila, it 
keeps its 128 value.

Surely, the laptop_mode-tools is the place to fine tune the hdparm vales
while on battery.

an excerpt of:  sudo gedit /etc/laptop-mode/laptop-mode.conf

#
# Idle timeout values. (hdparm -S)
# Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
# for battery and for AC with laptop mode on.
#
LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200

# Should laptop mode tools control the hard drive power management settings?
#
# Set to 0 to disable
CONTROL_HD_POWERMGMT="auto"
#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=1
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/952556

Title:
  [Precise] [Hardware-killer] HD restarts every few seconds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/952556/+subscriptions

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

Reply via email to