feat: Add ujust command to force-enable AMD pstate

This commit is contained in:
Kyle Gospodnetich 2024-01-11 23:13:48 -08:00
parent 56e085d41b
commit c23dac4dba
2 changed files with 9 additions and 1 deletions

View File

@ -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.'

View File

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