On kernel 5.10.78-7-osmc used before june 6 2023 the rpi-poe-plus fan was working but after june 6 2023 with kernel 5.15.83-3-osmc it has stopped working. See debug info below:
sudo dtoverlay -v rpi-poe-plus
DTOVERLAY[debug]: using platform ‘bcm2835’
DTOVERLAY[debug]: overlay map loaded
run_cmd: which dtoverlay-pre >/dev/null 2>&1 && dtoverlay-pre
DTOVERLAY[debug]: loading file ‘/boot/overlays/rpi-poe-plus.dtbo’
DTOVERLAY[debug]: fragment 5 disabled
DTOVERLAY[debug]: fragment 6 disabled
DTOVERLAY[debug]: merge_fragment(/fragment@4/overlay/poe@51,/fragment@11/overlay)
DTOVERLAY[debug]: merge_fragment(/fragment@4/overlay/poe@51/rpi-poe-power-supply@f2,/fragment@11/overlay/rpi-poe-power-supply@f2)
DTOVERLAY[debug]: +prop(compatible)
DTOVERLAY[debug]: +prop(reg)
DTOVERLAY[debug]: +prop(status)
DTOVERLAY[debug]: merge_fragment() end
DTOVERLAY[debug]: merge_fragment() end
DTOVERLAY[debug]: wrote 4337 bytes to ‘/tmp/.dtoverlays/0_rpi-poe-plus.dtbo’
DTOVERLAY[debug]: wrote 4337 bytes to ‘/sys/kernel/config/device-tree/overlays/0_rpi-poe-plus/dtbo’
Failed to apply overlay ‘0_rpi-poe-plus’ (kernel)
run_cmd: which dtoverlay-post >/dev/null 2>&1 && dtoverlay-post
An update:
Installed the image OSMC_TGT_rbp2_20230505.img.gz on another SD and with this image the fan is running so it seems something has changed between OSMC_TGT_rbp2_20230505.img.gz and OSMC_TGT_rbp2_20230606.img.gz.
Same issue, reproduced/confirmed on fresh install of OSMC 2023.06-1. Fan runs during installation while unpacking files but not after reboot into OSMC. Confirmed with two separate RPi4-400s, one with official RPi POE Hat 2021, the other with official RPI POE Hat 2018. Fan runs normally on fresh installs of RPi Bullseye with kernel 6.1 on both units. Please let me know if I can supply additional info. Thank you!
No need – should be reproducible here. I have both Pi POE HATs. I don’t have a lot of time presently, so will initially defer to @popcornmix on the offchance there’s an obvious fix (kernel or FW bump)
Flashed a new sdcard with the OSMC_TGT_rbp2_20230729.img image
When rpi started fan was running
Completed initial setup (fan was still running)
The last step is to press ‘exit’ to end initial setup to open the home screen. As soon as a pressed ‘exit’ the fan stopped running
5 Rebooting the rpi did not start the fan and several reboots did not change this
Apparently it seems that the initial setup kills the fan!
I have new rpi 4 which I will setup with the same image (for rpi 4 offcourse). I will report back
I tried with a pi4 today but exactly the same thing happen. The instance I press exit after initial configuration the fan dies a never comes back to life again.
Installed the OSMC_TGT_rbp4_20230505.img.gz image on the pi4 and then the fan works as expected.
I notice that this folder disappears after initial install and never comes back:
/sys/class/thermal/cooling_device0
That might very well be the reason for no fan activity since the driver is not loaded.