mortie / swaylock-effects

Swaylock, with fancy effects
MIT License
698 stars 44 forks source link

swaylock-effects doesn't let the screen turn on until after unlocked #72

Open bermudi opened 2 years ago

bermudi commented 2 years ago

Expected behavior:

with swaylock, when the system is suspended by systemd the screen turns on after resuming and receiving some input and allows the user to see the lock screen before letting the user back into the system.

swaylock:

exec swayidle -w idlehint 10 \
          timeout 300 'swaymsg "output * dpms off"' \
          resume 'swaymsg "output * dpms on"' \
          before-sleep 'swaylock -efF -c 00000099 \
          --indicator-idle-visible --indicator-radius 75 \
          --indicator-thickness 15 --inside-clear-color FFFF00 \
          --ring-clear-color FFFF00'

Issue:

But with swaylock-effects, the system resumes from sleep and the screen won't come back on until after it is unlocked meaning the user can't see anything and has to type the password into a black screen and hope for the best.

Switching to a different TTY will turn on the screen but switching back will turn it off again.

The after-resume command is not needed with vanilla swaylock and it doesn't help with swaylock-effects

swaylock-effects:

exec swayidle -w idlehint 10 \
           timeout 300 'swaymsg "output * dpms off"' \
           resume 'swaymsg "output * dpms on"' \
           before-sleep 'swaylock --screenshots --clock \
           --indicator-radius 100 --grace 2 --fade-in 0.2 \
           --indicator-thickness 7 --effect-blur 7x5 \
           --effect-vignette 0.5:0.5 --ring-color bb00cc \
           --key-hl-color 880033 --line-color 00000000 \
           --inside-color 00000088 --separator-color 00000000'
          after-resume 'swaymsg "output * dpms on"'