Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samonzeweb/argononefan
Argon One fan tools
https://github.com/samonzeweb/argononefan
Last synced: about 1 month ago
JSON representation
Argon One fan tools
- Host: GitHub
- URL: https://github.com/samonzeweb/argononefan
- Owner: samonzeweb
- License: mit
- Created: 2019-12-27T14:03:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T14:33:58.000Z (5 months ago)
- Last Synced: 2024-08-03T06:01:36.326Z (5 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-argonone - samonzeweb/argononefan
README
# Argon One fan speed tools
## Project purpose
This project allows automatic fan speed adjustment of the Argon One Case
without Python. It is written in Go to use less memory (and for fun).The project creates 3 tools :
* `readtemp` : display the current CPU temperature
* `setfan` : set the fan speed
* `adjustfan` : automatic fan speed adjustmentBoth `setfan` and `adjustfan` require root privileges to access I2C device.
## Tested on...
I created this for my personnal use, and only tested on a Raspberry Pi 4 using :
* Ubuntu 19.10 (arm64).
* Raspbian (arm32, based on Debian Buster).The deploy part is rather *quick & dirty*. But it works.
## Build and install
To build, and install the tools (including starting adjustfan daemon) :
```
make
sudo make install
```The tools are installed in `/opt/argononefan`. After that `adjustfan` should run as a service. You can change thresholds (see below).
## Uninstall
```
sudo make uninstall
```## Change fan thresholds
The file `/opt/argononefan/adjustfan.json` contains the configuration used to adjust the fan speed according to the CPU temperature.
You can change its content, and restart the service with :
```
sudo systemctl restart adjustfan.service
```An example :
```json
{
"thresholds": [
{
"temperature": 65,
"fanspeed": 100
},
{
"temperature": 60,
"fanspeed": 50
},
{
"temperature": 55,
"fanspeed": 10
}
]
}
```Thresholds have to be ordered from the higher to lower temperature. Under the lowest temperature the fan is stopped.
## Licence
Released under the MIT License, see LICENSE.txt for more informations.==)