Jump to content

deathisunknown

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by deathisunknown

  1. @soerenderfor Do you have any ideas for anything else I might try to get my fan header to work again? This week I will flash a fresh Ayufan image on an SD card and make sure the hardware still works, but I am pretty certain it does - and it only stopped when I swapped the kernel to Armbian builds.
  2. @soerenderfor The concept of PWM is to switch the 12V supply on and off to produce a lower average power. A 5V supply should be roughly equivalent to a 12V supply with PWM of ~106 (note: 5V / 12V = 41.67% -> 41.67% * 255 = 106.25). There are reports online that if the supply voltage is too low, the fan won't start spinning, but 5V seems fine.
  3. @soerenderfor I can confirm that the fan definitely works. I connected the fan to the 5V and GND (pins 2 and 4) of the PI-2 bus (GPIO) header and the fan spins! (The pinout can be found under "ROCKPro64 Pi-2 Pin assignment and definition" here: https://wiki.pine64.org/index.php/ROCKPro64#Board_Information.2C_Schematics_and_Certifications) Actually, this will be a great temporary solution until I can figure out why my fan header isn't powered. Temperatures are half what they were!
  4. @soerenderfor I do have both of those paths, but still no luck with those commands. I made sure to disable ATS as well to prevent it from interfering with our tests. root@RockPro64:/# systemctl disable ats Removed /etc/systemd/system/basic.target.wants/ats.service. root@RockPro64:/# cat /sys/devices/virtual/thermal/thermal_zone0/mode enabled root@RockPro64:/# echo disabled > /sys/devices/virtual/thermal/thermal_zone0/mode root@RockPro64:/# cat /sys/devices/virtual/thermal/thermal_zone0/mode disabled root@RockPro64:/# cat /sys/devices/platform/pwm-fan/hwmon/hwmon1/pwm1 0 root@RockPro64:/# echo 255 > /sys/devices/platform/pwm-fan/hwmon/hwmon1/pwm1 root@RockPro64:/# cat /sys/devices/platform/pwm-fan/hwmon/hwmon1/pwm1 255 Still no fan spin.
  5. @soerenderfor I did not attempt to write to hwmon0/pwm1, because I do not have hwmon0: root@RockPro64:/# ll /sys/devices/platform/pwm-fan/hwmon/ total 0 drwxr-xr-x 3 root root 0 Jan 24 15:08 . drwxr-xr-x 4 root root 0 Jan 24 15:08 .. drwxr-xr-x 3 root root 0 Jan 24 15:08 hwmon1 Sure: root@RockPro64:/# ll /sys/devices/platform/pwm-fan/ total 0 drwxr-xr-x 4 root root 0 Jan 24 15:08 . drwxr-xr-x 99 root root 0 Jan 24 15:08 .. lrwxrwxrwx 1 root root 0 Jan 24 15:42 driver -> ../../../bus/platform/drivers/pwm-fan -rw-r--r-- 1 root root 4096 Jan 24 15:42 driver_override drwxr-xr-x 3 root root 0 Jan 24 15:08 hwmon -r--r--r-- 1 root root 4096 Jan 24 15:42 modalias lrwxrwxrwx 1 root root 0 Jan 24 15:42 of_node -> ../../../firmware/devicetree/base/pwm-fan drwxr-xr-x 2 root root 0 Jan 24 15:42 power lrwxrwxrwx 1 root root 0 Jan 24 15:08 subsystem -> ../../../bus/platform -rw-r--r-- 1 root root 4096 Jan 24 15:08 uevent
  6. @soerenderfor I tried your commands here, replacing hwmon0 with hwmon1, since I have no 'pwm1' under hwmon0. My fan still does not spin. It looks like both you and @Mathias have 'pwm1' available under 'hwmon0', but mine is on 'hwmon1'. Perhaps this is the reason?
  7. @Mathias I compiled the latest Armbian kernel a few days ago, which definitely has the pwm-fan config available as a module. root@RockPro64:~$ uname -a Linux RockPro 5.4.12-rockchip64 #19.11.8 SMP PREEMPT Fri Jan 17 14:07:39 AEST 2020 aarch64 GNU/Linux Interesting to hear your fan is working. Some users have reported being able to get their fan spinning at a constant speed, even without pwm-fan, but I'm not even able to do that.
  8. I've been trying to test ATS on a RockPro64 with Armbian, and with Werner's changes I can confirm that pwm_fan is now being loaded as a kernel module, but I was still getting the startup error from ATS complaining the FAN_CTL value was missing. root@RockPro64:/# ats --test getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/temp, /sys/class/thermal/thermal_zone1/temp, ERROR exit 1 I found that pwm1 is now available under `hwmon1`, not `hwmon0`. I'm assuming this is because fan_pwm is loaded as a module, and not included in the kernel as it is with ayufan's kernel. root@RockPro64:/# ll /sys/class/hwmon/ lrwxrwxrwx 1 root root 0 Jan 17 15:02 hwmon0 -> ../../devices/platform/ff3d0000.i2c/i2c-4/4-0022/power_supply/tcpm-source-psy-4-0022/hwmon0 lrwxrwxrwx 1 root root 0 Jan 17 15:12 hwmon1 -> ../../devices/platform/pwm-fan/hwmon/hwmon1 root@RockPro64:/# ls /sys/class/hwmon/hwmon1/ device name of_node power pwm1 subsystem uevent To fix this you have to edit `/etc/ats.config` line 64, changing `PWM_CTL = "/sys/class/hwmon/hwmon0/pwm1,` to `PWM_CTL = "/sys/class/hwmon/hwmon1/pwm1,`. Notice `hwmon0` to `hwmon1`. This will fix the ATS error, but for me the fan will still not spin. root@RockPro64:/# ats --test info:'SYSTEM' Table info: 'BOARD' Table info: 'NAME' = ROCKPRO64 info: 'CPU' = RK3399 info: 'THERMAL0_CTL' = /sys/class/thermal/thermal_zone0/temp info: 'THERMAL1_CTL' = /sys/class/thermal/thermal_zone1/temp info: 'PWM_CTL' = /sys/class/hwmon/hwmon1/pwm1 info: 'MAX_CONTINUOUS_THERMAL_TEMP' = 60 info: 'MIN_CONTINUOUS_THERMAL_TEMP' = 40 info: 'MAX_PWM' = 255 info: 'MIN_PWM' = 40 info: 'ALWAYS_ON' = false info: 'PROFILE_NAME' = profile0 info: 'PROFILE' = 0 info:'Pratio' timers info: 'Pratio[ -20 - 40 [' = 0 info: 'Pratio[ 40 ]' = 40 info: 'Pratio[ 41 ]' = 50 info: 'Pratio[ 42 ]' = 61 info: 'Pratio[ 43 ]' = 72 info: 'Pratio[ 44 ]' = 83 info: 'Pratio[ 45 ]' = 93 info: 'Pratio[ 46 ]' = 104 info: 'Pratio[ 47 ]' = 115 info: 'Pratio[ 48 ]' = 126 info: 'Pratio[ 49 ]' = 136 info: 'Pratio[ 50 ]' = 147 info: 'Pratio[ 51 ]' = 158 info: 'Pratio[ 52 ]' = 169 info: 'Pratio[ 53 ]' = 179 info: 'Pratio[ 54 ]' = 190 info: 'Pratio[ 55 ]' = 201 info: 'Pratio[ 56 ]' = 212 info: 'Pratio[ 57 ]' = 222 info: 'Pratio[ 58 ]' = 233 info: 'Pratio[ 59 ]' = 244 info: 'Pratio[ 60 ]' = 255 info: 'Pratio[ 60 - 70 [' = 255 Stopping for[ seconds ]............... 3 CPU Temperature[ max 70 °C ].......... 0 GPU Temperature[ max 70 °C ].......... 0 Fan PWM Duty Cycle value[ 0 - 255 ]... 190 -------------------- Running for[ seconds ]................ 60 CPU Temperature[ max 70 °C ].......... 56 GPU Temperature[ max 70 °C ].......... 55 Fan PWM Duty Cycle value[ 0 - 255 ]... 212 Manually reading pwm1 when running ATS as a service reveals that it is successfully writing a value (0-255): root@RockPro64:/# cat /sys/class/hwmon/hwmon1/pwm1 222 I've connected the official RockPro64 fan into the `+FAN-` pin header, shown as label 4 (J8) on the board layout https://wiki.pine64.org/index.php/ROCKPro64#Connectors.2C_sockets_and_headers, but it will still not spin. I tried measuring the voltage across these pins with my terrible multimeter (expecting 10.8 - 13.2V based on the fan specification, or maybe a fraction of that corresponding to the PWM value), but I'm reading 0V. Not too sure where the issue is now.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines