mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
feat: Power-off fix as its own sub-option, drop the kernel pin, feature versions
The power-off fix becomes an opt-out sub-option of Steam Machine support. The kernel pin is no longer offered: an existing pin (and HDMI refresh boost, which needs it) is unticked so a normal run removes it. Components record a feature version on each successful run; installs with an older version are ticked and updated, and new default sub-options are ticked where their parent is on.
This commit is contained in:
1 parent
7694c97d68
commit
6df19eba3e
10 files changed
+160
-68
No files matched your search
+13
-1
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Part of "Steam Machine support": the Steam Machine powers off instead of
|
||||
# "Power-off fix" menu item (poweroff), a sub-option of Steam Machine support
|
||||
# ticked along with it (opt-out): the Steam Machine powers off instead of
|
||||
# booting up again, on every kernel. Since Linux 7.2 ("pinctrl-amd: Don't
|
||||
# clear S4 wake bits at probe") the S4/S5 wake bit the firmware leaves set
|
||||
# on GPIO pin 18 stays set, and the machine starts again right after
|
||||
@@ -55,3 +56,14 @@ poweroff_fix_disable() {
|
||||
sudo dkms remove "$POWEROFF_DKMS_NAME/$POWEROFF_DKMS_VER" --all >/dev/null 2>&1
|
||||
sudo rm -rf "$POWEROFF_DKMS_SRC"
|
||||
}
|
||||
|
||||
poweroff_status() { poweroff_fix_installed; }
|
||||
poweroff_enable() {
|
||||
info "Installing the power-off fix (the machine stays off after shutting down)..."
|
||||
poweroff_fix_enable || { err "Installing the power-off fix failed."; return 1; }
|
||||
ok "Power-off fix on: the Steam Machine stays off after shutting down."
|
||||
}
|
||||
poweroff_disable() {
|
||||
poweroff_fix_disable
|
||||
ok "Power-off fix removed; with kernels 7.2 and newer the Steam Machine may start again after shutting down."
|
||||
}
|
||||
Reference in new issue
Block a user