hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
834 stars 57 forks source link

Unlocked screen shown for a bit after waking from suspend #547

Open winkelnp opened 3 weeks ago

winkelnp commented 3 weeks ago

Regression?

No

Hyprlock Info and Version

0.5.0
Hyprlock config ```sh ``` general { disable_loading_bar = false hide_cursor = true grace = 0 no_fade_in = false # no_fade_out = false #ignore_empty_input = true #immediate_render = true # pam_module = hyprlock # text_trim = true # fractional_scaling = 2 enable_fingerprint = true fingerprint_ready_message = Scan fingerprint to unlock fingerprint_present_message = Scanning fingerprint } background { monitor = path = /home/winkel/Pictures/Desktop Background/Background.png color = rgba(25,20,20,1.0) blur_passes = 3 blur_size = 1 noise = 0.0117 contrast = 0.8916 brightness = 0.8172 vibrancy = 0.1696 vibrancy_darkness = 0.0 } input-field { monitor = size = 200, 30 outline_thickness = 4 dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 dots_center = true dots_rounding = -1 # -1 default circle, 2 follow input-field rounding outer_color = rgb(15, 15, 15) inner_color = rgb(200, 200, 200) font_color = rgb(10, 10, 10) fade_on_empty = true fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered placeholder_text = Input Password... # Text rendered in the input box when it's empty. hide_input = false rounding = -1 # -1 means complete rounding (circle/oval) check_color = rgb(204, 136, 34) fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color fail_text = $FAIL ($ATTEMPTS) # can be set to empty fail_transition = 200 # transition time in ms between normal outer_color and fail_color capslock_color = rgb(34,204,204) numlock_color = -1 # bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) invert_numlock = false # change color if numlock is off # swap_font_color = false # see below position = 0, -50 halign = center valign = center shadow_passes = 0 shadow_size = 3 shadow_color = rgb(0,0,0) shadow_boost = 1.2 } label { monitor = text = $TIME color = rgba(200, 200, 200, 1.0) font_size = 70 font_family = Edwin # rotate = 0 # degrees, counter-clockwise position = 0, 100 halign = center valign = center } label { monitor = text = $DESC # text = N Winkel color = rgba(200,200,200,1.0) font_size = 25 font_family = Edwin Italic position = 0, 10 halign = center valign = center } label { monitor = text = $FPRINTMESSAGE color = rgba(200, 200, 200, 1.0) font_size = 10 font_family = Edwin position = 0, -25 halign = center valign = center } # Hacky way of adding fingerprint support to hyprlock # label { # monitor = # text = cmd[update:0:0] until fprintd-verify; do :; done; pkill -USR1 hyprlock # }
### Compositor Info and Version
System/Version info ```sh ``` Hyprland, built from branch at commit 4520b30d498daca8079365bdb909a8dea38e8d55 (version: bump to 0.44.1). Date: Wed Oct 9 12:54:39 2024 Tag: v0.44.1, commits: 5309 built against aquamarine 0.4.3 flags: (if any) System Information: System name: Linux Node name: archlinux Release: 6.11.6-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 03:30:41 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix4 [1002:1901] (rev c2) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins:
### Description Every time the environment is `systemctl suspend`-ed and reawoken, the unlocked screen is shown for a split second before `hyprlock` is shown. ### How to reproduce 1. execute `hyprlock & systemctl suspend` or lock screen and wait for suspend/equivalent 2. press any key/wiggle mouse etc ### Crash reports, logs, images, videos _No response_
PaideiaDilemma commented 3 weeks ago

that is because it suspends before hyprlock launches. only when you wake up it actually locks. sadly there is not a good solution for this problem currently. just adding a little sleep should fix it though