weigon

Members
  • Content Count

    6
  • Joined

  • Last visited

About weigon

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. With nightly (4.20.0) I can't get my NVMe SSD mounted on the T4 anymore. It works with stable (4.4) http://ix.io/1z5S Any hints?
  2. Just for reference, a simplified version that works with both linux 4.4 and the linux 4.20 kernel: # make the PWM port available to sysfs $ echo 0 | sudo tee /sys/class/pwm/pwmchip1/export 0 # set the PWM-freq to 25kHz (=40000ns) $ echo 40000 | sudo tee /sys/class/pwm/pwmchip1/pwm0/period 40000 # enable the PWM $ echo 1 | sudo tee /sys/class/pwm/pwmchip1/pwm0/enable 1 It starts the fan at fullspeed as by default the polarity of the PWM is inversed: duty_cycle of "0" == "always on". $ cat /sys/class/pwm/pwmchip1/pwm0/polarity inversed $ cat /sys/class/pwm/pwmchip1/pwm0/duty_cy
  3. After removing the noise from the input-data, I now got quite reasonable RPM values for the Noctua NF A14: RPM per duty_cycle [ns] duty_cycle RPM 180 158 200 476 250 637 300 938 400 1111 500 1200 2000 1251 Below 180ns the fan stops, above 500ns it doesn't really increase anymore. fan.svg
  4. I just found out that the PWM freq should be 25kHz and that the TACH signal gives 2 ticks per round. That means: In the script I pasted earlier "rounds/s" were just ticks and the "RPM" were "twice the RPM". After adjusting the PWM freq the corrected measurements for the Noctua NF A14: duty_cycle: 170ns, stops duty_cycle: 180ns, ticks: ~3, RPM: 90 duty_cycle: 190ns, ticks: ~4, RPM: 120 duty_cycle: 200ns, ticks: 8, RPM: 240 duty_cycle: 250ns, ticks: 16, RPM: 480 duty_cycle: 300ns, ticks: 22, RPM: 660 duty_cycle: 350ns, ticks: 34,
  5. Yep, gpio70 does the trick. Use the below python script to print the current measured rounds: #!/usr/bin/env python ## $ pip install python-periphery from periphery import GPIO import datetime def fan_rpm(): with GPIO(70) as rpm_gpio: rpm_gpio = GPIO(70) assert rpm_gpio.supports_interrupts rpm_gpio.edge = "rising" while True: cur = datetime.datetime.now() start = cur end = cur + datetime.timedelta(seconds=1) time_left = end - cur rounds = 0 while time_left.tot
  6. I run 3-pin fan (Noise Blocker XM-1) connected to the FAN port of the T4. It is mounted on top of a "AAB Cooling NB Cooler 1" heatsink. GPIO4_C6 is exported as "pwm1" and can be used directly via sysfs: # export the PWM1-pin $ echo 0 > /sys/class/pwm/pwmchip1/export # setup PWM (5% duty-cycle) $ echo normal > /sys/class/pwm/pwmchip1/pwm0/polarity $ echo 100000 > /sys/class/pwm/pwmchip1/pwm0/period $ echo 5000 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle # enable the PWM output $ echo 1 > /sys/class/pwm/pwmchip1/pwm0/enable (The 5% duty c