求助,下面是我家云风扇调速脚本,因为我看不懂想请大佬按照我的要求修改一下增加一些功能。 #2275
Replies: 15 comments 8 replies
-
另外,我不知道如何重启风扇脚本,请大佬告知,还有不知道我的要求能不能实现,谢谢大佬。 |
Beta Was this translation helpful? Give feedback.
-
通过曾经大二的c语言基础+GPT3.5 帮助,我完成了目标任务的代码添加。现在贴出来请大佬指点,测试了一下好像功能都正常工作了。 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
20240504 增加风扇降噪系数 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
替换/usr/bin/pwm-fan.pl |
Beta Was this translation helpful? Give feedback.
-
降噪后的效果,降低噪音,风扇旋转时吹出热气,提高风扇散热效率。 |
Beta Was this translation helpful? Give feedback.
-
#!/usr/bin/perl use strict; ################################################################################ 修改风扇停转温度,根据硬盘最佳寿命40度为修改参考;#20240428 增加风扇关闭功能,在冬天气温比较低时,如果风扇还旋转,因为热胀冷缩轴承非常容易磨损,天气冷的时候是风扇损坏率较高的时候。 参数我已经修改完善,没有特殊情况勿改 -根据F大脚本修改 by Rancat /sys/devices/virtual/thermal/thermal_zone0/temp #用此行命令可在ssh命令矿中查看cpu实时温度参数调整区 风扇按照固定占空比启动后10s,根据cpu温度调整转速,低于$temp_low风扇停转,高于$temp_fanOn风扇启动。速度最小值(满速是99),如果太小可能进入死区,风扇不转,需配合下面提示调整my $speed_min = 8; 速度最大值(满速是99)my $speed_max = 99; 温度低限(摄氏度): 小于等于此温度风扇停转my $temp_low = 40; 风扇启动温度低限(摄氏度): 大于于等于此值按启动风扇散热my $temp_fanOn = 65; 风扇启动占空比参数(%): 风扇启动时使用固定占空比:风扇启动占空比参数,设置要点:保证能启动同时风扇噪音不要过大my $duty_cycle_on = 3; 降噪系数: 降低风扇启动到cpu温度最高限区间的风扇噪音,降低幅度计算1/$fan_n,最终风扇转速=计算转速*(1/$fan_n)+$speed_min;my $fan_n = 2; 温度最高限(摄氏度): 大于此值按最高速率转动my $temp_high = 75; 调速间隔(秒)my $interval = 10; 风扇状态位:0为关闭,1为开启my $fanclose_temp = 0; 风扇首次启动:0为风扇运转中,1风扇从关闭到开启是第一次运行my $fan_up = 0; 风扇切换温度转换值my $coeff_temp = 0; ################################################################################ my $fixed_speed = $ARGV[0]; ############################################################################### sub init {
} sub set_fixed_speed {
} sub auto_speed {
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
2024-07-08-fixpwm-fan.zip |
Beta Was this translation helpful? Give feedback.
-
hello @liyiranlab , |
Beta Was this translation helpful? Give feedback.
-
各位大神脚本有了,问题是具体怎么使用,能出一下教学吗 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
20240708 修复硬盘未待机低温切换未生效bug,今天以前的固件都有比较严重bug,用这些固件的请自己更新最下面脚本;
调整未待机时的风扇启动停温度;
修改部分无需变动的变量为未常量;
Beta Was this translation helpful? Give feedback.
All reactions