Giovanni Harting eb220f744a better error handling
fixed resume reset
better logging messages

Signed-off-by: Giovanni Harting <539@idlegandalf.com>
2019-09-06 07:23:59 +02:00
2019-09-03 15:25:29 +02:00
2019-09-03 15:30:00 +02:00
2019-09-03 15:25:29 +02:00
2019-09-06 07:23:59 +02:00
2019-09-03 15:27:49 +02:00
2019-09-03 16:21:30 +02:00

PyFAN

This python script utilizes hwmon and PID as base for fan controlling.

Usage

Put your config in /etc/pyfan (reference example config) and enable pyfan as a service (service file also available here).

Config

To know which hwmon is what device and what pwm controls what fan, the following commands can help you:

List all devices + names: tail /sys/class/hwmon/hwmon*/name

Enable control for a specific pwm: echo 1 > /sys/class/hwmon/hwmonX/pwmX_enable

Set fan speed: echo [0-255] > /sys/class/hwmon/hwmonX/pwmX

After you have figured out which fan is controlled by what pwm, you can adjust your config. You can have as many thermal zones as you want, just repeate them like shown.

Description
Fan control utilising hwmon and pid.
Readme 79 KiB
1.6.1 Latest
2023-08-26 00:16:26 +02:00
Languages
Python 100%