Skip to main content

FAN Interface

Interface Test Methods

  • Connection

    Connect the fan to ROCK 5A as shown here

    fan connection
  • Rsetup select Thermal Governor mode

    1. Open a terminal, type rsetup, select Hardware.
    rsetup hardware
    1. Enter to Thermal governor
    rsetup hardware
    1. The default governor should be power_allocator.
    rsetup hardware
  • power_allocator

    The system defaults to fanless mode or DC fan mode. Ensure that the machine can still work stably without a cooling fan

  • user_space

    1. Select user_space

    2. Locate the fan device with the following command.

    ls /sys/class/thermal/cooling_device*/type
    cat /sys/class/thermal/cooling_device*/type

    pwm fan result img

    As shown, pwm-fan corresponds to cooling_device4.

    1. Turn off the fan

    radxa@rock-5a:~$ echo 0 | sudo tee /sys/class/thermal/cooling_device4/cur_state

    1. Set the fan to the highest setting.

    radxa@rock-5a:~$ sudo cp /sys/class/thermal/cooling_device4/max_state /sys/class/thermal/cooling_device4/cur_state

  • step_wise

    When the CPU temperature reaches 60 degrees Celsius the fan starts to rotate.

  • Shutdown and sleep states

    The fan should remain stationary during shutdown and sleep.

  • Refer to

    See more at rsetup thermal-governor section