Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3838

Troubleshooting • Re: Appears to be no fan curve or a very steep one

$
0
0
https://github.com/raspberrypi/linux/bl ... #L546-L597

Code:

&thermal_trips {cpu_tepid: cpu-tepid {temperature = <50000>;hysteresis = <5000>;type = "active";};cpu_warm: cpu-warm {temperature = <60000>;hysteresis = <5000>;type = "active";};cpu_hot: cpu-hot {temperature = <67500>;hysteresis = <5000>;type = "active";};cpu_vhot: cpu-vhot {temperature = <75000>;hysteresis = <5000>;type = "active";};};&cooling_maps {tepid {trip = <&cpu_tepid>;cooling-device = <&fan 1 1>;};warm {trip = <&cpu_warm>;cooling-device = <&fan 2 2>;};hot {trip = <&cpu_hot>;cooling-device = <&fan 3 3>;};vhot {trip = <&cpu_vhot>;cooling-device = <&fan 4 4>;};
this defines trip points at 50c, 60c, 67.5c, and 75c, each with 5c of hysteresis
and those then map to speeds 1 thru 4

Code:

fan: cooling_fan {status = "disabled";compatible = "pwm-fan";#cooling-cells = <2>;cooling-min-state = <0>;cooling-max-state = <3>;cooling-levels = <0 75 125 175 250>;pwms = <&rp1_pwm1 3 41566 PWM_POLARITY_INVERTED>;rpm-regmap = <&rp1_pwm1>;rpm-offset = <0x3c>;};
the fan then maps that to pwm levels of 75, 125, 175, and 250

Statistics: Posted by cleverca22 — Tue Feb 13, 2024 7:16 pm



Viewing all articles
Browse latest Browse all 3838

Trending Articles