mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-17 10:13:00 +00:00
chore: Restore steam-patch thanks to latest updates
feat(legion): Support 30W TDP control on Legion Go from gamemode.
This commit is contained in:
parent
da6b18bc54
commit
1a877baf25
@ -454,6 +454,8 @@ RUN rpm-ostree install \
|
||||
xz --check=crc32 /tmp/linux-firmware-neptune/cs35l41-dsp1-spk-{cali.bin,cali.wmfw,prot.bin,prot.wmfw} && \
|
||||
mv -vf /tmp/linux-firmware-neptune/* /usr/lib/firmware/cirrus/ && \
|
||||
rm -rf /tmp/linux-firmware-neptune && \
|
||||
wget $(jq -r '.assets[].browser_download_url | select(endswith("steam-patch"))' <<< $(curl -s 'https://api.github.com/repos/KyleGospo/steam-patch/releases' | jq -r "first(.[] | select(.prerelease == "false"))")) -O /usr/bin/steam-patch && \
|
||||
chmod +x /usr/bin/steam-patch && \
|
||||
if [[ "${FEDORA_MAJOR_VERSION}" -lt "39" ]]; then \
|
||||
rpm-ostree install \
|
||||
mesa-va-drivers \
|
||||
|
3
system_files/deck/shared/usr/libexec/bazzite-enable-steam-patch
Executable file
3
system_files/deck/shared/usr/libexec/bazzite-enable-steam-patch
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
systemctl enable --now steam-patch@$(systemd-escape $1).service
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
|
||||
<vendor>Bazzite</vendor>
|
||||
<vendor_url>https://github.com/ublue-os/bazzite/</vendor_url>
|
||||
|
||||
<action id="org.bazzite.steam-patch.pkexec">
|
||||
<description>Some Steam patches, fixing broken Steam features on Asus Rog Ally and other third-party handhelds</description>
|
||||
<icon_name>package-x-generic</icon_name>
|
||||
<defaults>
|
||||
<allow_any>yes</allow_any>
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/bazzite-enable-steam-patch</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
@ -0,0 +1,6 @@
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.bazzite.steam-patch.pkexec" &&
|
||||
subject.isInGroup("wheel")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
@ -7,7 +7,7 @@ FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
|
||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||
|
||||
# SCRIPT VERSION
|
||||
USER_SETUP_VER=10
|
||||
USER_SETUP_VER=11
|
||||
USER_SETUP_VER_FILE="$HOME/.bazzite-configured"
|
||||
USER_SETUP_VER_RAN=$(cat $USER_SETUP_VER_FILE)
|
||||
USER_SETUP_FEDORA_VER_FILE="$HOME/.bazzite-configured-fedora-version"
|
||||
@ -127,6 +127,14 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Steam Patch setup
|
||||
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
|
||||
if [[ ! ":Jupiter:" =~ ":$SYS_ID:" ]]; then
|
||||
echo 'Enabling Steam-Patch'
|
||||
pkexec /usr/libexec/bazzite-enable-steam-patch "$USER"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Prevent future executions
|
||||
echo "Writing state file"
|
||||
echo $USER_SETUP_VER > $USER_SETUP_VER_FILE
|
||||
|
Loading…
Reference in New Issue
Block a user