1. edit /etc/hdparm.conf
...
/dev/sda
{
apm = 255
spindown_time = 0
dma = on
}
...
2. edit /etc/apm/event.d/20hdparm
...
APMD_DRIVES=sda
...
power_performance ()
{
# Disable IDE hard disk spindown.
for DRIVE in $APMD_DRIVES; do
"${HDPARM}" -q -S 0 -B 254 "${DRIVE}" || true
done
}
...
3. edit /etc/acpi/fglrx-powermode.sh
...
for dev in /dev/sd? /dev/hd? ; do
if [ -b $dev] ; then
# Check for APM support; discard errors since not all drives
# support HDIO_GET_IDENTITY (-i).
if /sbin/hdparm -i $dev 2> /dev/null | grep -q 'AdvancedPM=yes' ; then
if [ -f /sys/class/power_supply/AC0/online ] && [ grep -q '1' /sys/class/power_supply/AC0/online ]; then
/sbin/hdparm -B 254 $dev
else
/sbin/hdparm -B 128 $dev
fi
fi
fi
done
...
댓글 없음:
댓글 쓰기