From c23dac4dba689f633fbb21ea0c7569e8ea0de921 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Thu, 11 Jan 2024 23:13:48 -0800 Subject: [PATCH] feat: Add ujust command to force-enable AMD pstate --- .../deck/shared/usr/share/ublue-os/just/60-custom.just | 6 +++++- .../desktop/shared/usr/share/ublue-os/just/60-custom.just | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just b/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just index cb7b746f3a..78f2d3ea4c 100644 --- a/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just +++ b/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just @@ -250,6 +250,10 @@ resize-deckswap: switch-to-ext4: sudo sed -i 's@STEAMOS_BTRFS_SDCARD_FORMAT_FS="btrfs"@STEAMOS_BTRFS_SDCARD_FORMAT_FS="ext4"@g' /etc/default/steamos-btrfs +# Force-enable AMD pstate +pstate-force-enable: + rpm-ostree kargs --append-if-missing=amd_pstate=active + # Enable ZRAM (Enabled by default) zram-on: #!/usr/bin/bash @@ -268,7 +272,7 @@ zram-off: ublue-update --wait KARGS=$(rpm-ostree kargs) if grep -qv 'zram' <<< ${KARGS}; then - rpm-ostree kargs --append=systemd.zram=0 + rpm-ostree kargs --append-if-missing=systemd.zram=0 echo 'ZRAM disabled. Please reboot.' else echo 'ZRAM is already disabled.' diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just b/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just index d8a9fb5c5e..f5e56a8877 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just @@ -144,6 +144,10 @@ install-adwaita-for-steam: echo "This is only supported under GNOME." fi +# Force-enable AMD pstate +pstate-force-enable: + rpm-ostree kargs --append-if-missing=amd_pstate=active + # Set system to boot without showing the grub screen with options hide-grub: #!/usr/bin/bash