Skip to content

Commit 162dd80

Browse files
committed
fix(deck): Prevent BIOS updates on DeckHD and 32GB decks even if requested.
1 parent e9f304b commit 162dd80

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

system_files/deck/shared/usr/share/ublue-os/just/60-custom.just

+8-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,14 @@ enable-deck-bios-firmware-updates:
356356
#!/usr/bin/env bash
357357
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
358358
if [[ ":Jupiter:" =~ ":$SYS_ID:" || ":Galileo:" =~ ":$SYS_ID:" ]]; then
359-
sudo systemctl enable jupiter-biosupdate.service
359+
RESOLUTION=$(sudo lshw -json -c display | jq -r .[]."configuration"."resolution")
360+
if [[ "${RESOLUTION}" = "1200,1920" ]]; then
361+
echo "DeckHD detected. Firmware updates enabled. BIOS updates not enabled."
362+
elif [[ "$(awk '/MemTotal/{print $(NF-1)}' /proc/meminfo)" == "31664740" ]]; then
363+
echo "32GB RAM modded Deck detected. Firmware updates enabled. BIOS updates not enabled."
364+
else
365+
sudo systemctl enable jupiter-biosupdate.service
366+
fi
360367
sudo systemctl enable jupiter-controller-update.service
361368
else
362369
echo "This is only applicable to Valve's Steam Deck. Aborting..."

0 commit comments

Comments
 (0)