Power management

From Gentoo Wiki
Jump to:navigation Jump to:search
Resources

This article describes methods to save energy for longer battery runtimes, a quieter computer, lower power bills, and an environmentally friendly impact.

Device-specific power management sub-articles can be found below in the Devices section.

Methods of power management

BIOS

Disable unused devices right in the BIOS or EFI firmware. Potential devices to disable include:

  • Serial ports
  • Parallel ports
  • USB ports
  • Ethernet network devices
  • Wireless network devices
  • Bluetooth controllers

Devices

Devices which can save energy during runtime:

Multi-devices/subsystems power management:

Interfaces

Low power modes

Udev rules to automate power management

FILE /etc/udev/rules.d/10-local-powersave.rules
# PCI runtime power management
ACTION=="add", SUBSYSTEM=="pci", ATTR{power/control}="auto"

# USB autosuspend
ACTION=="add", SUBSYSTEM=="usb", ATTR{power/control}="auto"
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/autosuspend" ATTR{power/autosuspend}="60"

# SATA active link power management
SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power"

# Wlan power save
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*" RUN+="/usr/sbin/iw dev %k set power_save on"

# Disable bluetooth
SUBSYSTEM=="rfkill", ATTR{type}=="bluetooth", ATTR{state}="0"

# Disable wake-on-LAN
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*" RUN+="/usr/sbin/ethtool -s %k wol d"

See also

  • Power management/Guide — covers the configuration of a Gentoo system to manage power-hungry resources in a flexible-yet-automated manner.

External resources