我注意到powertop实用程序报告几个设备的“坏”“PCI设备运行时间PM”。 似乎powertop可以解决这个问题,但它不会告诉它究竟是什么修复它。 我该怎么办才能修复“运行时间PM”问题?
使用以下内容创build一个名为/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"
在重新启动运行时间后,应该为所有支持它的设备启用PM。 它也可以用于所有热插拔设备。
由于UX32VD上的bios 2.11更新,此规则会中断USB设备自动检测。 我真的不知道怎么做,但是从那时起,为了检测USB设备,必须在连接USB设备以检测它之后重新加载xhci_hcd模块。
这个CrunchBang Linux论坛主题帮助我解决了这个问题。
以这种方式为每个PCI设备启用PM:
echo auto > /sys/bus/pci/devices/*/power/control
论坛线程显示一个不错的省电脚本顺便说一句。
更新:是猫,但回声是正确的
您需要将这些设备的power/control属性设置为auto 。 立即为所有PCI设备设置最简单的方法是:
echo auto | sudo tee /sys/bus/pci/devices/*/power/control
Bash抱怨使用输出redirect( > )作为ambiguous redirect多个文件。
如果你想永久使用这个答案中描述的方法。