Custom fan curve instructions¶
Introduction¶
The fan curve can be customised according to the user's needs using the
Custom mode which enables configuration of the 4 point fan curve. Fans
can be controlled from the firmware settings as well as from Linux, provided
the dasharo-acpi-dkms driver is installed.
Configuration in firmware¶
- Enter the setup menu and navigate through the following menus:
- Dasharo System Features
-
Power Management Settings
-
Set the
Fan profiletoCustomfor theCustom fan curvemenu to appear
Custom fan curve menu¶
In the Custom fan curve menu the 4 point custom curve can be configured.
Temperature corresponds to the X axis, and Fan duty corresponds to the Y axis.
To apply the changes they have to be saved before exiting the menu.
Note
For each point, the Temperature and Fan duty values must be higher than for
the previous point, and must be in range 0-100. Any invalid characters will be
blocked on input.
The order of the points is checked on saving so the curve can be edited in any order.
Configuration in Linux¶
A custom fan curve can also be configured from Linux, however this path requires
installing the dasharo-acpi-dkms driver. It is available on
GitHub.
Installing dasharo-acpi-dkms driver¶
Install dependencies:
sudo apt install dkms
Install driver:
sudo apt install ./dasharo-acpi-dkms_*.deb
To load the driver, reboot or run:
sudo modprobe dasharo-acpi
Install dependencies:
sudo dnf install dkms kernel-headers
Install driver:
sudo dnf install ./dasharo-acpi-dkms_*.rpm
To load the driver, reboot or run:
sudo modprobe dasharo-acpi
Setting the custom fan curve¶
Before setting the custom fan curve it is required to know the hwmon number for the PWM controls. Substitute HWMON_NUM for the result of the following command:
ls /sys/devices/platform/DSHR0001\:00/hwmon
A custom fan curve can be set in Linux using the following commands:
- Setting fan duty to 100% on point X for fan A. The value is in range 0-255.
echo 255 | sudo tee /sys/class/hwmon/HWMON_NUM/pwmA_auto_pointX_pwm
- Setting temperature to 50C on point X for fan A
echo 50000 | sudo tee /sys/class/hwmon/HWMON_NUM/pwmA_auto_pointX_temp
Note
As in the setup menu, for each point the Temperature and Fan duty values
must be higher than for the previous point.
Each write must result in a valid state of the whole curve. Unlike in the setup menu, where the check for the correct order happens on saving the settings, any writes of values, causing the curve to become invalid, will be rejected.