Skip to content

Rock 5B: PWM Fan Configuration

Last Update: 2024-03-13

The following guide or recipe requires shell access to your FydeOS installation, therefore developer mode is assumed to be enabled. If altering system file is required, you will also need to disable root file system verification.

This tutorial provides a step-by-step guide on how to enable the Pulse Width Modulation (PWM) fan for the Radxa Rock 5B.

Prerequisites

Before proceeding, ensure you have:

Procedure

Step 1: Acquiring Administrator Privileges

  1. Log into your FydeOS account and navigate to the desktop.

  2. Access the bash shell environment via crosh (Control + Alt + T) or tty.

  3. Enter sudo su to acquire administrator privileges.

    Note: from FydeOS v17 and openFyde r114 onwards, sudo su will no longer work. Older versions will not be impacted.

Step 2: Remounting the Root Directory

Enter the command mount -o remount,rw / to remount the root directory with read and write permissions. This step is crucial for enabling PWM fan control by modifying files.

Step 3: Modifying the Env.txt File

Refer to the RK3588 SoC: How to Use Device Tree Overlay document and add pwm-fan to the overlays variable in the Env.txt file.

Step 4: Copying the Configuration File

Enter the command cp /usr/share/rock5b/rock5-fan-control.conf /etc/init to copy the configuration file.

Step 5: Restarting the System

After completing the above steps, restart the system to apply the changes.

Congratulations! You have successfully enabled the PWM fan for the Radxa Rock 5B.