Skip to content

Commit

Permalink
low amd power consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Dec 20, 2024
1 parent 29c5891 commit 302ef55
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 @@ -174,6 +174,11 @@ mkdir -p /etc/NetworkManager/conf.d
printf '#[device]\n#wifi.backend=iwd\n' > /etc/NetworkManager/conf.d/wifi_backend.conf
#systemctl enable iwd.service

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
Expand Down

0 comments on commit 302ef55

Please sign in to comment.