Case fan in a DIY V2

I just finished a DIY V2 build using an RPi 4B. I included an ezcoo 4 port switch and put all of the components in a plastic case. I added a 4-wire, 40mm fan to the back of the case that I planned to manage with a script running on the RPi. To that end, I included a couple of DS18B20 temp sensors for sensing case temperature and wired the case fan as follows:

Vin : 3.3v

Gnd: Gnd

TACH: GPIO24

PWM: GPIO18

I was surprised to find, after applying power, that the fan reduced speed. I’m guessing that I wired my fan the same way that the V3 and V4 models are wired and that my fan was “discovered” by some software component of PiKVM taht’s there for V3 and V4.

Can anyone confirm my suspicions? Is there any documentation on the algorithm or control loop that is used to control the fan? For instance, if there’s a control loop, what is the sensor? Can I disable it if I want to implement my own control?

Very nice project, BTW. And very well documented!

This is likely from the kvmd-fan service that was added a while back.