fix(deck): Further power consumption adjustments for deck hardware

This commit is contained in:
Kyle Gospodnetich 2024-08-14 14:32:55 -07:00
parent 911e1164f9
commit 8dba40354b

View File

@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
# SCRIPT VERSION
HWS_VER=47
HWS_VER=48
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)
@ -50,8 +50,14 @@ if /usr/libexec/hwsupport/valve-hardware; then
fi
fi
echo "Turning off pstate for power consumption reasons"
if [[ $KARGS =~ "amd_pstate" ]]; then
NEEDED_KARGS+=("--delete-if-present=amd_pstate=passive")
NEEDED_KARGS+=("--delete-if-present=amd_pstate=active")
fi
if [[ ! $KARGS =~ "amd_pstate" ]]; then
NEEDED_KARGS+=("--append-if-missing=amd_pstate=passive")
NEEDED_KARGS+=("--append-if-missing=amd_pstate=disable")
fi
fi
@ -169,7 +175,8 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
fi
fi
systemctl enable --now scx.service
# Ensure SCX service is disabled for now.
systemctl disable --now scx.service
systemctl enable --now jupiter-fan-control.service
systemctl enable --now vpower.service