首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu21.04未能应用覆盖“0_rpi-poe”(内核)

Ubuntu21.04未能应用覆盖“0_rpi-poe”(内核)
EN

Ask Ubuntu用户
提问于 2021-07-17 14:20:02
回答 3查看 1.5K关注 0票数 2

我在Raspberry Pi 4上安装了Ubuntu21.04。我想控制POE+帽子(https://www.raspberrypi.org/products/poe-plus-hat/)上的风扇。

默认情况下,风扇根本不会旋转。当我将dtoverlay=rpi-poe添加到/boot/firmware/config.txt中时,扇的工作模式似乎是默认的。但是当我做sudo dtoverlay -l时,没有加载的覆盖,所以我不知道为什么会有所不同。

像这样的自定义设置不像预期的那样工作。当我添加这些风扇完全停止或下降到默认模式。

代码语言:javascript
复制
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

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2021-10-01 20:39:49

在Ubuntu21.04构建的Pi 4与PoE+帽子,有一个微小的差异,您缺少,这是造成这个问题。固件驱动程序和相关的设备树覆盖被命名为rpi-poe-plus,而不是rpi-poe (这是为旧的PoE帽子)。

您可以通过看到可用的设备树与下面的命令进行覆盖,并注意有两个列出的。

代码语言:javascript
复制
ls /boot/firmware/overlays | grep poe

将下面的内容添加到/boot/firmware/config.txt文件中,让风扇使用PoE+帽子。

代码语言:javascript
复制
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。

票数 1
EN

Ask Ubuntu用户

发布于 2021-07-23 08:25:18

在对缺乏文档感到沮丧之后,我发现这个github项目似乎解决了这个问题:

https://github.com/raspberrypi/linux/issues/2715#issuecomment-769405042

2020年3月更新了rpi-poe,增加了以下内容:

代码语言:javascript
复制
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)

配置建议:

代码语言:javascript
复制
# 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中是否有类似的错误,那么您在固件更新中遇到了问题:

代码语言:javascript
复制
[...] 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和重新启动后,检查值是否符合:

代码语言:javascript
复制
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

你应该得到:

代码语言:javascript
复制
65000 70000 80000 90000
1000 2500 5000 5000

干杯

票数 0
EN

Ask Ubuntu用户

发布于 2021-10-13 20:32:32

ubuntu 21.04你不需要做任何事。我刚在RASPI4 4/8g中添加了一个POE+,并且风扇坚持默认设置,如上面所示(谢谢卡洛斯)。

当前的21.04版本已经满足了您的需要。以下列方式核实:

输入以下命令:

od -An --endian=大-td4 -td4

你应该得到:

代码语言:javascript
复制
   40000       45000       50000       55000
    2000        2000        2000        5000
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1352446

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档