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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The minimum viable fan control script

51 点作者 hddherman超过 2 年前

7 条评论

buescher超过 2 年前
I was expecting a basic thermostat with hysteresis, but no, it's a stepwise proportional control. Your fan could very well wind up oscillating at one of the step transition points which is probably not great for the fan.
评论 #32995348 未加载
评论 #32998781 未加载
mortenlarsen超过 2 年前
There is no need to call cat to read from a file.<p>&gt; temp=$(cat &#x2F;sys&#x2F;class&#x2F;thermal&#x2F;thermal_zone1&#x2F;temp)<p>temp=$(&lt;&#x2F;sys&#x2F;class&#x2F;thermal&#x2F;thermal_zone1&#x2F;temp)
评论 #32994817 未加载
评论 #32999272 未加载
bullen超过 2 年前
I have spent countless hours trying to get hardware to be silent.<p>The only way to do this reliably and without fire hazard is to passively cool the hardware completely by having HUGE heatsinks and THEN you can add a fan that you slow down with a resistor.<p>The fan is only there to prolong the life span, the hardware should be able to run passivley at 100% and you should be able to hold your finger on the heatsink forever. If not you have a problem.<p>All other solutions are just meaningless.<p><a href="http:&#x2F;&#x2F;streacom.com" rel="nofollow">http:&#x2F;&#x2F;streacom.com</a>
评论 #32995594 未加载
评论 #32995238 未加载
评论 #32995618 未加载
评论 #33003753 未加载
评论 #32997320 未加载
评论 #32999213 未加载
XiS超过 2 年前
As an alternative, been using this PID fan control script to keep my HDDs cool for ages. <a href="https:&#x2F;&#x2F;forums.freenas.org&#x2F;index.php?threads&#x2F;pid-fan-controller-perl-script.50908&#x2F;" rel="nofollow">https:&#x2F;&#x2F;forums.freenas.org&#x2F;index.php?threads&#x2F;pid-fan-control...</a>
评论 #32994868 未加载
评论 #32994933 未加载
_wolfie_超过 2 年前
&gt; if ((temp &gt; 90000)); then<p>What is this syntax? I would have assume something like `[ $temp -gt 90000 ]` or `$((temp &gt; 90000))`. Is the dollar here optional? Is this something bash specific?
评论 #32995379 未加载
suprjami超过 2 年前
The second solution on this page probably isn&#x27;t reliable, because hwmon paths like `hwmon3` depend on module load order.<p>That&#x27;s likely the same reason for the `card*` workaround mentioned above.<p>I am using thinkfan for this and it works really well: <a href="https:&#x2F;&#x2F;github.com&#x2F;vmatare&#x2F;thinkfan" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vmatare&#x2F;thinkfan</a>
suprjami超过 2 年前
Literally the day after I spend hours figuring out thinkfan and tinkering with fan levels to get something I can live with. What timing.