-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
USB input devices do not work unless they are replugged #28512
Comments
Some logs:
|
Maybe duplicate of #24026 ??
|
I'm using LightDM with web-greeter which do not use wayland. The unit is |
Nothing changed after adding the drop-in for |
Thanks. Then, that's not a duplicate of #24026. Hmm... Is the issue only happens when keyboard or mouse are connected to the USB hub? What happens if they are connected to the machine's USB port? |
Though I am not familiar with plasma or wayland, but I cannot find anything spurious in the provided logs. Also, is the key of the issue is in wayland or not? What happens when you use Gnome or any others? |
The same issue occurs when the mouse & keyboard are connected to the motherboard's USB ports. Oops, I could have sworn I tested it before, I guess I forgot. And it looks like it only happens with input devices(?), as a USB flash drive is accessible just fine. Starting a plasma session from the tty with Booting with |
Trying it over and over again, with the mouse connected to the front USB port, sometimes it works while the keyboard connected via the monitor doesn't. I tried using SDDM and I couldn't trigger the issue. This is annoying. So... something in systemd v254rc1+ broke something USB input related for plasma-wayland sessions started via LightDM?! Switching from LightDM to SDDM is not an option for me because I need multi-seat support. |
One spurious(?) thing I found is that the following symlinks are requested by two devices, and the owner is swapped on replugging.
As you can see, initially the link owned by event5, but later event6. And, it seems event6 is something important, at least it is managed by logind.
But I do not know if the swapping of by-id or by-path symlinks is essential.
Also, such conflicts of symlinks can be also observerd in v253... |
@nl6720 BTW, is it possible to reproduce the issue with LightDM+plasma+wayland without multi-seat setup? |
Previously I just commented out the seat specific autologin in
Hmm, there was supposed to be a rule for the USB CEC adapter, where did that one go... journal.2023-07-25T16:25:32+03:00.log |
No wait. I ran |
Could you show all seats and sessions on the machine: |
Single seat:
Multi-seat:
The fun thing was that now keyboard & mouse worked in plasma wayland session in multi-seat. |
Could you try several times on multi-seat setup? And if you observe the issue again, then could you show the loginctl results again? |
@nl6720 did you have a chance to try this? |
Sorry, I didn't have the time yesterday. Today, two times it worked fine, but the third time I triggered the issue again. This is with login then logout not by rebooting.
Just to note, the USB CEC adapter is now in
But this may not be relevant since it was there all three times I tried logging in today. |
Hmm. I have no idea. |
Given we need more time and external help, moving to the next milestone |
The KDE issue was closed and a new issue was created for libinput: https://gitlab.freedesktop.org/libinput/libinput/-/issues/936 👀 |
OK, let's close this here then, as this is apparently not a systemd problem, but somewhere between kde/libinput/kernel/hardware. |
The issue seems to have disappeared after upgrading Plasma to 6.0.1. 🤷 |
systemd version the issue has been seen with
254rc3-1
Used distribution
Arch Linux
Linux kernel version used
6.4.5-arch1-1
CPU architectures issue was seen on
x86_64
Component
systemd-udevd
Expected behaviour you didn't see
USB devices plugged into the monitor's USB hub work in a plasma wayland session.
Unexpected behaviour you saw
After updating systemd to 254rc2-2, USB devices attached to my monitor's USB hub do not work in Plasma wayland session unless I unplug and replug them (or the USB/Thunderbolt3 cable connecting the monitor to the PC).
The USB devices work fine in a Plasma Xorg session and also in LightDM+web-greeter which uses Xorg.
From what I can tell, rc1 is bad too.
See also Arch bug FS#79144.
Steps to reproduce the problem
Start a plasmawayland session.
Additional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: