Changes between Initial Version and Version 1 of Powermode


Ignore:
Timestamp:
Jul 30, 2009, 1:35:14 AM (15 years ago)
Author:
Gabriele Pohl
Comment:

Move page from old wiki to here

Legend:

Unmodified
Added
Removed
Modified
  • Powermode

    v1 v1  
     1== Powermanagement ==
     2
     3If you use a computer under control of power management, you should instruct {{{smartd}}} how to handle disks in low power mode.
     4
     5ATA disks have five different power states. In order of increasing power consumption they are: {{{'OFF'}}}, {{{'SLEEP'}}}, {{{'STANDBY'}}}, {{{'IDLE'}}}, and {{{'ACTIVE'}}}. Typically in the OFF, SLEEP, and STANDBY modes the disk's platters are not spinning. But usually, in response to SMART commands issued by {{{smartd}}}, the disk platters are spun up. So if this option is not used, then a disk which is in a low-power mode may be spun up and put into a higher-power mode when it is periodically polled by {{{smartd}}}.
     6
     7Note that if the disk is in SLEEP mode when {{{smartd}}} is started, then it won't respond to {{{smartd}}} commands, and so the disk won't be registered as a device for {{{smartd}}} to monitor. If a disk is in any other low-power mode, then the commands issued by {{{smartd}}} to register the disk will probably cause it to spin-up.
     8
     9=== {{{-n POWERMODE[,N][,q]}}} ===
     10
     11This ''nocheck'' Directive is used to prevent a disk from being spun-up when it is periodically polled by {{{smartd}}}. It specifies if {{{smartd}}}'s periodic checks should still be carried out when the device is in a low-power mode. It may be used to prevent a disk from being spun-up by periodic {{{smartd}}} polling.
     12
     13The allowed values of POWERMODE are:
     14
     15==== -n never ====
     16{{{smartd}}} will poll (check) the device regardless of its power mode. This may cause a disk which is spun-down to be spun-up when '''smartd''' checks it. This is the default behavior if the '-n' Directive is not given.
     17
     18==== -n sleep ====
     19check the device unless it is in SLEEP mode.
     20
     21==== -n standby ====
     22check the device unless it is in SLEEP or STANDBY mode. In these modes most disks are not spinning, so if you want to prevent a laptop disk from spinning up each time that {{{smartd}}} polls, this is probably what you want.
     23
     24==== -n idle ====
     25check the device unless it is in SLEEP, STANDBY or IDLE mode. In the IDLE state, most disks are still spinning, so this is probably not what you want.
     26
     27Maximum number of skipped checks (in a row) can be specified by appending positive number ',N' to POWERMODE (like '-n standby,15'). After N checks are skipped in a row, powermode is ignored and the check is performed anyway.
     28
     29When a periodic test is skipped, {{{smartd}}} normally writes an informal log message. The message can be suppressed by appending the option ',q' to POWERMODE (like '-n standby,q'). This prevents a laptop disk from spinning up due to this message.
     30
     31Both ',N' and ',q' can be specified together.