packaging: udev rule to persist AMD GPU high power state across boots

Devuan (sysvinit/OpenRC, no systemd) — a udev rule is the init-agnostic
way to make power_dpm_force_performance_level=high stick. Matches by
DRIVER==amdgpu so it survives DRM card renumbering across GPU resets.
Complements the in-container best-effort apply (unprivileged, can't
write root sysfs) shipped in 0.1.53.
Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014S8VtAvG499SsCbeESRK7V
parent 20b55838
# Lock AMD GPUs to their top power/clock state (power_dpm_force_performance_level
# = high) at device bind. Polaris/GCN cards frequently HANG under sustained
# Vulkan compute when the amdgpu driver switches DPM power states mid-kernel;
# pinning to a fixed state avoids those transitions.
#
# Matched by DRIVER=="amdgpu" (not card number), so it survives DRM card
# renumbering across GPU resets/reboots. Fires for every AMD GPU present.
#
# Install:
# sudo cp 30-amdgpu-dpm-high.rules /etc/udev/rules.d/
# sudo udevadm control --reload-rules
# sudo udevadm trigger --subsystem-match=pci --attr-match=driver=amdgpu
# Verify:
# cat /sys/class/drm/card*/device/power_dpm_force_performance_level # -> high
ACTION=="add|change", SUBSYSTEM=="pci", DRIVER=="amdgpu", ATTR{power_dpm_force_performance_level}="high"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment