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

Troubleshooting • Re: Fan and USB wont shut down after shutdown / booting

$
0
0
What are your results?
I should note that I am using the basic fan that came with my rpi5 kit. The box says it is the Raspberry Pi Active Cooler from raspberrypi.com/products/active-cooler/

Here are the results (Note that I ran this from ssh in LibreElec since that is my full time os. I can try again from Pi OS later if you think it will make a difference but I already tried a bunch of this last week from Pi OS and it was pretty much the same as I'm showing here):

1.

Code:

ls -l /sys/class/hwmon/
Result:

Code:

rpi5:~ # ls -l /sys/class/hwmon/total 0lrwxrwxrwx    1 root     root             0 Feb 27  2024 hwmon0 -> ../../devices/platform/soc/soc:firmware/raspberrypi-hwmon/hwmon/hwmon0lrwxrwxrwx    1 root     root             0 Feb 27  2024 hwmon1 -> ../../devices/virtual/thermal/thermal_zone0/hwmon1lrwxrwxrwx    1 root     root             0 Feb 27  2024 hwmon2 -> ../../devices/platform/cooling_fan/hwmon/hwmon2lrwxrwxrwx    1 root     root             0 Feb 27  2024 hwmon3 -> ../../devices/platform/axi/1000120000.pcie/1f000c8000.adc/hwmon/hwmon3
2.

Code:

grep -s . /sys/class/thermal/thermal_zone*/* /sys/class/thermal/cooling_device*/*
Result:

Code:

rpi5:~ # grep -s . /sys/class/thermal/thermal_zone*/* /sys/class/thermal/cooling_device*/*/sys/class/thermal/thermal_zone0/available_policies:step_wise/sys/class/thermal/thermal_zone0/cdev0_trip_point:1/sys/class/thermal/thermal_zone0/cdev0_weight:0/sys/class/thermal/thermal_zone0/cdev1_trip_point:2/sys/class/thermal/thermal_zone0/cdev1_weight:0/sys/class/thermal/thermal_zone0/cdev2_trip_point:3/sys/class/thermal/thermal_zone0/cdev2_weight:0/sys/class/thermal/thermal_zone0/cdev3_trip_point:4/sys/class/thermal/thermal_zone0/cdev3_weight:0/sys/class/thermal/thermal_zone0/cdev4_trip_point:0/sys/class/thermal/thermal_zone0/cdev4_weight:0/sys/class/thermal/thermal_zone0/integral_cutoff:0/sys/class/thermal/thermal_zone0/k_d:0/sys/class/thermal/thermal_zone0/k_i:0/sys/class/thermal/thermal_zone0/k_po:0/sys/class/thermal/thermal_zone0/k_pu:0/sys/class/thermal/thermal_zone0/mode:enabled/sys/class/thermal/thermal_zone0/offset:450000/sys/class/thermal/thermal_zone0/policy:step_wise/sys/class/thermal/thermal_zone0/slope:-550/sys/class/thermal/thermal_zone0/sustainable_power:0/sys/class/thermal/thermal_zone0/temp:41900/sys/class/thermal/thermal_zone0/trip_point_0_hyst:0/sys/class/thermal/thermal_zone0/trip_point_0_temp:110000/sys/class/thermal/thermal_zone0/trip_point_0_type:critical/sys/class/thermal/thermal_zone0/trip_point_1_hyst:5000/sys/class/thermal/thermal_zone0/trip_point_1_temp:50000/sys/class/thermal/thermal_zone0/trip_point_1_type:active/sys/class/thermal/thermal_zone0/trip_point_2_hyst:5000/sys/class/thermal/thermal_zone0/trip_point_2_temp:60000/sys/class/thermal/thermal_zone0/trip_point_2_type:active/sys/class/thermal/thermal_zone0/trip_point_3_hyst:5000/sys/class/thermal/thermal_zone0/trip_point_3_temp:67500/sys/class/thermal/thermal_zone0/trip_point_3_type:active/sys/class/thermal/thermal_zone0/trip_point_4_hyst:5000/sys/class/thermal/thermal_zone0/trip_point_4_temp:75000/sys/class/thermal/thermal_zone0/trip_point_4_type:active/sys/class/thermal/thermal_zone0/type:cpu-thermal/sys/class/thermal/cooling_device0/cur_state:0/sys/class/thermal/cooling_device0/max_state:4/sys/class/thermal/cooling_device0/type:pwm-fan
3.

Code:

sudo cat /sys/class/hwmon/hwmon2/pwm1
Result:

Code:

rpi5:~ # cat /sys/class/hwmon/hwmon2/pwm10
Note that I believe the fan is actually working/spinning at a normal speed, so I think the 0 is wrong although maybe not so I may have to try this again later with the case open.

4.

Code:

echo "255" | sudo tee -a "/sys/class/hwmon/hwmon2/pwm1"
Result:

Code:

echo "255" | tee -a "/sys/class/hwmon/hwmon2/pwm1"
Note that at first the fan didn't seem to do anything different but I tried multiple times to be sure and I notice that the fan spins up to full speed for 1-2 seconds and then goes back to a normal speed.

I suppose I'll have to try this again later with the case open to be able to look at the fan without my NVMe hat installed, but its difficult to tell right now if setting to 0 stops the fan although I was able to do these tests earlier and it was ramping up and down as expected although going to full speed of 255 was doing the same where it ramps up and then goes back to a value of 75 like it is doing now.

Also note that when I did these tests earlier I was doing the cmd like this:

Code:

echo 255 | tee /sys/devices/platform/cooling_fan/hwmon/hwmon2/pwm1
Not sure if that equates to the same cmd or is any different but that still works for me now the same as the /sys/class/hwmon/hwmon2/pwm1 cmd.

I guess this means that fan is a lemon? Not sure how it could have broke. I can buy a new fan although my fear is the fan is working and something else on the board is not working. Again, it seems to work fine under normal usage but it's just that I need to unplug the power when I'm done which is annoying. At this point I would believe there is some kind of hardware issue although it makes me feel this device is a lot more fragile than an rpi4 or any other normal computer since I was quite careful to take it apart and have been working with computer for many years without a problem like this.

Statistics: Posted by rpi5_user555 — Thu Oct 17, 2024 2:57 am



Viewing all articles
Browse latest Browse all 4151

Trending Articles