我在Raspberry Pi 4上安装了Ubuntu21.04。我想控制POE+帽子(https://www.raspberrypi.org/products/poe-plus-hat/)上的风扇。
默认情况下,风扇根本不会旋转。当我将dtoverlay=rpi-poe添加到/boot/firmware/config.txt中时,扇的工作模式似乎是默认的。但是当我做sudo dtoverlay -l时,没有加载的覆盖,所以我不知道为什么会有所不同。
像这样的自定义设置不像预期的那样工作。当我添加这些风扇完全停止或下降到默认模式。
dtparam=poe_fan_temp0=50000
dtparam=poe_fan_temp1=58000
dtparam=poe_fan_temp2=64000
dtparam=poe_fan_temp3=68000当我尝试加载覆盖rpi-poe时,我得到响应* Failed to apply overlay '0_rpi-poe' (kernel),这可能意味着它在这个内核中不可用?GNU/Linux 5.11.0-1012-raspi aarch64
发布于 2021-10-01 20:39:49
在Ubuntu21.04构建的Pi 4与PoE+帽子,有一个微小的差异,您缺少,这是造成这个问题。固件驱动程序和相关的设备树覆盖被命名为rpi-poe-plus,而不是rpi-poe (这是为旧的PoE帽子)。
您可以通过看到可用的设备树与下面的命令进行覆盖,并注意有两个列出的。
ls /boot/firmware/overlays | grep poe将下面的内容添加到/boot/firmware/config.txt文件中,让风扇使用PoE+帽子。
dtoverlay=rpi-poe-plus
dtparam=poe_fan_temp0=80000,poe_fan_temp0_hyst=2000
dtparam=poe_fan_temp1=70000,poe_fan_temp1_hyst=5000
dtparam=poe_fan_temp2=65000,poe_fan_temp2_hyst=3000
dtparam=poe_fan_temp3=60000,poe_fan_temp3_hyst=5000您可以将poe_fan_temp值调整到您喜欢的位置,以便在不同的CPU温度值下使风扇倾斜。数值是摄氏度x 1000。
发布于 2021-07-23 08:25:18
在对缺乏文档感到沮丧之后,我发现这个github项目似乎解决了这个问题:
https://github.com/raspberrypi/linux/issues/2715#issuecomment-769405042
2020年3月更新了rpi-poe,增加了以下内容:
Name: rpi-poe
Info: Raspberry Pi PoE HAT fan
Load: dtoverlay=rpi-poe,<param>[=<val>]
Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
turns on (default 40000)
poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
the fan turns off (default 2000)
poe_fan_temp1 Temperature (in millicelcius) at which the fan
speeds up (default 45000)
poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
the fan slows down (default 2000)
poe_fan_temp2 Temperature (in millicelcius) at which the fan
speeds up (default 50000)
poe_fan_temp2_hyst Temperature delta (in millicelcius) at which
the fan slows down (default 2000)
poe_fan_temp3 Temperature (in millicelcius) at which the fan
speeds up (default 55000)
poe_fan_temp3_hyst Temperature delta (in millicelcius) at which
the fan slows down (default 5000)配置建议:
# PoE Hat Fan Speeds
dtoverlay=rpi-poe
dtparam=poe_fan_temp0=65000
dtparam=poe_fan_temp0_hyst=1000
dtparam=poe_fan_temp1=70000
dtparam=poe_fan_temp1_hyst=2500
dtparam=poe_fan_temp2=80000
dtparam=poe_fan_temp2_hyst=5000
dtparam=poe_fan_temp3=90000
dtparam=poe_fan_temp3_hyst=5000检查在dmesg中是否有类似的错误,那么您在固件更新中遇到了问题:
[...] rpi-poe-fan rpi-poe-fan@0: Failed to get default PWM value: -5
[...] rpi-poe-fan: probe of rpi-poe-fan@0 failed with error -5解释如何在这里使用以前的固件:https://github.com/raspberrypi/firmware/issues/1531
更改config.txt和重新启动后,检查值是否符合:
od -An --endian=big -td4 /proc/device-tree/thermal-zones/cpu-thermal/trips/trip?/temperature /proc/device-tree/thermal-zones/cpu-thermal/trips/trip?/hysteresis你应该得到:
65000 70000 80000 90000
1000 2500 5000 5000干杯
发布于 2021-10-13 20:32:32
ubuntu 21.04你不需要做任何事。我刚在RASPI4 4/8g中添加了一个POE+,并且风扇坚持默认设置,如上面所示(谢谢卡洛斯)。
当前的21.04版本已经满足了您的需要。以下列方式核实:
输入以下命令:
od -An --endian=大-td4 -td4
你应该得到:
40000 45000 50000 55000
2000 2000 2000 5000https://askubuntu.com/questions/1352446
复制相似问题