chore: Preliminary support for the ROG Ally X

chore: Drop simpledeckytdp workaround
This commit is contained in:
Kyle Gospodnetich 2024-07-08 13:24:38 -07:00
parent 135513e827
commit 273f4b62db
6 changed files with 9 additions and 22 deletions

View File

@ -4,11 +4,11 @@ STEAMOS_UNKNOWN_NESTED_DESKTOP_WIDTH=1920
STEAMOS_UNKNOWN_NESTED_DESKTOP_HEIGHT=1080
# Handle nested desktop resolution for known devices.
case "$(cat /sys/devices/virtual/dmi/id/product_name)" in
case "$(/usr/libexec/hwsupport/sysid)" in
"Jupiter" | "Galileo" | "AYANEO GEEK" | "G1619-05")
STEAMOS_NESTED_DESKTOP_WIDTH=1280
STEAMOS_NESTED_DESKTOP_HEIGHT=800 ;;
"ROG Ally RC71L_RC71L" | "ROG Ally RC71L_Action" | "ROG Ally RC71L" | "G1618-04" | "G1617-01" | "Loki Max")
"ROG Ally RC71L" | "ROG Ally X RC72LA" | "G1618-04" | "G1617-01" | "Loki Max")
STEAMOS_NESTED_DESKTOP_WIDTH=1920
STEAMOS_NESTED_DESKTOP_HEIGHT=1080 ;;
"AYANEO 2" | "AYANEO 2S" | "AOKZOE A1 AR07" | "G1619-04" | "AIR Plus")

View File

@ -5,12 +5,12 @@ WAYDROID_UNKNOWN_HEIGHT=1080
WAYDROID_GRALLOC=minigbm_gbm_mesa
# Handle nested desktop resolution for known devices.
case "$(cat /sys/devices/virtual/dmi/id/product_name)" in
case "$(/usr/libexec/hwsupport/sysid)" in
"Jupiter" | "Galileo" | "AYANEO GEEK" | "G1619-05")
WAYDROID_WIDTH=1280
WAYDROID_HEIGHT=800
WAYDROID_DENSITY=215 ;;
"ROG Ally RC71L_RC71L" | "ROG Ally RC71L_Action" | "ROG Ally RC71L" | "G1618-04" | "G1617-01" | "Loki Max" | "ONEXPLAYER F1" | "ONEXPLAYER F1 EVA-01" | "AIR Plus" | "AIR 1S" | "AIR 1S Limited")
"ROG Ally RC71L" | "ROG Ally X RC72LA" | "G1618-04" | "G1617-01" | "Loki Max" | "ONEXPLAYER F1" | "ONEXPLAYER F1 EVA-01" | "AIR Plus" | "AIR 1S" | "AIR 1S Limited")
WAYDROID_WIDTH=1920
WAYDROID_HEIGHT=1080 ;;
"AYANEO 2" | "AYANEO 2S" | "AOKZOE A1 AR07" | "AOKZOE A1 Pro" | "G1619-04")

View File

@ -117,13 +117,6 @@ if [[ ":ONEXPLAYER F1:" =~ ":$SYS_ID:" ]]; then
fi
fi
if /usr/libexec/hwsupport/simpledeckytdp-supported-hardware; then
if [[ ! $KARGS =~ "iomem" ]]; then
echo "Adding needed kargs for ryzenadj"
NEEDED_KARGS+=("--append-if-missing=iomem=relaxed")
fi
fi
if [[ ! $KARGS =~ "disable_ertm" ]]; then
echo "Adding needed kargs for bluetooth"
NEEDED_KARGS+=("--append-if-missing=bluetooth.disable_ertm=1")
@ -217,8 +210,7 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
fi
# ALLY POWER SAVE FIX
ALLY_LIST="ROG Ally RC71L_RC71L:ROG Ally RC71L:ROG Ally RC71L_Action"
if [[ ":$ALLY_LIST:" =~ ":$SYS_ID:" ]]; then
if [[ ":ROG Ally RC71L:" =~ ":$SYS_ID:" ]]; then
echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/mcu_powersave
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/bash
# Returns true for hardware that is supported by HHD
SYS_ID="$(/usr/libexec/hwsupport/sysid)"
if [[ ":ROG Ally RC71L:83E1:G1618-04:G1617-01:G1619-05:AIR Plus:AIR 1S:AIR 1S Limited:AIR:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:AOKZOE A1 Pro:G1619-04:Win600:Loki Max:Loki Zero:Loki MiniPro:" =~ ":$SYS_ID:" ]]; then
if [[ ":ROG Ally RC71L:ROG Ally X RC72LA:83E1:G1618-04:G1617-01:G1619-05:AIR Plus:AIR 1S:AIR 1S Limited:AIR:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:AOKZOE A1 Pro:G1619-04:Win600:Loki Max:Loki Zero:Loki MiniPro:" =~ ":$SYS_ID:" ]]; then
exit 0
fi

View File

@ -1,8 +0,0 @@
#!/usr/bin/bash
# Returns true for hardware that is supported by SimpleDeckyTDP
SYS_ID="$(/usr/libexec/hwsupport/sysid)"
if [[ ":ROG Ally RC71L:83E1:G1618-04:G1619-04:G1617-01:G1619-05:AIR Plus:AIR 1S:AIR 1S Limited:AIR:SLIDE:V3:AOKZOE A1 AR07:AOKZOE A1 Pro:ONEXPLAYER 2 ARP23:ONEXPLAYER 2 PRO ARP23H:ONEXPLAYER 2 PRO ARP23P:ONEXPLAYER 2 PRO ARP23P EVA-01:" =~ ":$SYS_ID:" ]]; then
exit 0
fi
exit 1

View File

@ -6,6 +6,9 @@ SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
if [[ "$SYS_ID" =~ ROG[[:space:]]Ally[[:space:]]RC71L.+ ]]; then
# Trunctate ROG Ally SYS_ID
echo "ROG Ally RC71L"
elif [[ "$SYS_ID" =~ ROG[[:space:]]Ally[[:space:]]X[[:space:]]RC72LA.+ ]]; then
# Trunctate ROG Ally X SYS_ID
echo "ROG Ally X RC72LA"
else
# Probably a sensible SYS_ID so we echo it
echo "$SYS_ID"