diff --git a/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup b/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup index a2c89a6b..c77ac3f3 100755 --- a/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup +++ b/system_files/desktop/shared/usr/libexec/bazzite-hardware-setup @@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO) FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO) # SCRIPT VERSION -HWS_VER=40 +HWS_VER=41 HWS_VER_FILE="/etc/bazzite/hws_version" HWS_VER_RAN=$(cat $HWS_VER_FILE) @@ -59,7 +59,12 @@ if [[ $IMAGE_NAME =~ "deck" && ":AOKZOE A1 AR07:" =~ ":$SYS_ID:" ]]; then fi if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then - if [[ "GenuineIntel" == "$CPU_VENDOR" ]]; then + if [[ "AuthenticAMD" == "$CPU_VENDOR" ]]; then + if [[ ! $KARGS =~ "iomem" ]]; then + echo "AMD Framework Laptop detected, adding needed kargs for ryzenadj" + NEEDED_KARGS+=("--append-if-missing=iomem=relaxed") + fi + elif [[ "GenuineIntel" == "$CPU_VENDOR" ]]; then if [[ ! $KARGS =~ "hid_sensor_hub" ]]; then echo "Intel Framework Laptop detected, applying needed keyboard fix" NEEDED_KARGS+=("--append-if-missing=module_blacklist=hid_sensor_hub");