The file /usr/lib/pm-utils/power.d/95hdparm-apm owned by package "hdparm" version 9.15-1ubuntu9 in lucid checks for presence of laptop-mode-tools at the wrong location on the disk, then proceeds to manage the APM setting for the hard drive itself when laptop-mode-tools should be handling it.
Specifically, the files /usr/sbin/laptop_mode and /var/run/laptop-mode-tools/enabled have AFAICT been deprecated/moved. This:
if [ -e /usr/sbin/laptop_mode ] ; then LMT_CONTROL_HD_POWERMGMT=$(. /etc/laptop-mode/laptop-mode.conf && ec
if [ "$LMT_CONTROL_HD_POWERMGMT" != 0 ] \
&& [ -e /var/run/laptop-mode-tools/enabled ]
then # Laptop mode controls hdparm -B settings, we don't. return
fi
fi
(which comes from the described file) includes the uses of these paths that urgently need correcting.
THE BUG IS:
The file /usr/lib/ pm-utils/ power.d/ 95hdparm- apm owned by package "hdparm" version 9.15-1ubuntu9 in lucid checks for presence of laptop-mode-tools at the wrong location on the disk, then proceeds to manage the APM setting for the hard drive itself when laptop-mode-tools should be handling it.
Specifically, the files /usr/sbin/ laptop_ mode and /var/run/ laptop- mode-tools/ enabled have AFAICT been deprecated/moved. This:
if [ -e /usr/sbin/ laptop_ mode ] ; then
LMT_ CONTROL_ HD_POWERMGMT= $(. /etc/laptop- mode/laptop- mode.conf && ec HD_POWERMGMT" != 0 ] \ laptop- mode-tools/ enabled ]
# Laptop mode controls hdparm -B settings, we don't.
return
if [ "$LMT_CONTROL_
&& [ -e /var/run/
then
fi
fi
(which comes from the described file) includes the uses of these paths that urgently need correcting.