I've had a look at the acpi-support diff, and the reason this fix isn't taking effect is this code:
DO_HDPARM=y
if [ -e /usr/sbin/laptop_mode ] ; then
LMT_CONTROL_HD_POWERMGMT=$(. /etc/laptop-mode/laptop-mode.conf && echo "$CONTROL_HD_POWERMGMT")
if [ "$LMT_CONTROL_HD_POWERMGMT" != 0 ] ; then
# Laptop mode controls hdparm -B settings, we don't.
DO_HDPARM=n
fi
fi
This checks whether laptop-mode is configured to use hdparm, but fails to check whether laptop-mode is *enabled* on the system, which it isn't by default.
Will integrate an additional check for /var/run/laptop-mode-tools/enabled, which is what laptop-mode itself uses at runtime.
I've had a look at the acpi-support diff, and the reason this fix isn't taking effect is this code:
DO_HDPARM=y laptop_ mode ] ; then HD_POWERMGMT= $(. /etc/laptop- mode/laptop- mode.conf && echo "$CONTROL_ HD_POWERMGMT" ) HD_POWERMGMT" != 0 ] ; then
if [ -e /usr/sbin/
LMT_CONTROL_
if [ "$LMT_CONTROL_
# Laptop mode controls hdparm -B settings, we don't.
DO_HDPARM=n
fi
fi
This checks whether laptop-mode is configured to use hdparm, but fails to check whether laptop-mode is *enabled* on the system, which it isn't by default.
Will integrate an additional check for /var/run/ laptop- mode-tools/ enabled, which is what laptop-mode itself uses at runtime.