groms
(groms)
August 26, 2023, 6:59pm
155
Interesting. After fresh boot executed this:
echo 1 > /sys/class/thermal/cooling_device0/cur_state
Check to confirm and
cat /sys/class/thermal/cooling_device0/cur_state
is 1
And after few seconds check again and
/sys/class/thermal/cooling_device0/cur_state
is 0 again.
frank-w
(Frank W.)
August 26, 2023, 7:33pm
156
Yes because the trips are updated every x seconds (imho 5s) from system…you can only override it only till next update
groms
(groms)
August 27, 2023, 12:49pm
157
What is the chance that this is a hardware problem on the board?
frank-w
(Frank W.)
August 27, 2023, 1:01pm
158
The reset of cur_state is normal behaviour…or what do you mean with hardware fault?
groms
(groms)
August 27, 2023, 1:09pm
159
Well, the fan works only if I disconnect the PWM wire, which is the red one in my case. And then it only runs at full speed and is a bit noisy. It used to work normally. I could set/adjust RPMs before .
frank-w
(Frank W.)
August 27, 2023, 1:16pm
160
is this the same with openwrt from @dangowrt ?
groms
(groms)
August 27, 2023, 1:21pm
161
I managed to build an image but was not able to boot with it. Can I test PWM functionality with your image @frank-w ? I mean this one:
Hi,
i’ve created a basic debian-image with kernel 6.1.0 (from my main-branch) for sdcard-usage (uboot contains write-functions to flash nand and emmc from usb, files in bpi-r3_uboot.tar.gz), but have not tested again (will do when i get my new board).
login: root pw: bananapi
wan: dhcp-client
lanports: bridged 192.168.1.1/24 + dhcp-server
Network config is done using systemd-networkd (+resolved for dns)…see files in /etc/systemd/network/
wifi: via wifi.sh script in /root (5g needs to set r…
frank-w
(Frank W.)
August 27, 2023, 1:24pm
162
Afair pwm patches were added after i created the image…but you could use the image as base and build and install a newer kernel (6.5.rc)
groms
(groms)
August 27, 2023, 1:33pm
163
First I need to confirm that the PWM problem is not hardware related. Any idea how I can check this?
frank-w
(Frank W.)
August 27, 2023, 4:23pm
164
you can build openwrt with kernel 6.1 from daniels tree which should be right now (5.15 seems to not working with the clock i upstreamed).
Dale
(Elad)
August 27, 2023, 4:24pm
165
Do you have an oscilloscope or voltmeter?
groms
(groms)
August 27, 2023, 4:41pm
166
Please give me the instructions how to check it. I will have access to oscilloscope and voltmeter tomorrow.
Dale
(Elad)
August 27, 2023, 4:51pm
167
With the ground probe touch the sfp cage or any other gnd pin, and with the other one the pwm pin, which is the one closer to the sfp/eth ports side of the board.
Then type
echo 2 > /sys/class/thermal/cooling_device0/cur_state
And you should see pwm signals for few seconds, maybe ask someone to help you
frank-w
(Frank W.)
August 27, 2023, 4:56pm
168
Please do not shorten pins…best way is to use a matching connector with cables for testing it. You can also measure voltage with multimeter between gnd (middle pin) and the pwm pin. If pwm is off you will measure 3v3 as pwm high brings gnd to the pin (inverted signal)
1 Like
Dale
(Elad)
August 27, 2023, 5:02pm
169
It’s riskier trying to use the middle pin for gnd. The sfp cage is very convenient
1 Like
groms
(groms)
August 27, 2023, 5:09pm
170
Thank you!
Voltmeter or oscilloscope? A friend of mine will help me.
Dale
(Elad)
August 27, 2023, 5:11pm
171
With scope you will see the pwm signal, with voltmeter you should see a temporary voltage increase
frank-w
(Frank W.)
August 27, 2023, 5:11pm
172
If your friend or you can handle oscilloscope correctly it will be better choice as you will see the signal shape. Multimeter is easier but you see only voltage change when pwm goes through the states
BobH3
(Bob H)
October 1, 2023, 1:42am
173
tolaat01:
hi it seems that the fan start to work at 85 due to misconfiguration in beta and nightly build - it will be fixed in next builds. i use a workaround by changing /sys/class/thermal/thermal_zone0/trip_point_1_temp to 32000 i added to startup the line below and its keeping the value after restart
echo 32000 > /sys/class/thermal/thermal_zone0/trip_point_1_temp good luck
Do you know which trip point is activated when? I have 0 , 1 , 2 , 3 , and 4
So setting the trip point 1 to 32000 didn’t do anything, so I set
echo 32000 > /sys/class/thermal/thermal_zone0/trip_point_4_temp
echo 32000 > /sys/class/thermal/thermal_zone0/trip_point_3_temp
echo 32000 > /sys/class/thermal/thermal_zone0/trip_point_2_temp
echo 32000 > /sys/class/thermal/thermal_zone0/trip_point_1_temp
and now the fan actually spins! YEAH! It is keeping it much cooler, as it was very hot, and hot to touch before. So thank you for pointing me to the trip points but I am not sure what the levels are and how the different trip points affect the fan speed at each point?
1 Like
Rooot
(Rooot)
October 1, 2023, 7:09am
174
what 32000 means ? is it the temp in °c * 1000 ?
so if i set 40000 the fan will start @40°c