|
|
há 1 mês atrás | |
|---|---|---|
| .gitignore | há 1 mês atrás | |
| README.md | há 1 mês atrás | |
| amd-gpu-temp-control.js | há 1 mês atrás | |
| amd-gpu-temp-control.service | há 1 mês atrás | |
| install.sh | há 1 mês atrás |
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).
upp get SmallPowerLimit1 at startup (fallback: 120W)temp*_input sensors under /sys/class/drm/card{N}/device/hwmon/upp PowerPlay table modificationsfs/child_process only — no npm packages)pipx install upp or build from source)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,
"uppPath": "upp"
}
| 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) |
uppPath |
upp |
Path to the upp binary |
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