TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Automatic CPU speed and power optimizer for Linux

252 点作者 chetangoti超过 3 年前

17 条评论

tamrix超过 3 年前
If you&#x27;re using Intel 8th gen or above. (7th gen supported if you manually set the flag each boot) you&#x27;ve got speedshift which the CPU will automatically auto scale itself. (changing the p-states)<p>The CPU itself can change frequencies much faster on its own instead of the software based speedstep which programs like this controlled.<p>This eliminates the need for an on-battery or plugged-in performance mode because it changes frequencies so fast, you&#x27;re no longer losing performance by waiting for the software to speed up the cpu. So you can keep it on all the time.<p>For these CPUs, all this is in the kernel and enabled by default.
评论 #28896189 未加载
评论 #28897253 未加载
评论 #28896017 未加载
评论 #28895610 未加载
评论 #28895585 未加载
评论 #28901337 未加载
tomxor超过 3 年前
&gt; Using tools like TLP will help [...] but it also might come with its own set of problems<p>I recently figured out TLP was the source of a couple of irritating issues for me on an XPS 9370:<p>- Bluetooth audio continually cutting in and out, only when wireless module on AC &quot;non power saving mode&quot;!?!<p>- DC bias on the audio out jack, on both modes, worse on power saving. (forcing a power amp into self protect mode).<p>Both resolved by disabling TLP entirely. I knew TLP was not a set and forget tool, but it&#x27;s easy to forget when on some machines it&#x27;s fine (and necessary, especially older laptops). But then changing to a new machine where it causes lots of issues. It was a good reminder that these tools need to be used with care because they often exploit unusual hardware modes and can have strange side effects.
1kurac超过 3 年前
A similar tool to prolong laptop autonomy is XSuspender &lt;<a href="https:&#x2F;&#x2F;kernc.github.io&#x2F;xsuspender&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kernc.github.io&#x2F;xsuspender&#x2F;</a>&gt;. It configurably SIGSTOP-s unfocused X11 applications. It is, sadly, XWindows-only.
评论 #28895482 未加载
评论 #28895664 未加载
CyberShadow超过 3 年前
CPUs already adjust their own frequency based on load and temperature (maybe with some help from kernel drivers). It would be nice if the README explained how this tool is different from that.
评论 #28894701 未加载
评论 #28895060 未加载
评论 #28894662 未加载
评论 #28894917 未加载
fooctrl超过 3 年前
auto-cpufreq author here, I&#x27;m here if you have any questions!
评论 #28897100 未加载
评论 #28899230 未加载
评论 #28896909 未加载
评论 #28896058 未加载
rcarmo超过 3 年前
I’d like something that would actually disable CPU cores temporarily besides fiddling with governors and clock speeds. I currently do that with a cpufreq GUI wrapper, but it isn’t automatic.
评论 #28895416 未加载
评论 #28895810 未加载
glandium超过 3 年前
&gt; For example, CPU will run using &quot;performance&quot; governor with turbo boost enabled regardless if it&#x27;s plugged in to power or not.<p>Don&#x27;t most distros default to ondemand or schedutil governor these days?
评论 #28896881 未加载
评论 #28895382 未加载
geokon超过 3 年前
What&#x27;s a straightforward way to clock down a CPU to a fixed rate?<p>I sometimes want to run benchmarks and I&#x27;d like my laptop to stick to one speed<p>I understand it&#x27;s a bit problematic with the latest CPUs bc the gap between turbo and non turbo is so huge - and the CPU is in turbo a good chunk of the time (and your cache performance will be very different running at 1Ghz vs 4Ghz)<p>Anyone have a good solution?
评论 #28894719 未加载
评论 #28896483 未加载
评论 #28894790 未加载
londons_explore超过 3 年前
Whats the overhead of this daemon running all the time? It uses RAM which effectively increases power consumption because now something else is pushed out of the cache. It polls therefore waking the CPU every few seconds, even if perhaps nothing else is going on on the machine and the CPU would otherwise be idle.<p>I wonder if its benefits outweigh the disadvantages. Would be good to have numbers for a bunch of different hardware configs...
评论 #28895473 未加载
jmngomes超过 3 年前
TLP [1] covers this use case pretty well, although I confess I didn&#x27;t expect this to still be an issue these days (until I bought my latest laptop and had to run TLP on Kubuntu 20.04 to ensure battery life on par with the factory specs, and TLP almost tripled it)<p>[1] <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;TLP" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;TLP</a>
bravetraveler超过 3 年前
Cool and all, but &#x27;tuned&#x27; does this and so much more.<p>Custom profiles that can control boot command line options, sysctl parameters, sysfs, and so on.
评论 #28897420 未加载
christkv超过 3 年前
I’ve found <a href="http:&#x2F;&#x2F;tbswitcher.rugarciap.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;tbswitcher.rugarciap.com&#x2F;</a> that can turn of turbo boost on intel macs to be useful when on battery and compiling. Since 100% cpu usage will run at a much lower TDP and not kill my laptop battery as fast.
29athrowaway超过 3 年前
For games you can use gamemode.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;FeralInteractive&#x2F;gamemode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;FeralInteractive&#x2F;gamemode</a><p>You run the game with gamemoderun and it will do few adjustments for you, including adjusting the CPU governor.
bno1超过 3 年前
I wish the readme would compare it to laptop mode tools [1].<p>[1] <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Laptop_Mode_Tools" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Laptop_Mode_Tools</a>
wooque超过 3 年前
The best thing battery wise for me was to actually disable turbo boost and limit max frequency.<p>It can be done in TLP config.
yewenjie超过 3 年前
Can somebody with experience running this tell me if it actually works?
评论 #28895465 未加载
shmerl超过 3 年前
AMD are working on a better CPPC driver for schedutil for that.