Skip to content

Commit

Permalink
udev for low power consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Dec 20, 2024
1 parent e2b8c0d commit f588db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chroot_iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ apt install -y apple-t2-audio-config apple-firmware-script
apt install -y linux-t2=${KERNEL_VERSION}-${PKGREL}-${CODENAME}

# 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
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

KERNEL_VERSION=$(dpkg -l | grep -E "^ii linux-image-[0-9]+\.[0-9]+\.[0-9\.\-]+-generic" | awk '{print $2}' | sed 's/linux-image-\(.*\)-generic/\1/')
#apt purge -y -qq \
Expand Down

0 comments on commit f588db2

Please sign in to comment.