Skip to content

Commit

Permalink
feat: Enable Steam Patch for any hardware other than Steam Deck, fixe…
Browse files Browse the repository at this point in the history
…s resolution issue that requires desktop gamers to select "Native" for every title in gamemode.
  • Loading branch information
KyleGospo committed Oct 9, 2023
1 parent 77a6671 commit 3a9577c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Containerfile
Expand Up @@ -57,8 +57,6 @@ RUN rpm-ostree override remove \
# Install new packages
RUN rpm-ostree install \
ublue-update \
libei \
libei.i686 \
discover-overlay \
python3-pip \
libadwaita \
Expand Down
6 changes: 3 additions & 3 deletions system_files/desktop/shared/usr/bin/bazzite-hardware-setup
Expand Up @@ -6,7 +6,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)

# SCRIPT VERSION
HWS_VER=7
HWS_VER=8
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)

Expand All @@ -25,7 +25,7 @@ echo "Current kargs: $KARGS"
mkdir -p /etc/bazzite

# KERNEL ARGUMENTS
if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
echo "Checking for needed karg changes (Jupiter)"

if [[ ! $KARGS =~ "amd_pstate" ]]; then
Expand Down Expand Up @@ -150,7 +150,7 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
else
echo "Generic device detected. Performing setup..."
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
echo "HandyGCCS supported handheld detected, enabling handycon & TDP for steam-patch..."
echo "HandyGCCS supported handheld detected, enabling handycon & TDP control..."
systemctl enable --now handycon.service
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
fi
Expand Down
8 changes: 4 additions & 4 deletions system_files/desktop/shared/usr/bin/bazzite-user-setup
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# SCRIPT VERSION
USER_SETUP_VER=4
USER_SETUP_VER=5
USER_SETUP_VER_FILE="$HOME/.bazzite-configured"
USER_SETUP_VER_RAN=$(cat $USER_SETUP_VER_FILE)

Expand Down Expand Up @@ -111,9 +111,9 @@ else
fi

# Steam Patch setup
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
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
pkexec /usr/bin/bazzite-enable-steam-patch "$USER"
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
if [[ ! ":Jupiter:" =~ ":$SYS_ID:" ]]; then
pkexec /usr/bin/bazzite-enable-steam-patch "$USER"
fi
fi

Expand Down

0 comments on commit 3a9577c

Please sign in to comment.