Comment 605 for bug 59695

Revision history for this message
angel chen (angelchen1111) wrote :

bojo42 says:
""
@angel chen: i can confirm that on intrepid with all updates applied, the four 90-hdparm.sh scripts never come to hdparm, cause $DO_HDPARM is always set to "n". just like you said, it really needs to be changed otherwise the scripts won't fix load cycling on ac.

but as your change will finally result in $DO_HDPARM=y on my side, it also does the same when running the script from battery.d. and AFAIK laptop mode should be enabled on battery and therefore $DO_HDPARM should be "n". the same should be the case with the script in start.d, when you booting your laptop on battery. am i right?
""
Yes, we do need to update all files. Also how come the file /etc/init.d/laptop-mode says

# FIXME: this shouldn't be configured there
if [ -f /etc/default/acpi-support ]; then
. /etc/default/acpi-support;
fi

if [ x$ENABLE_LAPTOP_MODE = xfalse ]; then
exit 0;
fi

which causes the laptop mode tools script won't be able to execute at all if ENABLE_LAPTOP_MODE is set to false.