mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-28 12:40:14 +00:00
fix: Use balanced-no-pstate profile on CPUs that don't support a pstate governor.
This commit is contained in:
parent
fcea16bddc
commit
5e04d6b731
@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Configure Bazzite for current hardware
|
Description=Configure Bazzite for current hardware
|
||||||
After=rpm-ostreed.service
|
After=rpm-ostreed.service tuned.service
|
||||||
Before=systemd-user-sessions.service jupiter-biosupdate.service jupiter-controller-update.service
|
Before=systemd-user-sessions.service jupiter-biosupdate.service jupiter-controller-update.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -246,6 +246,15 @@ else
|
|||||||
echo "No minimum-free ZRAM changes needed"
|
echo "No minimum-free ZRAM changes needed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# NO-PSTATE FIX
|
||||||
|
if grep -q "acpi-cpufreq" <<< "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver)"; then
|
||||||
|
sed -i 's/balanced=balanced/balanced=balanced-no-pstate/g' /etc/tuned/ppd.conf
|
||||||
|
tuned-adm profile balanced-no-pstate
|
||||||
|
else
|
||||||
|
sed -i 's/balanced=balanced-no-pstate/balanced=balanced/g' /etc/tuned/ppd.conf
|
||||||
|
tuned-adm profile balanced
|
||||||
|
fi
|
||||||
|
|
||||||
# HOSTNAME FIX
|
# HOSTNAME FIX
|
||||||
# If the hostname is too long Distrobox will fail during setup
|
# If the hostname is too long Distrobox will fail during setup
|
||||||
# Let's check the length and reset it to something sensible if that happens.
|
# Let's check the length and reset it to something sensible if that happens.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user