If playing a video on Plex with choosing a lower quality the fan starts running slowly and continue in a stumbling mode as long Plex is converting, the conversion mode is indicated by the shaded portion of the movie progress bar.
When playback starts the fan starts spinnig and continues stumbling slowly spinning as long as conversion takes, which is in short movies like this one far before the end of playback.
This strange fan behaviour does not correlate to CPU temps as I trigger on HDD temps instead of CPU temps and to be 100% sure I put in fan.py dc=1.0 before pin.write(dc) which is 0 duty.
As I have the Pi5 with DietPi without UI in ssh terminal mode, so far I do not have other options to investigate deeper.
Linux pi5 6.6.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux
My recent best guess ist that the SD .ts conversion process interferes with fan.py PWM generation (self.thread = threading.Thread(target=self.tr, daemon=True)).
Feels weird, but is clearly reproducable just choosing not the original quality …
Regards
Michael