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

Advanced users • Is there anyway to control pi5 pwm fan manually?

$
0
0
Hello, everyone,
For testing a couple of pwm fan of pi 5,I want to manually set fan speed .I have try this:
Set "/sys/devices/platform/cooling_fan/hwmon/hwmon2/pwm1" and /sys/class/thermal/thermal_zone0//cdev0/cur_state",but after a while,fan speed turn back to system default.
Can anyone tell me ,how can I do ?
===============================================================================
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ vcgencmd version
2024/11/12 16:10:44
Copyright (c) 2012 Broadcom
version 4b019946 (release) (embedded)
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ uname -a
Linux Pi-5 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $


pi@Pi-5:/sys/devices/platform/cooling_fan/hwmon/hwmon2 $ echo 255 | sudo tee pwm1
255
pi@Pi-5:/sys/devices/platform/cooling_fan/hwmon/hwmon2 $ cat pwm1
75
pi@Pi-5:/sys/devices/platform/cooling_fan/hwmon/hwmon2 $ cat pwm1
0
pi@Pi-5:/sys/devices/platform/cooling_fan/hwmon/hwmon2 $

================================================================================

pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ cat cur_state
0
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ echo 4 | sudo tee cur_state
4
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ cat cur_state
1
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ cat cur_state
1
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $ cat cur_state
0
pi@Pi-5:/sys/class/thermal/thermal_zone0/cdev0 $

Statistics: Posted by solaris33 — Sat Dec 07, 2024 7:06 pm — Replies 0 — Views 17



Viewing all articles
Browse latest Browse all 4516

Trending Articles