fix: Set GPU scheduler back to RR

This commit is contained in:
Kyle Gospodnetich 2024-02-09 09:08:49 -08:00
parent d4b587d389
commit d64208df44

View File

@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
# SCRIPT VERSION
HWS_VER=30
HWS_VER=31
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)
@ -156,6 +156,11 @@ if [[ $KARGS =~ "nomodeset" ]]; then
NEEDED_KARGS+=("--delete-if-present=nomodeset")
fi
if [[ ! $KARGS =~ "gpu_sched.sched_policy" ]]; then
echo "Fixing GPU scheduler default"
NEEDED_KARGS+=("--append-if-missing=gpu_sched.sched_policy=0")
fi
if [[ -n "$NEEDED_KARGS" ]]; then
echo "Found needed karg changes, applying the following: ${NEEDED_KARGS[*]}"
plymouth display-message --text="Updating kargs - Please wait, this may take a while" || true