cfans is a lightweight, userspace daemon written in pure C and configured with JSON that allows custom control of fan speeds via the sysfs(5) interface.
- Custom sensors:
Maxsensor uses maximum temperature of selected sensors.Filesensors reads temperature from an arbitrary file. Apply anoffsetto adjust sensor values. - Curve options: Configurable
hysteresisandresponse timesettings to prevent rapid fan speed changes. - Text-based configuration: Version control friendly, easy to backup.
- Systemd integration: Designed to be run in the background as a systemd service.
- Security: Service runs as a separate user with dropped permissions, utilising udev rules to allow access to the hwmon interface.
Requires gcc, make, systemd-libs and cjson.
Build with:
git clone https://github.com/jontos/cfans.git
cd cfans
makeand install with:
sudo make installCurrently only tested on Arch Linux.
By default cfans reads /etc/cfans/config.json for configuration. A custom location can be supplied with the -c command line flag. See config.json.example for an example configuration.
This project is currently in active development.
This project is licensed under the GNU General Public Licence v3 (GPLv3) - see the LICENCE file for details.