Runtime Powermanagement

From Gentoo Wiki
Jump to: navigation, search

Linux can power down unused devices and wake them up on demand.

Configuration

Enforce for every device:

FILE /etc/udev/rules.d/60-runtime-powermanagement.rules
SUBSYSTEM!="pci", GOTO="power_runtime_rules_end"
ACTION!="add", GOTO="power_runtime_rules_end"

KERNEL=="????:??:??.?" #, WAIT_FOR_SYSFS="bInterfaceProtocol"
PROGRAM="/bin/sleep 0.1"

ATTR{power/control}=="*", ATTR{power/control}="auto"

LABEL="power_runtime_rules_end"

See also