From 7cd4ea1e80aaaafc7c1d21a261aaf37c202c495f Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Tue, 6 Aug 2024 14:08:02 -0700 Subject: [PATCH] feat(deck): Improve default CPU frequency behavior on Galileo & Jupiter --- .../desktop/shared/usr/libexec/bazzite-hardware-setup | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup b/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup index b0e404ec..fa3c2339 100755 --- a/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup +++ b/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup @@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO) FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO) # SCRIPT VERSION -HWS_VER=46 +HWS_VER=47 HWS_VER_FILE="/etc/bazzite/hws_version" HWS_VER_RAN=$(cat $HWS_VER_FILE) @@ -49,6 +49,10 @@ if /usr/libexec/hwsupport/valve-hardware; then NEEDED_KARGS+=("--append-if-missing=amdgpu.gttsize=8128") fi fi + + if [[ ! $KARGS =~ "amd_pstate" ]]; then + NEEDED_KARGS+=("--append-if-missing=amd_pstate=passive") + fi fi if [[ $IMAGE_NAME =~ "deck" && ":AOKZOE A1 AR07:" =~ ":$SYS_ID:" ]]; then @@ -163,6 +167,8 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then echo "Jupiter with 32GB RAM detected, disabling BIOS updates..." systemctl disable --now jupiter-biosupdate.service fi + + systemctl enable --now scx.service fi systemctl enable --now jupiter-fan-control.service