Rock64pro and CPU Fan Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
griphook
Posts: 5
Joined: Tue Jan 08, 2019 3:29 pm

Rock64pro and CPU Fan

Post by griphook »

Hi everybody. I have a rock64pro board running dietpi. I was wondering how I can get my cpu fan working with it?

I plugged it into the port on the board for the fan and it does not spin at all. I am under the impression that the fan is controlled by software.

Does dietpi manage this or do I need a 3rd party peice of software?
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Rock64pro and CPU Fan

Post by MichaIng »

@griphook
Could you please paste:

Code: Select all

cat /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
cat /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp
cat /sys/devices/platform/pwm-fan/hwmon/hwmon0/fan_speed
cat /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
cat /sys/class/hwmon/hwmon0/pwm1
The following might work: https://github.com/tuxd3v/ats
But I started to work on a DietPi script to implement fan control. But currently the API is known to work with C2 only. Didn't have the time and priority to implement further devices: https://github.com/MichaIng/DietPi/blob ... an_control
But the above outputs could help to check how RockPro64 implements PWM control.
aldopi
Posts: 5
Joined: Sat Aug 29, 2020 1:18 am

Re: Rock64pro and CPU Fan

Post by aldopi »

Hi,

I have almost the same problem:
I've just installed DietPi on my RockPro64. The fan is always on.
I've managed to install ATS but it doesn't to work cause the fan is always on.

Do you have of what could be the root cause of that?
aldopi
Posts: 5
Joined: Sat Aug 29, 2020 1:18 am

Re: Rock64pro and CPU Fan

Post by aldopi »

Hi,

I've found the solution:
I had to modify the /etc/ats.conf file.
"/sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1" and cat /sys/class/hwmon/hwmon0/pwm1 don't exit.
For me it was cat /sys/devices/platform/pwm-fan/hwmon/hwmon3/pwm1 and cat /sys/class/hwmon/hwmon3/pwm1
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Rock64pro and CPU Fan

Post by MichaIng »

Many thanks for reporting. Good to know it uses hwmon3, through strange when hwmon0 is unused :roll:.

I collected the info here: https://github.com/MichaIng/DietPi/issues/1818
Probably someone finds time to implement a few more devices for our fan control script, but good to know that ATS works.
aldopi
Posts: 5
Joined: Sat Aug 29, 2020 1:18 am

Re: Rock64pro and CPU Fan

Post by aldopi »

Hi,

I'm glad to help.
Though, I've rebooted my devices this morning and it changed to hwmon2.
I don't what made it change that but when I replaced by hwmon2 on ats.conf, everything went ok.
Post Reply