[Dec 07] DietPi(v6.18) - Pinebook / Manjaro KDE (preview3) / Manjaro LXQT (preview3) - Pinebook |[Dec 06] Armbian Debian Stretch (5.67) / Armbian Ubuntu 18.04 Bionic Desktop (5.67) - RockPro64 |[Dec 05] DietPi(v6.18) - 1080P Pinebook | [Nov 28] Slackware Aarch64 Miniroot (20181126) / Slackware Aarch64 XFCE (20181126) - RockPro64 / Manjaro KDE (preview3) / Manjaro LXQT (preview3) /Q4OS (2.6-r6) - 1080P Pinebook

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy


Rockpro64 CPU fan
#1
Hi
I have just fitted a fan to my heatsink.
When I checked the voltage on the connector labelled FAN, there is no voltage.
Currently I am taking the 12 volts from the 4 pin socket behind the power socket.
Should the FAN socket be working?

Thanks
mikeD
Reply
#2
(07-11-2018, 01:28 PM)mikeD Wrote: Hi
I have just fitted a fan to my heatsink.
When I checked the voltage on the connector labelled FAN, there is no voltage.
Currently I am taking the 12 volts from the 4 pin socket behind the power socket.
Should the FAN socket be working?

Thanks
mikeD

There is a 2 Pin 12V fan port at the Pi2 bus. This is a PWM control fan port and speed can be controlled by software.
You also can use the 4pin 12V socket for Fan but this si always on.
Reply
#3
OK thats great, and very useful.
Thanks for the information.
Reply
#4
(07-14-2018, 01:33 PM)tllim Wrote:
(07-11-2018, 01:28 PM)mikeD Wrote: Hi
I have just fitted a fan to my heatsink.
When I checked the voltage on the connector labelled FAN, there is no voltage.
Currently I am taking the 12 volts from the 4 pin socket behind the power socket.
Should the FAN socket be working?

Thanks
mikeD

There is a 2 Pin 12V fan port at the Pi2 bus. This is a PWM control fan port and speed can be controlled by software.
You also can use the 4pin 12V socket for Fan but this si always on.

Hi,
I have a couple of extra questions regarding fan control. I feel like I am missing something fairly basic, but I havent been able to find another source for this information.

1. Is there a way to enable the fan pins?
(Pine64 sold a small 12V fan made for the rockpro64 board, but there doesnt seem to be an explanation on how to turn it on or enable the pins.) Could it possibly be part of or an extension of the pi-2 bus?

2. I tried to install fancontrol as part of lm-sensors but lm-sensors returned that there were no sensors installed, which prevented fancontrol or pwmconfig from running. I also installed xsensors, psensor, neither of which were able to locate a temperature sensor either. BUT, 'sensors viewer' is reading something: "ACPI v<Unknown> zones" and displays a thermal_zone0 and thermal_zone1 are showing a realiztic looking 38C ... until you run some cpu tasks -- which you can feel the change in temperature in the mid-profile heatsink just by touching it, yet the value hasn't budged, so I am skeptical that it is actually reading a value. Does this imply that I have a defective sensor, or is is just not enabled.

3. I have been trying to find examples from other pine64 boards to see if I could adapt it, but it appears that no other board had a dedicated 12v 2pin fan port. Perhaps I suck at finding stuff in forums/google. I have seen other examples using the PI-2 Bus itself, but I would prefer to use the pins specifically designated for that purpose.

If you suspect I have missed something, or want any terminal outputs, etc. please let me know.
Thanks,
Reply
#5
As of today, if you want to try out the fan then you'll need to update the kernel:
Code:
https://github.com/ayufan-rock64/linux-kernel/releases/tag/4.4.132-1077-rockchip-ayufan


Currently the fan works in an on/off mode (at least for me):
Code:
nano /sys/class/hwmon/hwmon0/pwm1


The range should be from 0 - 255, but for now ... for me ... 0, 1 and 2 are 'off' while 3 and up is 'on'.
  If you manage to click this link you'll join in the IRC channel
Reply
#6
(07-30-2018, 09:35 AM)DIDquest Wrote: BUT, 'sensors viewer' is reading something: "ACPI v<Unknown> zones" and displays a thermal_zone0 and thermal_zone1 are showing a realiztic looking 38C ... until you run some cpu tasks -- which you can feel the change in temperature in the mid-profile heatsink just by touching it, yet the value hasn't budged, so I am skeptical that it is actually reading a value. Does this imply that I have a defective sensor, or is is just not enabled.
On 4.4.132-1075-rockchip-ayufan-ga83beded8524 thermal_zone0 seems to report CPU temp fine to me. ran up to 81C in testing which seemed odd (as I was looking for thermal throttling which did not happen) but have since seen (on IRC) it is set at 85C at the moment, likely to drop to 80C in a future release.

thermal_zone1 is harder to guess: at idle is equal to zone0, under load as zone0 climbs it seems to lag about 5C behind but also climbs. Need to see if there is any RK3399 spec of where the sensors actually are.
ROCKPro64 v2.1 2GB, SM961 128GB NVMe for rootfs, HDMI video & sound, Bluetooth keyboard & mouse
Started Bionic minimal - now Cosmic, Openbox desktop for general purpose daily PC.
Reply
#7
Try `rock64_diagnostic.sh -m` to display current status of the system.

I will tune the fan controls later to give more fine control. It is all about the duty cycle and period of square wave. We might be looking at 50-200Hz instead of last released 1kHz, and previously 100kHz.
Reply
#8
(07-30-2018, 10:10 AM)Luke Wrote: As of today, if you want to try out the fan then you'll need to update the kernel:
Code:
https://github.com/ayufan-rock64/linux-kernel/releases/tag/4.4.132-1077-rockchip-ayufan


Currently the fan works in an on/off mode (at least for me):
Code:
nano /sys/class/hwmon/hwmon0/pwm1


The range should be from 0 - 255, but for now ... for me ... 0, 1 and 2 are 'off' while 3 and up is 'on'.

Thanks!
This solution works. While it is annoying that you have to manually set it every time, it is very useful for times when you know that you will be doing cpu intensitive tasks.

I must admit the simplicity of the file 'pwm1' was surprising... it is just a single number... not like a rule or something more complex. (insert "the more you know" star animation).
Reply
#9
(07-30-2018, 03:46 PM)ayufan Wrote: Try `rock64_diagnostic.sh -m` to display current status of the system.

I will tune the fan controls later to give more fine control. It is all about the duty cycle and period of square wave. We might be looking at 50-200Hz instead of last released 1kHz, and previously 100kHz.

The command on its own when entered into terminal results in "command not found". It seems like a bash file, but when I searched for it: no results. If it is a bash file, where is it located so I can test it?
Reply
#10
(07-31-2018, 02:29 PM)DIDquest Wrote: The command on its own when entered into terminal results in "command not found". It seems like a bash file, but when I searched for it: no results. If it is a bash file, where is it located so I can test it?


It is located in /usr/local/sbin/
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Anybody built a RockPro64 Cluster ? axelf 4 304 12-04-2018, 12:47 PM
Last Post: gigagames
  RockPro64-AI ASword 7 3,065 12-03-2018, 07:59 AM
Last Post: aibarboza
Photo RockPro64 Case 2x3.5" HDDs and 2x2.5 HDDs Luke 38 8,194 11-05-2018, 11:12 PM
Last Post: ootoovak
  Plexdrive on RockPro64 carracedo 0 226 10-27-2018, 04:43 PM
Last Post: carracedo
  RockPro64 Features/options working/not working lavermil 9 603 10-23-2018, 02:48 AM
Last Post: lavermil
  5 MP camera with Rockpro64 rahulsharma 1 199 10-12-2018, 04:33 PM
Last Post: tllim
  dedicated GPU PCIe on RockPro64 ice2642 3 595 10-12-2018, 02:00 AM
Last Post: ice2642
  My "rockpro64" is different from the public circuit diagram. t4_4t 2 332 10-04-2018, 10:44 PM
Last Post: t4_4t
  New RockPro64 4GB - No SD BOOT 2Play! 9 860 10-02-2018, 03:29 AM
Last Post: 2Play!
  Camera interface with rockpro64 rahulsharma 4 305 09-26-2018, 12:33 AM
Last Post: rahulsharma

Forum Jump:


Users browsing this thread: 1 Guest(s)