mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-22 21:40:35 +00:00
fix(hardware-setup): REVERT ME, disable desktop-autologin if gamescope-autologin is enabled
Since autologin is switching handlers, desktop-autologin will be enabled on systems already using gamescope-autologin causing a race. Check if gamescope-autologin is enabled and if so, disable it This should be left here for a while to prevent migration issues, and removed later as it shouldn't be necessary once users have migrated to the new handler
This commit is contained in:
parent
d5d373a3ca
commit
38c95fcfe3
@ -2,7 +2,7 @@
|
|||||||
source /etc/default/bazzite
|
source /etc/default/bazzite
|
||||||
|
|
||||||
# SCRIPT VERSION
|
# SCRIPT VERSION
|
||||||
HWS_VER=1
|
HWS_VER=2
|
||||||
HWS_VER_FILE="/etc/bazzite/hws_version"
|
HWS_VER_FILE="/etc/bazzite/hws_version"
|
||||||
HWS_VER_RAN=$(cat $HWS_VERSION_FILE)
|
HWS_VER_RAN=$(cat $HWS_VERSION_FILE)
|
||||||
|
|
||||||
@ -84,6 +84,13 @@ elif [[ $IMAGE_NAME =~ "deck" ]]; then
|
|||||||
systemctl --global disable --now sdgyrodsu.service
|
systemctl --global disable --now sdgyrodsu.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# REVERT ME, disable desktop-autologin if gamescope-autologin is enabled
|
||||||
|
if [[ $IMAGE_NAME =~ "deck" ]]; then
|
||||||
|
if systemctl is-enabled --quiet gamescope-autologin; then
|
||||||
|
systemctl disable --now desktop-autologin
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -qz "Kernel driver in use: radeon" <<< $GPU_ID; then
|
if grep -qz "Kernel driver in use: radeon" <<< $GPU_ID; then
|
||||||
echo "Legacy AMD hardware detected, enabling CIK and SI support in AMDGPU"
|
echo "Legacy AMD hardware detected, enabling CIK and SI support in AMDGPU"
|
||||||
if [[ ! $KARGS =~ "radeon.si_support" ]]; then
|
if [[ ! $KARGS =~ "radeon.si_support" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user