Quote:
Originally Posted by Sockmonster
Not sure what -B is, how do i check?
Thanks.
|
With the hdparm tool, you can manually set certain hard drive attributes, such as power management with the -B option. In the
configuration file for laptop-mode, there is a section that sets the -B level based on three conditions: is laptop-mode running on battery? on AC? is it disabled?
This file is located under /etc/laptop-mode/laptop-mode.conf
Code:
BATT_HD_POWERMGMT
LM_AC_HD_POWERMGMT
NOLM_AC_HD_POWERMGMT
These values specify the power management level for your hard drives. The legal values for these options can be found in the hdparm manual page, in the documentation of the -B option
You will see the current values it is set to. Most likely the NOLM value is 254, and the value for laptop-mode being active is either 1 or 128. Leave the 254 alone, but change the other values to 128 or greater. If you would rather your drive not constantly spin down and start up, over and over, set it to 254.
You can also manually check the current power management level of any drive with hdparm.
The following command displays the drive's information, while only revealing the lines with the word "power" in them:
Code:
hdparm -I /dev/sda | grep -i power