-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deck): Import files and changes from Bazzite
- Loading branch information
Showing
20 changed files
with
173 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[Login] | ||
HandlePowerKey=suspend | ||
KillUserProcesses=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#!/usr/bin/env bash | ||
LAUNCH_OPTIONS="" | ||
# If Steam has been launched before we can safely launch with -steamdeck | ||
# to maintain the gamemode update branch | ||
if [ -f $HOME/.local/share/Steam/ubuntu12_32/steamui.so ]; then | ||
LAUNCH_OPTIONS="-steamos3 -gamepadui" | ||
fi | ||
/usr/bin/steam "$LAUNCH_OPTIONS" "$*" | ||
|
||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)" | ||
|
||
if [ ! -d $HOME/.local/share/Steam ]; then | ||
# Set up steam with the bootstrap before starting it, this allows steam to run for the first time even with no network access | ||
if [[ -f "/usr/share/gamescope-session-plus/bootstrap_steam.tar.gz" ]]; then | ||
mkdir -p ~/.local/share | ||
tar xf /usr/share/gamescope-session-plus/bootstrap_steam.tar.gz -C ~/.local/share | ||
fi | ||
fi | ||
|
||
# Required to maintain the Steam update branch between desktop & Steam Game Mode | ||
DECK_OPTION="-steamdeck" | ||
|
||
/usr/bin/steam "$DECK_OPTION" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Unit] | ||
Description=On AC power | ||
DefaultDependencies=no | ||
StopWhenUnneeded=yes |
4 changes: 4 additions & 0 deletions
4
files/system_files/deck/usr/lib/systemd/system/battery.target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Unit] | ||
Description=On battery power | ||
DefaultDependencies=no | ||
StopWhenUnneeded=yes |
17 changes: 17 additions & 0 deletions
17
files/system_files/deck/usr/lib/systemd/system/pipewire-workaround.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=Workaround pipewire needing to be written into by steamdeck-dsp | ||
ConditionPathExists=/usr/share/pipewire | ||
After=local-fs.target | ||
|
||
[Service] | ||
Type=oneshot | ||
# Copy if it doesn't exist | ||
ExecStartPre=/usr/bin/bash -c "[ -d /usr/local/share/.pipewire ] || /usr/bin/cp -r /usr/share/pipewire /usr/local/share/.pipewire" | ||
ExecStart=/usr/bin/mount --bind /usr/local/share/.pipewire /usr/share/pipewire | ||
# Clean-up after ourselves | ||
ExecStop=/usr/bin/umount /usr/share/pipewire | ||
ExecStop=/usr/bin/rm -r /usr/local/share/.pipewire | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
10 changes: 10 additions & 0 deletions
10
files/system_files/deck/usr/lib/systemd/system/ublue-update-force.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
[Unit] | ||
Description=Force Universal Blue Update Oneshot Service | ||
|
||
[Service] | ||
Type=oneshot | ||
Environment="TOPGRADE_SKIP_BRKC_NOTIFY=true" | ||
ExecStart=/usr/bin/ublue-update --force | ||
RemainAfterExit=no | ||
Nice=19 | ||
CPUSchedulingPolicy=batch | ||
IOSchedulingClass=best-effort | ||
IOSchedulingPriority=7 | ||
OOMScoreAdjust=1000 | ||
CPUWeight=30 | ||
CPUQuota=300% | ||
IOWeight=30 |
2 changes: 2 additions & 0 deletions
2
files/system_files/deck/usr/lib/systemd/system/ublue-update.service.d/override.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Service] | ||
Environment="TOPGRADE_SKIP_BRKC_NOTIFY=true" |
17 changes: 17 additions & 0 deletions
17
files/system_files/deck/usr/lib/systemd/system/wireplumber-workaround.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=Workaround wireplumber needing to be written into by steamdeck-dsp | ||
ConditionPathExists=/usr/share/wireplumber | ||
After=local-fs.target | ||
|
||
[Service] | ||
Type=oneshot | ||
# Copy if it doesn't exist | ||
ExecStartPre=/usr/bin/bash -c "[ -d /usr/local/share/.wireplumber ] || /usr/bin/cp -r /usr/share/wireplumber /usr/local/share/.wireplumber" | ||
ExecStart=/usr/bin/mount --bind /usr/local/share/.wireplumber /usr/share/wireplumber | ||
# Clean-up after ourselves | ||
ExecStop=/usr/bin/umount /usr/share/wireplumber | ||
ExecStop=/usr/bin/rm -r /usr/local/share/.wireplumber | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
files/system_files/deck/usr/lib/tmpfiles.d/dmi-product-serial.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z /sys/class/dmi/id/product_serial 440 root wheel - - |
1 change: 1 addition & 0 deletions
1
files/system_files/deck/usr/lib/tmpfiles.d/wireplumber-workaround.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
C /usr/local/share/.wireplumber - - - - /usr/share/wireplumber |
Oops, something went wrong.