Skip to content

Commit

Permalink
fix: Set GPU scheduler back to RR
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Feb 9, 2024
1 parent d4b587d commit d64208d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d64208d

Please sign in to comment.