Power management

From Gentoo Wiki
Jump to: navigation, search

This article describes methods to save energy for longer battery runtime, more quiet computer, lower power bills, and environmentally friendly impact.

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


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

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


Devices which can save energy during runtime:

Multi- devices/subsystems power management:

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