Skip to content

Commit

Permalink
feat: Add auto-vram kargs for Legion GO and ASUS Ally
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Mar 19, 2024
1 parent d2594b6 commit d8f450c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion system_files/desktop/shared/usr/libexec/bazzite-hardware-setup
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=35
HWS_VER=36
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)

Expand Down Expand Up @@ -142,6 +142,23 @@ elif [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
echo "Adding panel orientation for Lenovo Legion Go"
NEEDED_KARGS+=("--append-if-missing=video=eDP-1:panel_orientation=left_side_up")
fi
if [[ ! $KARGS =~ "amdgpu.gttsize" ]]; then
echo "Adding GTTSize for Lenovo Legion Go"
NEEDED_KARGS+=("--append-if-missing=amdgpu.gttsize=8128")
fi
if [[ ! $KARGS =~ "amdgpu.sg_display" ]]; then
echo "Adding SG Display for Lenovo Legion Go"
NEEDED_KARGS+=("--append-if-missing=amdgpu.sg_display=0")
fi
elif [[ ":ROG Ally RC71L_RC71L:ROG Ally RC71L:" =~ ":$SYS_ID:" ]]; then
if [[ ! $KARGS =~ "amdgpu.gttsize" ]]; then
echo "Adding GTTSize for ASUS Ally"
NEEDED_KARGS+=("--append-if-missing=amdgpu.gttsize=8128")
fi
if [[ ! $KARGS =~ "amdgpu.sg_display" ]]; then
echo "Adding SG Display for ASUS Ally"
NEEDED_KARGS+=("--append-if-missing=amdgpu.sg_display=0")
fi
elif [[ ":G1617-01:" =~ ":$SYS_ID:" ]]; then
if [[ ! $KARGS =~ "video" ]]; then
echo "Adding panel orientation for GPD Win Mini"
Expand Down

0 comments on commit d8f450c

Please sign in to comment.