Skip to content

Commit

Permalink
Add udev Rule for AMD GPU Power Management
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Dec 20, 2024
1 parent 03d7d8b commit 3f8f8aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/chroot_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ apt-get purge -y -qq \

apt-get autoremove -y

echo >&2 "===]> Info: Add udev Rule for AMD GPU Power Management... "
cat <<EOF > /etc/udev/rules.d/30-amdgpu-pm.rules
KERNEL=="card[012]", SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="low"
EOF

echo >&2 "===]> Info: Cleanup the chroot environment... "

truncate -s 0 /etc/machine-id || true
Expand Down

0 comments on commit 3f8f8aa

Please sign in to comment.