Skip to content

Commit a8a9513

Browse files
HikariKnightKyleGospoantheas
authored
fix: temporarily disable "turn off screen when idle" in kde for handhelds (ublue-os#1771)
* Revert "chore: Update to kernel 6.11.2-201" This reverts commit 6bac981. * Revert "chore: Kill X11 session for good" This reverts commit b7ee250. * fix(legion go): remove lcd script (ublue-os#1745) It was not meant to be... * fix: temporarily disable "turn off screen when idle" in kde for handhelds Temp workaround until we can figure out what causes it to not come back upon input immediately on handhelds. I was unable to reproduce this on a laptop(desktop image as laptop is too old for deck image) and a desktop (deck image) * chore: run the command directly if the if statements are true --------- Co-authored-by: Kyle Gospodnetich <[email protected]> Co-authored-by: Antheas Kapenekakis <[email protected]>
1 parent 6517573 commit a8a9513

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

system_files/deck/shared/usr/bin/bazzite-desktop-bootstrap

+11
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ if [[ "${XDG_SESSION_TYPE}" = "wayland" ]]; then
6464
|| true
6565
fi
6666
fi
67+
68+
# TEMP workaround for a bug causing the screen to not come back on input on handhelds
69+
# if it was turned off from idling, this just disables the display idle in kde until
70+
# we can figure out what causes the bug, as it does not happen on laptops/desktops.
71+
# If this is valve hardware or a handheld that hhd supports (easiest way to just cover all handhelds)
72+
# do not turn off the screen when idle (sleep still works normal)
73+
if /usr/libexec/hwsupport/valve-hardware; then
74+
perl -pi -e 's/TurnOffDisplayIdleTimeoutSec=\d{1,4}/TurnOffDisplayIdleTimeoutSec=-1\nTurnOffDisplayWhenIdle=false/g' ~/.config/powerdevilrc
75+
elif /usr/libexec/hwsupport/hhd-supported-hardware; then
76+
perl -pi -e 's/TurnOffDisplayIdleTimeoutSec=\d{1,4}/TurnOffDisplayIdleTimeoutSec=-1\nTurnOffDisplayWhenIdle=false/g' ~/.config/powerdevilrc
77+
fi
6778
elif [[ $BASE_IMAGE_NAME =~ "silverblue" ]]; then
6879
# Set scale on GNOME desktops, rotation tends to work without issue.
6980
if /usr/libexec/hwsupport/needs-100-scale; then

0 commit comments

Comments
 (0)