|
|
1 月之前 | |
|---|---|---|
| .gitignore | 1 月之前 | |
| README.md | 1 月之前 | |
| amd-gpu-temp-control.js | 1 月之前 | |
| amd-gpu-temp-control.service | 1 月之前 | |
| install.sh | 1 月之前 |
Monitors AMD Radeon GPU temperatures via sysfs and dynamically adjusts TDP limits using upp to keep temperatures within a configured range.
AMD Radeon discrete GPUs with PowerPlay table support:
Not supported: AMD APU iGPUs (different PowerPlay control methods).
temp*_input sensors under /sys/class/drm/card{N}/device/hwmon/amd-smifs/child_process only — no npm packages)sudo ./install.sh
Copies the script to /usr/local/bin/amd-gpu-temp-control and installs the systemd service.
sudo ./install.sh --uninstall
Removes the binary and service unit, stops the service.
Default config path: /etc/amd-gpu-temp-control.json
{
"minTemp": 70,
"maxTemp": 80,
"minTdpPercent": 10,
"maxTdpPercent": 100,
"tdpStepPercent": 10,
"checkIntervalMs": 2000
}
| Parameter | Default | Description |
|---|---|---|
minTemp |
70 | Lower temperature threshold (°C) |
maxTemp |
80 | Upper temperature threshold (°C) |
minTdpPercent |
10 | Minimum TDP percentage when throttling |
maxTdpPercent |
100 | Maximum TDP percentage (full power) |
tdpStepPercent |
10 | Maximum TDP change per cycle (%) |
checkIntervalMs |
2000 | Temperature read interval (ms) |
node amd-gpu-temp-control.js [options]
--config, -c <path> Config file path
--help, -h Show help
systemctl status amd-gpu-temp-control
journalctl -u amd-gpu-temp-control -f
systemctl restart amd-gpu-temp-control
MIT