Disks and Controllers

DISK_DEVICES

Defines the disk devices on which the following parameters act. Multiple devices are separated with blanks.

DISK_DEVICES="nvme0n1 sda"

Default when unconfigured: “nvme0n1 sda”

When using a 2nd disk e.g. in a Drive Bay, the assignment of device names by the kernel (sda, sdb) can change possibly. In this case it is advisable to do the device assignment using IDs:

DISK_DEVICES="ata-INTEL_SSDSA2M160G2GC_XZY123456890 ata-HITACHI_HTS541612J9SA00_XZY123456890"

The command tlp diskid shows the IDs of all attached disks.

DISK_APM_LEVEL_ON_PRF/BAL/SAV

Set the “Advanced Power Management Level”. Possible values range between 1 and 255.

Some selected values are:

  • 1 – max power saving / minimum performance – Important: this setting may lead to increased disk drive wear and tear because of excessive read-write head unloading (recognizable from the clicking noises)

  • 128 – compromise between power saving and wear (TLP standard setting on battery)

  • 192 – prevents excessive head unloading of some HDDs

  • 254 – minimum power saving / max performance (TLP standard setting on AC)

  • 255 – disable APM (not supported by some disk models)

  • keep – special value to skip this setting for the particular disk (synonym: _)

Values for multiple disks are separated with blanks.

Version 1.11 and newer

DISK_APM_LEVEL_ON_PRF="254 254"
DISK_APM_LEVEL_ON_BAL="128 128"
DISK_APM_LEVEL_ON_SAV="128 128"

Version 1.10 and older

DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"

Default when unconfigured: “254 254” (PRF/AC), “128 128” (BAL/BAT, SAV)

DISK_APM_CLASS_DENYLIST

Exclude disk classes from advanced power management (APM). Possible values:

  • sata

  • ata

  • usb

  • ieee1394

Separate multiple classes with spaces.

DISK_APM_CLASS_DENYLIST="usb ieee1394"

Default when unconfigured: “usb ieee1394”

Caution

USB and IEEE1394 disks may fail to mount or data may get corrupted with APM enabled. Be careful and make sure you have backups of all affected media before removing usb or ieee1394 from the denylist!

DISK_SPINDOWN_TIMEOUT_ON_PRF/BAL/SAV

Timeout value until the spindle motor stops when the disk is idle. Valid settings:

  • 0 – disabled

  • 1..240 – timeouts from 5 seconds to 20 minutes (in increments of 5 seconds)

  • 241..251 – timeouts from 30 minutes to 5.5 hours (in increments of 30 minutes)

  • keep – special value to skip this setting for the particular disk (synonym: _)

Values for multiple disks are separated with blanks.

Version 1.11 and newer

DISK_SPINDOWN_TIMEOUT_ON_PRF="0 0"
DISK_SPINDOWN_TIMEOUT_ON_BAL="0 0"
DISK_SPINDOWN_TIMEOUT_ON_SAV="0 0"

Version 1.10 and older

DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"

Default when unconfigured: <none>

Note

  • SSDs don’t have moving parts, therefore this setting is “don’t care” for them and can remain disabled.

  • Stopping the system disk for extended periods of time is unlikely to work, because applications and system daemons wake up the disk frequently. However for a 2nd disk in a swappable drive slot or the Ultrabay that is not accessed permanently, this setting may be quite useful.

DISK_IOSCHED

Sets the I/O scheduler per disk. Possible values:

  • mq-deadline

  • none

  • kyber

  • bfq

  • keep – recommended: special value to use the kernel’s default scheduler for the particular disk (synonym: _)

Values for multiple disks are separated with blanks.

DISK_IOSCHED="mq-deadline mq-deadline"

Default when unconfigured: “keep”

SATA_LINKPWR_ON_PRF/BAL/SAV

AHCI Link Power Management (ALPM)

Sets the power management mode for the SATA links connecting disks and optical drives. Possible values (in order of increasing power saving):

  • max_performance – minimum power saving / max performance

  • medium_power – medium power saving and performance – do not use!

  • med_power_with_dipm – recommended: best balance between power saving and performance (kernel ≥ 4.15 required)

  • min_power – max power saving / minimum performance – do not use!

Use empty strings (“”) to disable the feature completely. Multiple values separated with spaces are tried sequentially until success.

Version 1.11 and newer

SATA_LINKPWR_ON_PRF="med_power_with_dipm"
SATA_LINKPWR_ON_BAL="med_power_with_dipm"
SATA_LINKPWR_ON_SAV="med_power_with_dipm"

Version 1.10 and older

SATA_LINKPWR_ON_AC="med_power_with_dipm"
SATA_LINKPWR_ON_BAT="med_power_with_dipm"

Default when unconfigured: “med_power_with_dipm”

SATA_LINKPWR_DENYLIST

Exclude SATA disks from AHCI link power management (ALPM). This is intended as a workaround for SATA disks not bearing link power management.

Disks are specified by their host. Refer to the output of tlp-stat -d to determine the host; the format is hostX. Separate multiple hosts with spaces.

SATA_LINKPWR_DENYLIST="host1"

AHCI_RUNTIME_PM_ON_PRF/BAL/SAV

Controls runtime power management for NVMe, SATA, ATA and USB disks as well as SATA ports. Possible values:

  • auto – enabled (power down idle devices)

  • on – disabled (devices powered on permanently)

Version 1.11 and newer

AHCI_RUNTIME_PM_ON_AC=on
AHCI_RUNTIME_PM_ON_BAL=auto
AHCI_RUNTIME_PM_ON_SAV=auto

Version 1.10 and older

AHCI_RUNTIME_PM_ON_AC=on
AHCI_RUNTIME_PM_ON_BAT=auto

Default when unconfigured: on (PRF/AC), auto (BAL/BAT, SAV)

Note

  • Works only on disks defined in DISK_DEVICES

  • SATA controllers are PCIe bus devices and handled by the corresponding RUNTIME_PM settings

AHCI_RUNTIME_PM_TIMEOUT

Seconds of inactivity before a disk or a port is suspended. Effective only when AHCI_RUNTIME_PM_ON_AC/BAT is activated.

AHCI_RUNTIME_PM_TIMEOUT=15

Default when unconfigured: 15

See also