Skip to content

[NVIDIA] On wake up after suspend, hyprlock has no UI and cannot be unlocked. #695

@ogisan-7

Description

@ogisan-7

Regression?

No

Hyprlock Info and Version

0.7.0

Hyprlock config
general {
    grace = 0
    hide_cursor =  true
    no_fade_in = true
    no_fade_out = true
}

auth {
    pam:enabled = true
}

background {
    monitor = DP-1
    color = rgba(25, 23, 36, 1)  # Base color (dark background)
}

input-field {
    monitor = DP-1
    size = 20%, 5%
    outline_thickness = 1
    inner_color = rgba(25, 23, 36, 0.0)  # Transparent inner color
    placeholder_text = type here

    outer_color = rgba(235, 188, 186, 1)  # Rose color for outer border
    check_color = rgba(156, 207, 216, 1)  # Pine color for check
    fail_color = rgba(235, 111, 146, 1)   # Fail color (reddish)
    fail_text = password incorrect

    dots_rounding = 0
    dots_text_format = *
    dots_fade_time = 0
    dots_center = false

    font_color = rgb(224, 222, 244)  # Text color (light)
    fade_on_empty = false
    rounding = 0

    position = 0, -20
    halign = center
    valign = center
    font_family = Iosevka Term
}

label {
    monitor = DP-1
    text = cmd[] uname --kernel-release
    color = rgba(224, 222, 244, 1.0)  # Text color (light)
    font_size = 16
    font_family = Iosevka Term 

    position = 0, -150
    halign = center
    valign = center
}

label {
    monitor = DP-1
    text = cmd[update:1000] date +"%H:%M"
    color = rgba(156, 207, 216, 1.0)  # Pine color for time
    font_size = 55
    font_family = Iosevka Term 
    position = 0, 250
    halign = center
    valign = center
}

label {
    monitor = DP-1
    text = $USER
    color = rgba(235, 188, 186, 1.0)  # Rose color for username
    font_size = 25
    font_family = Iosevka Term

    position = 0, 80
    halign = center
    valign = center
}

shape {
    monitor = DP-1
    size = 40%, 35%
    position = 0, 0
    color = rgba(25, 23, 36, 0)  # Transparent background
    rounding = 0
    border_size = 1
    border_color = rgba(224, 222, 244, 0.8)  # Light border color
}

Compositor Info and Version

System/Version info
Hyprland 0.47.2 built from branch  at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: Sun Feb 2 00:47:17 2025
Tag: v0.47.2, commits: 5767
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.2


no flags were set


System Information:
System name: Linux
Node name: ognjen-pc
Release: 6.13.4-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sat, 22 Feb 2025 00:37:05 +0000


GPU information: 
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER] [10de:21c4] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64  570.86.16  Release Build  (archlinux-builder@)  


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

After suspension from HYPRIDLE? I'm not sure why when manually done, the bug does not happen. It might, the bug doesn't happen 100% of times as there were times that hyprlock would normally start.

When I let hypridle suspend with systemctl after 900 seconds, after some time being suspended on wake up hyprlock will lock the screen and there will be no UI, or any way to unlock (even ending the process in another tty and following the instructions on the "oops your screenlocker died" screen). Cursor can be moved around and the screen is active but can't do any keybinds/actions except the ones binded with bindl.

This hasn't happened before on my old installations. And it doesn't happen 100% of the times, I'd say 90%.
Tried checking my configs and even rebuilding them, also hypridle config.
If needed hypridle config is here

general {
    lock_cmd = pidof hyprlock || hyprlock       # avoid starting multiple hyprlock instances.
    before_sleep_cmd = loginctl lock-session    # lock before suspend.
    after_sleep_cmd = hyprctl dispatch dpms on  # to avoid having to press a key twice to turn on the display.
}

listener {
    timeout = 300                                 # 5min
    on-timeout = loginctl lock-session            # lock screen when timeout has passed
}

listener {
    timeout = 330                                 # 5.5min
    on-timeout = hyprctl dispatch dpms off        # screen off when timeout has passed
    on-resume = hyprctl dispatch dpms on          # screen on when activity is detected after timeout has fired.
}

listener {
    timeout = 1800                                # 30min
    on-timeout = systemctl suspend                # suspend pc
}

How to reproduce

Leave hypridle to suspend your pc then try waking up.

Crash reports, logs, images, videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions