Files
arch-system-hyprland/02-system/files/usr/local/bin/gpuprofile.sh
T
2026-07-02 15:56:21 +02:00

11 lines
412 B
Bash

#!/bin/sh
# Force the AMD GPU to "high" performance level.
# Pins memory clock to 100% — raises idle draw (~20W) but fixes stuttering.
# Run as root (systemd oneshot). Finds the AMD card by vendor id; no hardcoded cardN.
for c in /sys/class/drm/card[0-9]*; do
[ "$(cat "$c/device/vendor" 2>/dev/null)" = "0x1002" ] || continue
echo high > "$c/device/power_dpm_force_performance_level"
exit 0
done
exit 0