mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-15 22:21:45 +00:00
fix(deck): Further power consumption adjustments for deck hardware
This commit is contained in:
parent
911e1164f9
commit
8dba40354b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user