Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication failed when trying to log in after suspend #499

Open
tendan opened this issue Sep 25, 2024 · 4 comments
Open

Authentication failed when trying to log in after suspend #499

tendan opened this issue Sep 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tendan
Copy link

tendan commented Sep 25, 2024

Regression?

No

Hyprlock Info and Version

0.4.1-1 (Pacman)

Hyprlock config
# General
#general {
#	grace = 1,
#}

background {
    monitor =
    #path = screenshot
    path = /home/tendan/Pobrane/wallpaperflare.com_wallpaper(2).jpg
    #color = $background
    blur_passes = 2
    contrast = 1
    brightness = 0.5
    vibrancy = 0.2
    vibrancy_darkness = 0.2
}

input-field {
    monitor =
    size = 250, 60
    outline_thickness = 2
    dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
    dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0
    dots_center = false
    outer_color = rgba(0, 0, 0, 0)
    inner_color = rgba(0, 0, 0, 0.6)
    font_color = rgba(255, 255, 255, 0.9)
    fade_on_empty = false
    fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
    fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
    rounding = -1
    check_color = rgb(204, 136, 34)
    placeholder_text = <i><span foreground="##cdd6f4">Wprowadź hasło</span></i>
    hide_input = false
    position = 0, -200
    halign = center
    valign = center
}
# DATE
label {
  monitor =
  text = cmd[update:1000] echo "$(date +"%A, %B %d")"
  color = rgba(242, 243, 244, 0.75)
  font_size = 22
  font_family = JetBrains Mono
  position = 0, 300
  halign = center
  valign = center
}

# TIME
label {
  monitor = 
  text = cmd[update:1000] echo "$(date +"%H:%M")"
  color = rgba(242, 243, 244, 0.75)
  font_size = 95
  font_family = JetBrains Mono Extrabold
  position = 0, 200
  halign = center
  valign = center
}

label {
    monitor =
    text = cmd[update:1000] echo "$(whoami)"
    color = $foreground
    font_size = 14
    font_family = JetBrains Mono
    position = 0, -10
    halign = center
    valign = center
}

Compositor Info and Version

System/Version info
Hyprland, built from branch  at commit 0f594732b063a90d44df8c5d402d658f27471dfe  (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

flags: (if any)


System Information:
System name: Linux
Node name: MaciejGA503RM
Release: 6.10.10-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000


GPU information: 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1) (prog-if 00 [VGA controller])
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev c8) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64  560.35.03  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

So, everything works fine if laptop goes into the lockscreen after a specific period of time when nothing happens (idle). Trying to log in is successful on correct password, as it should.

However the situation is different when trying to do the same thing when waking the device from suspend (lid closing and going to suspend on purpose from command-line/wlogout option). Typing a correct password results in "Authentication failed ()". And typing it the second time unlocks my screen. I'm 100% sure that I'm not making any typos between those attempts.

How to reproduce

  • Enable Hyprlock on Hyprland
  • Suspend your device
  • Try to enter your password

Crash reports, logs, images, videos

Hyprlock logs
[ERR] Config has errors:
Config error in file /home/tendan/.config/hypr/hyprlock.conf at line 66: cannot parse "$foreground" as an int.
Proceeding ignoring faulty entries
[LOG] | got iface: wl_seat v9
[LOG] > Bound to wl_seat v9
[LOG] | got iface: wl_data_device_manager v3
[LOG] | got iface: wl_compositor v6
[LOG] > Bound to wl_compositor v6
[LOG] | got iface: wl_subcompositor v1
[LOG] | got iface: wl_shm v1
[LOG] | got iface: wp_viewporter v1
[LOG] > Bound to wp_viewporter v1
[LOG] | got iface: wp_tearing_control_manager_v1 v1
[LOG] | got iface: wp_fractional_scale_manager_v1 v1
[LOG] > Bound to wp_fractional_scale_manager_v1 v1
[LOG] | got iface: zxdg_output_manager_v1 v3
[LOG] | got iface: wp_cursor_shape_manager_v1 v1
[LOG] > Bound to wp_cursor_shape_manager_v1 v1
[LOG] | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG] | got iface: zwp_relative_pointer_manager_v1 v1
[LOG] | got iface: zxdg_decoration_manager_v1 v1
[LOG] | got iface: wp_alpha_modifier_v1 v1
[LOG] | got iface: zwlr_gamma_control_manager_v1 v1
[LOG] | got iface: ext_foreign_toplevel_list_v1 v1
[LOG] | got iface: zwp_pointer_gestures_v1 v3
[LOG] | got iface: zwlr_foreign_toplevel_manager_v1 v3
[LOG] | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG] | got iface: zwp_text_input_manager_v1 v1
[LOG] | got iface: zwp_text_input_manager_v3 v1
[LOG] | got iface: zwp_pointer_constraints_v1 v1
[LOG] | got iface: zwlr_output_power_manager_v1 v1
[LOG] | got iface: xdg_activation_v1 v1
[LOG] | got iface: ext_idle_notifier_v1 v1
[LOG] | got iface: ext_session_lock_manager_v1 v1
[LOG] > Bound to ext_session_lock_manager_v1 v1
[LOG] | got iface: zwp_input_method_manager_v2 v1
[LOG] | got iface: zwp_virtual_keyboard_manager_v1 v1
[LOG] | got iface: zwlr_virtual_pointer_manager_v1 v2
[LOG] | got iface: zwlr_output_manager_v1 v4
[LOG] | got iface: org_kde_kwin_server_decoration_manager v1
[LOG] | got iface: hyprland_focus_grab_manager_v1 v1
[LOG] | got iface: zwp_tablet_manager_v2 v1
[LOG] | got iface: zwlr_layer_shell_v1 v5
[LOG] | got iface: wp_presentation v1
[LOG] | got iface: xdg_wm_base v6
[LOG] | got iface: zwlr_data_control_manager_v1 v2
[LOG] | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG] | got iface: xwayland_shell_v1 v1
[LOG] | got iface: zwlr_screencopy_manager_v1 v3
[LOG] > Bound to zwlr_screencopy_manager_v1 v3
[LOG] | got iface: hyprland_toplevel_export_manager_v1 v2
[LOG] | got iface: hyprland_global_shortcuts_manager_v1 v1
[LOG] | got iface: xdg_dialog_v1 v1
[LOG] | got iface: wp_drm_lease_device_v1 v1
[LOG] | got iface: wp_linux_drm_syncobj_manager_v1 v1
[LOG] | got iface: wl_drm v2
[LOG] | got iface: zwp_linux_dmabuf_v1 v5
[LOG] > Bound to zwp_linux_dmabuf_v1 v5
[LOG] | got iface: wl_output v4
[LOG] > Bound to wl_output v4
[LOG] [core] dmabufFeedbackMainDevice
[LOG] output 48 make Chimei Innolux Corporation model 0x1540
[LOG] output 48 name eDP-1
[LOG] output 48 description Chimei Innolux Corporation 0x1540 (eDP-1)
[LOG] output 48 done
[LOG] Running on Hyprland
[LOG] Locking session
[LOG] Got fractional scale: 1
[LOG] Got fractional scale: 1.25
[LOG] configure with serial 9378
[LOG] Configuring surface for logical [Vector2D: x: 2048, y: 1152] and pixel [Vector2D: x: 2560, y: 1440]
[LOG] Got fractional scale: 1.25
[LOG] configure with serial 9378
[LOG] Configuring surface for logical [Vector2D: x: 2048, y: 1152] and pixel [Vector2D: x: 2560, y: 1440]
[LOG] onLockLocked called
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[WARN] Trying to update label, but resource label:100403689862992,time:1727293397191661093 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403689863600,time:1727293397191691751 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403690417440,time:1727293398192421956 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403689862992,time:1727293397191661093 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403689863600,time:1727293397191691751 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403690417440,time:1727293398192421956 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403689862992,time:1727293397191661093 is still pending! Skipping update.
[WARN] Trying to update label, but resource label:100403689863600,time:1727293397191691751 is still pending! Skipping update.
[LOG] output 48 done
[LOG] configure with serial 9383
[LOG] Configuring surface for logical [Vector2D: x: 2048, y: 1152] and pixel [Vector2D: x: 2560, y: 1440]
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[LOG] Authenticating
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[LOG] PAM_PROMPT: Password:
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] auth: Authentication failed for hyprlock
[LOG] Failed attempts: 1
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[LOG] Authenticating
[ERR] Invalid key down event (key already pressed?)
[ERR] Invalid key down event (key already pressed?)
[LOG] PAM_PROMPT: Password:
[ERR] Invalid key down event (stray release event?)
[ERR] Invalid key down event (stray release event?)
[LOG] auth: authenticated for hyprlock
[LOG] Unlocking session
[LOG] Unlocked, exiting!
[LOG] Reached the end, exiting

@tendan tendan added the bug Something isn't working label Sep 25, 2024
@PaideiaDilemma
Copy link
Contributor

Please try hyprlock-git
This probably was fixed via #409.

@CarloCattano
Copy link

Still happening here. Happens only with my lid switch bind tho
bindl =,switch:Lid Switch,exec, hyprlock ; systemctl suspend
I have to reboot, since sddm also will fail to login

@PaideiaDilemma
Copy link
Contributor

LIkely because you lid switch for some odd reason is sending an inputs to hyprlock and that's why your password is wrong. At least that would make sense. Can you try first clearing the password input and then enter the password after suspend?

@CarloCattano
Copy link

in my case was a kernel regression , nothing to do with hypr* it seems
linux-mainline 6.12rc4-1 fixes it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants