feat: Automatically disable bluetooth ertm to improve reliability of controller connections

This commit is contained in:
Kyle Gospodnetich 2024-06-18 21:06:36 -07:00
parent 797c404f88
commit c313765470

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=42
HWS_VER=43
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)
@ -113,6 +113,11 @@ if /usr/libexec/hwsupport/simpledeckytdp-supported-hardware; then
fi
fi
if [[ ! $KARGS =~ "disable_ertm" ]]; then
echo "Adding needed kargs for bluetooth"
NEEDED_KARGS+=("--append-if-missing=bluetooth.disable_ertm=1")
fi
if [[ $KARGS =~ "nomodeset" ]]; then
echo "Removing nomodeset"
NEEDED_KARGS+=("--delete-if-present=nomodeset")