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
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_ SECONDS= 7200) and 20 seconds IDLE_TIMEOUT_ SECONDS= 20 HD_IDLE_ TIMEOUT_ SECONDS= 20 IDLE_TIMEOUT_ SECONDS= 7200
# Idle timeout values. (hdparm -S)
# Default is 2 hours on AC (NOLM_HD_
# for battery and for AC with laptop mode on.
#
LM_AC_HD_
LM_BATT_
NOLM_HD_
# Should laptop mode tools control the hard drive power management settings? HD_POWERMGMT= "auto" POWERMGMT= 254 HD_POWERMGMT= 254
#
# Set to 0 to disable
CONTROL_
#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=1
LM_AC_HD_
NOLM_AC_