mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
cachyos: soft-handoff on return-to-desktop instead of reboot
This commit is contained in:
12
distros/cachyos/files/steamos-session-select
Normal file → Executable file
12
distros/cachyos/files/steamos-session-select
Normal file → Executable file
@@ -73,6 +73,14 @@ case "$session" in
|
||||
fi
|
||||
;;
|
||||
desktop|plasma|plasma-wayland|plasmax11)
|
||||
exec sudo systemctl reboot
|
||||
# Soft handoff: terminate the current session; agetty respawns
|
||||
# tty1 and profile.d reads next-session=plasma. Avoids the reboot
|
||||
# tax on return-to-desktop.
|
||||
if [[ -n "${XDG_SESSION_ID:-}" ]]; then
|
||||
loginctl terminate-session "$XDG_SESSION_ID"
|
||||
else
|
||||
pkill -u steam gamescope-session-ps5 || true
|
||||
pkill -u steam gamescope || true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
Reference in New Issue
Block a user