hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

numpad not typing numbers after resuming from suspend

Open MightyCoderX opened this issue 10 months ago • 4 comments

Regression?

No

Hyprlock Info and Version

Hyprlock version v0.6.0 (commit c976b6a)

Hyprlock config
source = ./themes/mocha.conf

$accent = $sky
$accentAlpha = $skyAlpha
$font = Meslo Nerd Font

# GENERAL
general {
    disable_loading_bar = true
    hide_cursor = true
}

# BACKGROUND
background {
    monitor =
    path = $HOME/.dotfiles/wallpapers/lock-current
    blur_passes = 0
    color = $base
}

# TIME
label {
    monitor =
    text = cmd[update:10000] echo "$TIME"
    color = $text
    font_size = 100
    font_family = $font
    position = 0, -80
    halign = center
    valign = top
}

# DATE 
label {
    monitor = 
    text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
    color = $text
    font_size = 25
    font_family = $font
    position = 0, -250
    halign = center
    valign = top
}

# USER AVATAR
image {
    monitor = 
    path = ~/.face
    size = 100
    border_color = $accent

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

# INPUT FIELD
input-field {
    monitor =
    size = 300, 60
    outline_thickness = 4
    dots_size = 0.2
    dots_spacing = 0.2
    dots_center = true
    outer_color = $accent
    inner_color = $surface0
    font_color = $text
    fade_on_empty = false
    placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
    hide_input = false
    check_color = $accent
    fail_color = $red
    fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
    capslock_color = $yellow
    position = 0, -35
    halign = center
    valign = center
}

Compositor Info and Version

System/Version info
Hyprland 0.47.0 built from branch main at commit 64fefa3749868e6170b6275963c6528456a7d9f2  (desktop: move popups to UPs and fix missing subsurface resource).
Date: Sat Feb 1 20:10:19 2025
Tag: v0.47.0-35-g64fefa374, commits: 5777
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags were set


System Information:
System name: Linux
Node name: archlinux
Release: 6.12.10-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:4626] (rev 0c) (prog-if 00 [VGA controller])
01:00.0 3D controller [0302]: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] [10de:25a0] (rev a1)
NVRM version: NVIDIA UNIX x86_64 Kernel Module  565.77  Wed Nov 27 23:33:08 UTC 2024


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

When resuming from suspend I have to hit Ctrl+U or Ctrl+Backspace to make number typing work, toggling numlock off an on manually also works

How to reproduce

  • lock and suspend (used this to see output in terminal hyprlock & systemd suspend)
  • resume from suspend by pressing a random key on keyboard
  • try to type a number on numpad

Crash reports, logs, images, videos

hyprlock_log_20250205.txt

hypridle.conf

MightyCoderX avatar Feb 05 '25 15:02 MightyCoderX

I have the same issue. Typing a symbol on the number row (!,@, etc) also works to make the keypad work again

tyressk avatar May 20 '25 03:05 tyressk

Isn't that a Hyprland problem? Can someone try it on sway?? Obviously your lockscreen doesn't change the numlock state.

PointerDilemma avatar May 21 '25 07:05 PointerDilemma

@PaideiaDilemma ohh, I think you're right. I just tried it on Niri and hyprlock doesn't have this problem there.

Obviously your lockscreen doesn't change the numlock state.

Welll I didn't know this was common knowledge

I'm going to create an ~~issue~~ discussion on hyprland then and link this one there

Edit: discussion created here: https://github.com/hyprwm/Hyprland/discussions/10499

tyressk avatar May 21 '25 10:05 tyressk

Could this possibly be related to #499? I'm having both issues (numpad not working and first keypress being ignored). As soon as any input happens (moving mouse or any button, except numpad keys - those don't work for some reason), everything works correctly.

I have enabled numlock_by_default in my hyprland config and one thing I could notice: As soon as any input is registered (as described above), my numlock led turns on. Another thing I noticed: As soon as suspension is triggered, numlock is turned off. I don't know where this happens, but maybe that's the cause for the [ERR] Invalid key down event (stray release event?) message?

Sajito avatar Jun 12 '25 16:06 Sajito