From e64b62d129d52f2ec3f7acc11c2db66ed8b33e77 Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Mon, 20 Nov 2023 20:21:09 -0700 Subject: [PATCH 1/2] fix(deck): Disable BIOS updates on DeckHD devices --- .../desktop/shared/usr/bin/bazzite-hardware-setup | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/system_files/desktop/shared/usr/bin/bazzite-hardware-setup b/system_files/desktop/shared/usr/bin/bazzite-hardware-setup index fef676107d..3402834f8b 100755 --- a/system_files/desktop/shared/usr/bin/bazzite-hardware-setup +++ b/system_files/desktop/shared/usr/bin/bazzite-hardware-setup @@ -117,8 +117,17 @@ fi if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then if [[ ":Jupiter:" =~ ":$SYS_ID:" || ":Galileo:" =~ ":$SYS_ID:" ]]; then - # Future updates to Deck here - echo "Jupiter/Galileo hardware detected, skipping further setup..." + if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then + RESOLUTION=$(lshw -json -c display | jq -r .[]."configuration"."resolution") + if [[ "${RESOLUTION}" = "1200,1920" ]]; then + echo "Jupiter with DeckHD detected, disabling BIOS updates..." + systemctl disable --now jupiter-biosupdate.service + else + echo "Jupiter hardware detected, skipping further setup..." + fi + elif [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then + echo "Galileo hardware detected, skipping further setup..." + fi else echo "Generic device detected. Performing setup..." if [[ ":ROG Ally RC71L_RC71L:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:G1618-04:G1619-04:83E1:" =~ ":$SYS_ID:" ]]; then From 061e37ef7802981ab482e0331c204b4a32d0e01a Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Mon, 20 Nov 2023 20:40:22 -0700 Subject: [PATCH 2/2] feat(deck): Add support for installing DeckHD BIOS --- .../shared/usr/share/ublue-os/just/60-custom.just | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just b/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just index 63f965b069..578cdcb519 100644 --- a/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just +++ b/system_files/deck/shared/usr/share/ublue-os/just/60-custom.just @@ -397,6 +397,19 @@ unhide-grub: sudo grub2-mkconfig -o /etc/grub2.cfg fi +# Install Deck HD BIOS +install-deckhd-bios: + #!/usr/bin/env bash + RESOLUTION=$(sudo lshw -json -c display | jq -r .[]."configuration"."resolution") + if [[ "${RESOLUTION}" = "1200,1920" ]]; then + sudo systemctl mask --now jupiter-biosupdate.service + wget -q https://deckhd.com/downloads/install.sh -O /tmp/deckhd-install.sh + chmod +x /tmp/deckhd-install.sh + sudo ./tmp/deckhd-install.sh + else + echo "Unable to detect DeckHD. Aborting..." + fi + # Enable BIOS & Firmware update services for the Steam Deck enable-deck-bios-firmware-updates: #!/usr/bin/env bash