-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
input: update keyboard led state #127
Conversation
63edd14
to
314e70f
Compare
f92b3fd
to
3900dbf
Compare
After I turn on Num Lock and switch TTY back and forth, the LED remains off until the first keyboard event. |
Strange, this works for me just fine and I don't see anything obvious why it shouldn't work. On suspending the libinput session all devices are removed. Upon resume all devices are (re-)added which updates the led state. |
Not sure. I also just noticed that even if the LED is on on the vconsole TTY that I'm switching back and forth with, upon coming back the LED turns off, until some libinput event I guess, moving the mouse or touchpad also updates it back on. |
I think it is normal that it will turn off, the device has been removed and is re-added. But it should turn back on right away again because the code updates the leds on device re-add. Hard to say why this does not happen. sway and weston will remove the whole keyboard, so it will loose the state. Which version of libinput do you have installed? |
libinput-1.25.0-1.fc39.x86_64, happens with the default config too This is kinda weird, I ran another niri instance on a TTY where I had Num Lock on on the vconsole, and there the LED was turning on on a TTY switch until another libinput event. Then after exiting that niri instance, the LED was off in the vconsole, until I disabled and enabled Num Lock. |
Okay, I somehow managed to reproduce this, but only when going through gdm after a tty switch. |
So, I think this is either caused by libinput itself or by the libinput backend in smithay. As it seems that both, weston and wlroots, completely remove the keyboard (resetting its state) the num lock is just off there anyway and it might be caused by libinput itself delaying stuff. |
I see, interesting. Well it's the only problem I stumbled into so far and it's not really a major one I guess |
Can reproduce on sway config:
|
Yeah, reproduces in sway for me too. |
Thanks |
track and update the keyboard led states
depends on Smithay/smithay#1298fixes #128