Skip to content

Commit

Permalink
feat: Add ujust command to force-enable AMD pstate
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 12, 2024
1 parent 56e085d commit c23dac4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Expand Up @@ -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
Expand All @@ -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.'
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit c23dac4

Please sign in to comment.