@@ -19,7 +19,6 @@ KNOWN_IMAGE_FLAVOR=$(cat $KNOWN_IMAGE_FLAVOR_FILE)
19
19
# GLOBAL
20
20
SYS_ID=" $( cat /sys/devices/virtual/dmi/id/product_name) "
21
21
GPU_ID=$( lspci -k | grep -A 3 -E " (VGA|3D)" )
22
- PRODUCT_NAME=" $( cat /sys/devices/virtual/dmi/id/product_name) "
23
22
KARGS=$( rpm-ostree kargs)
24
23
NEEDED_KARGS=" "
25
24
echo " Current kargs: $KARGS "
@@ -139,23 +138,21 @@ if [[ -f $HWS_VER_FILE && $HWS_VER = $HWS_VER_RAN ]]; then
139
138
fi
140
139
fi
141
140
142
- if [[ $IMAGE_NAME =~ " deck" ]]; then
141
+ if [[ $IMAGE_NAME =~ " deck" || $IMAGE_NAME =~ " ally " || $IMAGE_NAME =~ " framegame " ]]; then
143
142
if [[ " :Jupiter:" =~ " :$SYS_ID :" ]]; then
144
143
# Future updates to Deck on Jupiter here
144
+ echo " Jupiter hardware detected, skipping further setup..."
145
145
else
146
146
echo " Generic device detected. Performing setup..."
147
- if [[ \
148
- " :AYA NEO:AYANEO:AIR Plus:" =~ " :$PRODUCT_NAME :" || \
149
- " ONEXPLAYER" =~ " $PRODUCT_NAME " || \
150
- " AOKZOE" =~ " $PRODUCT_NAME " || \
151
- " :G1619-01:G1621-02:MicroPC:" =~ " :$SYS_ID :" \
152
- ]]; then
153
- echo " HandyGCCS supported handheld detected, enabling handycon & steam-patch."
154
- systemctl enable --now handycon.service
155
- systemctl enable --now --global steam-patch.service
156
- elif [[ " :ROG Ally RC71L_RC71L:" =~ " :$SYS_ID :" ]]
157
- echo " ROG Ally detected. Enabling steam-patch."
147
+ if [[ " :ROG Ally RC71L_RC71L:AYA NEO:AYANEO:AIR Plus:ONEXPLAYER:AOKZOE:G1619-01:G1621-02:MicroPC:G1619-01:G1621-02:MicroPC:AYA NEO:AYANEO:AIR Plus:AOKZOE:ONEXPLAYER:" =~ " :$SYS_ID :" ]]; then
148
+ echo " HandyGCCS supported handheld detected, enabling handycon & steam-patch..."
149
+ if [[ " :ROG Ally RC71L_RC71L:" =~ " :$SYS_ID :" ]]
150
+ echo " ROG Ally detected, skipping handycon" .
151
+ else
152
+ systemctl enable --now handycon.service
153
+ fi
158
154
systemctl enable --now --global steam-patch.service
155
+ sed -i ' s/ENABLE_HARDWARE_CONTROL_ON_NON_DECK_HARDWARE=0/ENABLE_HARDWARE_CONTROL_ON_NON_DECK_HARDWARE=1/g' /etc/default/steam-hardware-control
159
156
fi
160
157
systemctl disable --now jupiter-fan-control.service
161
158
systemctl disable --now vpower.service
0 commit comments