Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deck): Implement support for the DeckHD #573

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions system_files/deck/shared/usr/share/ublue-os/just/60-custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions system_files/desktop/shared/usr/bin/bazzite-hardware-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down