17 lines
591 B
Bash
17 lines
591 B
Bash
# AMD GPU tuning — desktop only (high perf level + custom fan curve).
|
|
# Skipped on laptops or non-AMD GPUs.
|
|
if [ "$IS_DESKTOP" != 1 ] || [ "$GPU" != amd ]; then
|
|
info "skipping AMD GPU tuning (IS_DESKTOP=$IS_DESKTOP GPU=$GPU)"
|
|
return 0 2>/dev/null || exit 0
|
|
fi
|
|
|
|
deploy usr/local/bin/gpuprofile.sh 755
|
|
deploy usr/local/bin/amdgpu-fancontrol.sh 755
|
|
deploy etc/systemd/system/gpuprofile.service
|
|
deploy etc/systemd/system/amdgpu-fancontrol.service
|
|
deploy etc/systemd/system/amdgpu-fancontrol.timer
|
|
|
|
systemctl daemon-reload
|
|
enable_unit gpuprofile.service
|
|
enable_unit amdgpu-fancontrol.timer
|