限制Ubuntu Linux上的CPU频率


0

我正在寻找一种方法来限制系统依靠电池运行时的CPU频率。解决方案在使用电池时不必专门工作,它可以是bash命令的形式,可以据此生成脚本,然后在系统启动时运行。脚本草稿:

#!/bin/bash

while true
do
sleep 60 #wait one minute
# check whether laptop has ac plugged in
# if not, set frequency limit to what I want
# else, set frequency limit to max
done

1
我似乎在这里找到了答案,我将在空闲时做出并发布答案。wiki.archlinux.org/index.php/…–
gogeccc

1
您可能想在Ask Ubuntu上问这个问题。您可能在那里会得到更好的答案。
Android开发

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.