Hi!
I have Aspire one 752 netbook with slack 13.1 installed. I installed laptop-mode-tools from slackbuilds to control power management and etc.
I'd like to make sure that sda drive in netbook never spins off when not running on batteries. For now it seems to spin down after every half a minute and is producing clicking sounds. I issued 'hdparm -B 255 /dev/sda' which seemed to work - no clicks any more, and no spinning-up sounds.
What is the right way to make this change to be applied whenever netbook is on AC power?
Thanks for any help, i've heard frequent spin-downs won't do good to a drive.
Edit: Also, how to make this 'hdparm -B 255 /dev/sda' survive hibernate, as it reverts to '96' after being resumed:
# hdparm -B /dev/sda
/dev/sda:
APM_level = 96
Edit2: Ok, i changed hdparm -B values from 254 to 255 in laptop-mode.conf, since values of 254 and any other i tried(1, 96, 128) gave ioctl errors and were not applied to drive.
Code:
# hdparm -B 96 /dev/sda
/dev/sda:
setting Advanced Power Management level to 0x60 (96)
HDIO_DRIVE_CMD failed: Input/output error
HDIO_DRIVE_CMD(identify) failed: Input/output error
# hdparm -B /dev/sda
/dev/sda:
APM_level = off
After these edits it woke up from hibernate with APM_level = off.
Code:
#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=1
LM_AC_HD_POWERMGMT=255
NOLM_AC_HD_POWERMGMT=255