feat: Automatically change iomem for handhelds that need ryzenadj

This commit is contained in:
Kyle Gospodnetich 2024-01-29 10:12:18 -08:00
parent adfa1e0a57
commit 9b1b4c0931

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=26
HWS_VER=27
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)
@ -139,6 +139,13 @@ if [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
fi
fi
if [[ ":ROG Ally RC71L_RC71L:83E1:G1618-04:G1617-01:G1619-05:AIR Plus:" =~ ":$SYS_ID:" ]]; then
if [[ ! $KARGS =~ "iomem" ]]; then
echo "Adding needed kargs for ryzenadj"
NEEDED_KARGS+=("--append-if-missing=iomem=relaxed")
fi
fi
if [[ $KARGS =~ "nomodeset" ]]; then
echo "Removing nomodeset"
NEEDED_KARGS+=("--delete-if-present=nomodeset")