fix(deck): Work around Steam marking some non-deck devices as pre-release hardware

This commit is contained in:
Kyle Gospodnetich 2025-01-20 09:23:05 -08:00
parent 2e16fc50f7
commit 0b9615c3b1
2 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Patch9: fstrim.patch
Patch10: cursor-path.patch
Patch11: ntfs.patch
Patch12: more-time.patch
Patch13: supported-hardware.patch
Requires: python3
Requires: python3-evdev

View File

@ -0,0 +1,15 @@
--- a/usr/bin/jupiter-check-support
+++ b/usr/bin/jupiter-check-support
@@ -2,6 +2,12 @@
set -e
+SYS_ID="$(/usr/libexec/hwsupport/sysid)"
+if [[ ! ":Galileo:Jupiter:" =~ ":$SYS_ID:" ]]; then
+ echo "Supported: yes"
+ exit 0
+fi
+
product_serial="$(cat /sys/devices/virtual/dmi/id/product_serial)"
# Cutoff time for supported prototypes