Skip to content

Commit 1dcda86

Browse files
committed
fix: Use balanced-no-pstate profile on CPUs that don't support a pstate governor.
1 parent 36421ee commit 1dcda86

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

system_files/desktop/shared/usr/lib/systemd/system/bazzite-hardware-setup.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Unit]
22
Description=Configure Bazzite for current hardware
3-
After=rpm-ostreed.service
3+
After=rpm-ostreed.service tuned.service
44
Before=systemd-user-sessions.service jupiter-biosupdate.service jupiter-controller-update.service
55

66
[Service]

system_files/desktop/shared/usr/libexec/bazzite-hardware-setup

+9
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ else
246246
echo "No minimum-free ZRAM changes needed"
247247
fi
248248

249+
# NO-PSTATE FIX
250+
if grep -q "acpi-cpufreq" <<< "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver)"; then
251+
sed -i 's/balanced=balanced/balanced=balanced-no-pstate/g' /etc/tuned/ppd.conf
252+
tuned-adm profile balanced-no-pstate
253+
else
254+
sed -i 's/balanced=balanced-no-pstate/balanced=balanced/g' /etc/tuned/ppd.conf
255+
tuned-adm profile balanced
256+
fi
257+
249258
# HOSTNAME FIX
250259
# If the hostname is too long Distrobox will fail during setup
251260
# Let's check the length and reset it to something sensible if that happens.

0 commit comments

Comments
 (0)