Skip to content

Commit c23dac4

Browse files
committed
feat: Add ujust command to force-enable AMD pstate
1 parent 56e085d commit c23dac4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

system_files/deck/shared/usr/share/ublue-os/just/60-custom.just

+5-1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ resize-deckswap:
250250
switch-to-ext4:
251251
sudo sed -i 's@STEAMOS_BTRFS_SDCARD_FORMAT_FS="btrfs"@STEAMOS_BTRFS_SDCARD_FORMAT_FS="ext4"@g' /etc/default/steamos-btrfs
252252

253+
# Force-enable AMD pstate
254+
pstate-force-enable:
255+
rpm-ostree kargs --append-if-missing=amd_pstate=active
256+
253257
# Enable ZRAM (Enabled by default)
254258
zram-on:
255259
#!/usr/bin/bash
@@ -268,7 +272,7 @@ zram-off:
268272
ublue-update --wait
269273
KARGS=$(rpm-ostree kargs)
270274
if grep -qv 'zram' <<< ${KARGS}; then
271-
rpm-ostree kargs --append=systemd.zram=0
275+
rpm-ostree kargs --append-if-missing=systemd.zram=0
272276
echo 'ZRAM disabled. Please reboot.'
273277
else
274278
echo 'ZRAM is already disabled.'

system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just

+4
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ install-adwaita-for-steam:
144144
echo "This is only supported under GNOME."
145145
fi
146146

147+
# Force-enable AMD pstate
148+
pstate-force-enable:
149+
rpm-ostree kargs --append-if-missing=amd_pstate=active
150+
147151
# Set system to boot without showing the grub screen with options
148152
hide-grub:
149153
#!/usr/bin/bash

0 commit comments

Comments
 (0)