Ale*_* B. 7 linux laptop electrical-power
我注意到powertop实用程序报告了几个设备的“Bad”“PCI 设备的运行时 PM”。似乎powertop可以解决问题,但它不会说明它究竟做了什么来修复它。我应该怎么做才能解决“运行时 PM...”问题?
创建一个包含/etc/udev/rules.d/10-runtime-pm.rules以下内容的文件:
SUBSYSTEM!="pci", GOTO="power_runtime_rules_end"
ACTION!="add", GOTO="power_runtime_rules_end"
KERNEL=="????:??:??.?"
PROGRAM="/bin/sleep 0.1"
ATTR{power/control}=="*", ATTR{power/control}="auto"
LABEL="power_runtime_rules_end"
Run Code Online (Sandbox Code Playgroud)
在重新启动运行时 PM 应该为支持它的所有设备启用。它还为所有热插拔设备启用它。
小智 2
这个CrunchBang Linux 论坛帖子帮助我解决了这个问题。
您可以通过以下方式为每个 PCI 设备启用 PM:
echo auto > /sys/bus/pci/devices/*/power/control
Run Code Online (Sandbox Code Playgroud)
顺便说一句,论坛主题展示了一个很好的省电脚本。