fix(asus-flow): Use cleaned up Flow Z13 SYS_ID

This commit is contained in:
Kyle Gospodnetich 2025-03-07 08:00:44 -08:00
parent e96bb5aadd
commit b2cb6fb67e
3 changed files with 5 additions and 2 deletions

View File

@ -162,7 +162,7 @@ if [[ ":ONEXPLAYER F1:ONEXPLAYER F1L:ONEXPLAYER F1 EVA-01:ONEXPLAYER X1Pro:" =~
fi
fi
if [[ ":ROG Flow Z13 GZ302EA_GZ302EA_03156148D:ROG Flow Z13 GZ302EA_GZ302EA:" =~ "$:SYS_ID:" ]]; then
if [[ ":ROG Flow Z13 GZ302EA:" =~ "$:SYS_ID:" ]]; then
if [[ ! $KARGS =~ "amdgpu.dcdebugmask" ]]; then
echo "ROG Flow Z13 2025, fixing display artifacts"
NEEDED_KARGS+=("--append-if-missing=amdgpu.dcdebugmask=0x410")

View File

@ -6,7 +6,7 @@ if [[ ":ONE-NETBOOK:GPD:AYANEO:" =~ ":$VEN_ID:" ]]; then
fi
SYS_ID="$(/usr/libexec/hwsupport/sysid)"
if [[ ":ROG Ally RC71L:ROG Ally X RC72LA:83E1:83L3:83N6:83Q2:83Q3:AOKZOE A1 AR07:AOKZOE A1 Pro:Win600:Loki Max:Loki Zero:Loki MiniPro:V3:ONE XPLAYER:ROG Flow Z13 GZ302EA_GZ302EA_03156148D:ROG Flow Z13 GZ302EA_GZ302EA:" =~ ":$SYS_ID:" ]]; then
if [[ ":ROG Ally RC71L:ROG Ally X RC72LA:83E1:83L3:83N6:83Q2:83Q3:AOKZOE A1 AR07:AOKZOE A1 Pro:Win600:Loki Max:Loki Zero:Loki MiniPro:V3:ONE XPLAYER:ROG Flow Z13 GZ302EA:" =~ ":$SYS_ID:" ]]; then
exit 0
fi

View File

@ -9,6 +9,9 @@ if [[ "$SYS_ID" =~ ROG[[:space:]]Ally[[:space:]]RC71L.+ ]]; then
elif [[ "$SYS_ID" =~ ROG[[:space:]]Ally[[:space:]]X[[:space:]]RC72LA.+ ]]; then
# Trunctate ROG Ally X SYS_ID
echo "ROG Ally X RC72LA"
elif [[ "$SYS_ID" =~ ROG[[:space:]]Flow[[:space:]]Z13[[:space:]]GZ302EA.+ ]]; then
# Trunctate ROG Flow Z13 2025 SYS_ID
echo "ROG Flow Z13 GZ302EA"
else
# Probably a sensible SYS_ID so we echo it
echo "$SYS_ID"