USB keyboard and mouse not detected at boot with kernel 5.13.4, 5.12.11 is OK
System: Slint64-14.2.1 based on Slackware64-14.2
kernel generic + initrd (kernel config very close to the one used for Slackware-current) Symptom: USB keyboard and mouse don't work after booting so no way to log in when using a 5.13.4 kernel, no issue with 5.12.11. Which is sad as 5.12 is tagged EOL upstream. I have added a few commands at the end of /etc/rc.d/rc.M to investigate: Code:
kerver=$(uname -r) "modinfo usbhid" gives the same output with both kernels, kernel version put aside. In dmesg5.12.11 but not in dmesg5.13.4 I find these lines: Code:
input: Lite-On Technology Corp. USB Multimedia Keyboard as /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-1/3-1:1.0/0003:04CA:005A.0001/input/input0 Code:
Bus 003 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Code:
I: Bus=0003 Vendor=04ca Product=005a Version=0111 Any clue appreciated. |
Bonsoir Didier
Quote:
Code:
kerver=$(uname -r) |
Merci marav, but this didn't help (console stuck after that).
I also tried to compare outputs of pstree and ps -ef, which gave no more clue. As I have Slackware64-current installed on the same machine, I updated this system using slackpkg, which installed kernels huge and generic also at version 5.13.4, to no avail: same symptoms, so I can't log in using either the generic + initrd or the huge one. Still puzzled. |
Quote:
my bad Code:
udevadm monitor > /tmp/udevadm$kerver & |
Can confirm same behavior here. Unplugging and re-plugging the usb devices (keyboard & mouse) allows them to be recognized. I applied last 4 upgrades at the same time so could not place blame on any one in particular.
|
Just a thought
Do you have : Code:
Enable loadable module support / Path to modprobe binary / (/sbin/modprobe) Or in .config Code:
CONFIG_MODPROBE_PATH="/sbin/modprobe" http://ftp.slackware.com/pub/slackwa...ric-5.13.4.x64 |
2 Attachment(s)
Having put "udevadm monitor" in the background (which I should have done from the beginning, *my* mistake) gives interesting results (in Slint in this case), attached.
Should I understand that for some reason the kernel does not send uevents related to the mouse and keyboard so there's nothing eudev can do when using 5.13.4? How do I confirm or infirm that? scanning /sys to check that the paths are created as they should? Oh, and yes I have CONFIG_MODPROBE_PATH="/sbin/modprobe" |
Quote:
Code:
usb-storage:uas:xhci-pci:ehci-pci:ohci-pci:xhci-hcd:ehci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:mbcache:jbd2:ext4:f2fs:crc32_generic:vfat |
The use of :
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.13.4 |
3 Attachment(s)
It appears that the input devices for the mouse and the keyboard are not exposed in the /sys directory in case of the kernel 5.13.4, thus the corresponding uevent files do not exist. So eudev not being informed of theses devices' existence by uevent can't create paths in /dev for them.
Find why /sys is not populated as it should when using a 5.13.4 kernel needs more investigation. Meanwhile I will provide a kernel 5.12.19 for Slint to stay on the safe side of the world. PS @marav: Thanks but I ran geninitrd (with a few modifications in Slint and as is in Slackware) and anyway using the huge kernel in Slackware doesn't help @ZhaoLin1457: thanks for the hint. Maybe either mkinitrd_command_generator.sh and/or the kernel's configuration need an adaptation (I would assume the latter at least as the huge kernel doesn't help), I don't know yet. There could be a bug in the source code of the kernel, but then someone would have found it already and filed an issue upstream, I assume. |
Update: same symptoms with 5.12.19...
But I just realized that two USB ports out of 6 on this machine are affected. Maybe a commit applied on 5.2.x and also on 5.13.y is the cause? Anyway I am uploading kernel packages at version 5.12.19 on the main Slint mirror. At worst users will be able to boot using the kernel in use when applying the upgrade, which will be preserved. Still I am curious to know a fix: this is still an issue and not only an hardware one, as even with the problematic USB ports the keyboard and mouse work using the kernel 5.12.11. In the mean time I am not ready to build and try all kernels between 5.12.11 and 5.12.19, then do a git bisect to maybe find the offending commit... Any idea to find it more easily is warmly welcome. |
Our fantastic wizard has published each changelog here :
https://www.linuxquestions.org/quest...3/page244.html suggested by someone you know well ... :-) |
Another data point here. In a mature machine (about 6yrs old), all the USB-2 ports work fine but none of the 3x USB-3.0 ports work with kernels 5.13.3,4. On a newer machine all the USB ports are USB-3.2 Gen 2 and all seem to be working OK (as do the USB-2 ports).
The resulting conjecture would be that older USB-3.0 ports are problematic with 5.13.x kernels. chris |
1 Attachment(s)
In attachment, the result of :
Code:
#!/bin/bash I am clearly not able to interpret the changelog of a kernel. |
otherwise, just to know
why not use an LTS kernel in this case? (5.10.x for ex.) |
Quote:
Code:
Mon Jun 7 18:53:49 UTC 2021 |
Code:
Sooner or later we will end up on an LTS kernel again |
Deleted. Sorry for the noise!
|
Are you custom build kernel on 14.2? I guess yes. If not build your own. Now it is mess. Try to connect to system via network. But imo this is completely unworthy any investigation. Use 5.12.x. Why does it matter for you? You are still using 14.2. We can spend month here without any result. Just things happen. Like for me today. All wifi network stack just refused to work. I rebooted and it works now. Should I spend two weeks to figure out what happened? For time being stick to 5.12.x - 5.13.x seems also be some kind flawed. Let forget about it and move on.
|
5.13.5 seems to have cleared up things for me. I use the Huge kernel on -current. Can confirm 3.0 and 3.1 ports had been impacted (all I have on my rear IO). This happened only after a cold boot. I likely did not notice this on earlier kernel updates as I usually "restart" after I apply an upgrade to -current. I tested a couple times using 5.13.4 and cold boot was still leaving me with a powered mouse and keyboard, but no input was recognized until I did a hard reset. After upgrading to 5.13.5 things work fine after starting cold. I had mentioned earlier that unplugging and re-plugging the mouse and keyboard seemed to fix things, but this was either incorrect or inconsistent.
|
[duplicate, deleted]
|
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
It is just Slackware -current is racing horse. There is no need to follow kernel policy as it is in Slackware -current. I would say - you should expect problems running -current. Get to used it. Almost no one here has enough knowledge about kernel usb stack to have even glimpse what's happening. Sure we can behave like say monkeys (no abuse for monkeys) by unplugging and plugging again usb keyboard, mouse. But it does not make us an inch closer to solution of problem. I think it is better for now to stick to "old" 5.12.x which works. I am almost sure things will improve in time. |
Quote:
slackware is not in this case |
Quote:
|
Quote:
|
Quote:
|
Quote:
That's unfortunate. I went back and rested all my USB ports again using the same methods that failed for me with 5.13.4 and everything is working as expected now. These are USB 3.0 and 3.1 ports. |
I have been looking at commit 34ada7b357dda19b32a1c440512da5367621be20 in ChangeLog-5.13.4 , which has also been backported into the 5.12.19 kernel. (Thanks Marav!)
I am no expert, but the way I read the code, Code:
if (gadget_is_otg(gadget) && !otg_desc[0]) { The gadget_is_otg() is defined in /include/linux/usb/gadget.h Code:
/** Quote:
|
Quote:
For now I will try some relatively recent huge kernels found in http://slackware.uk/cumulative/slack...slackware64/k/ (thanks Darren for hosting them!) and check which is the last working here with all ports. |
Quote:
|
I just posted this on the Slint mailing list.
|
Didier,
Excuse me to come back to this, but You said : Quote:
So why ship Slint with an EOL kernel instead of an LTS one? |
Is that Slint equivalent of slackware-current released as stable?
After all, the Slackware 15.0 may be released with the kernel 5.14.x or even 5.16.x, right? And how reproducible is that issue? Is affected only a particular model of laptop, or are many other hardware affected? I ask this because I have never had (also) problems with mouses and keyboards on the last 15 years, no matter of what Linux distribution I used, and I have a garage full of trashware. And all boxes works from this POV. |
Quote:
|
Quote:
let's hope so |
Quote:
Quote:
|
Quote:
Quote:
|
Quote:
As you have seen what I did regarding those strange issues generated by that shared bind mounting of /var/run, for example. I have just asked you regarding the (estimated) impact area, considering that I have never had such problems, even I loved to collect various (old) computers. In fact, until recently you do not specified that multiple users are affected, right? Right now, I have 11 functional computers, and if I will insist a bit, I can bring to life another 5. Everything is trashware, thought - as I already confessed. My flagship box has an AM3 Athlon x4 605e with TDP of 45W and (mainly) works with a built-in Radeon 4250 graphics. For various reasons, sometimes I mount on it a Radeon HD7450, or an AMD R5 240 or a NVIDIA GeForce 605. That's the best I have. Imagine the lower ones. ;) |
Quote:
If you can narrow it down to an offending commit for bonus points you can then test all (or as many as you want) of the release branches of the kernel (with and without the offending associated commit) when reporting it to the kernel developers. |
5.12.18 is "bad". Now building 5.12.17.
PS meanwhile, listening https://www.youtube.com/watch?v=GKHL8XPeLpE The text is misleading: Menahem Pressler is 97 years old, not 90. |
Quote:
I just tried 5.13.5 on the affected machine but the problem is still there. I'm a little perplexed as to why there are so few reports about this elsewhere - is Slackware so far ahead of other distros that not many working systems in the world have experienced the problem yet? chris |
Quote:
|
Quote:
Maybe, you could give a try ? |
5.12.17 is "bad". So it seems that the last "good" kernel be 5.12.16. Bed time form me now (UTC+2).
|
OK, so this is interesting ...
I just applied the latest update to -current and the 5.13.5 kernel-huge that was working fine for me prior (after multiple tests) is now broken again - worse with respect to the mouse as the pointer no longer functions like before. No kernel updates this time and yes, I did merge my .new rc.d scripts as indicated in the 7/27 ChangeLog. Hard reset fixes things. Cold boot now no-go as with 5.13.4 (for me). ** I should probably specify that it was the 2nd 7/27 update to -current that made 5.13.5 stop working for me. The first 7/27 update to -current that upgrade 5.13.4 to 5.13.5 actually fixed things - for 10 hours or so. ;) |
Just trying to share a similar experience in case it points someone to a possible cause. Does not seem to be a common experience.
Currently (no pun intended ;) ), a cold boot will cause the mouse and keyboard to not be recognized with respect to key strokes or mouse clicks. Keeping the mouse and keyboard inserted in the same USB port and pressing the reset button will allow both to be recognized and usable upon reboot. The functionality will be maintained so long as the mouse and keyboard USB ports are not changed. Shutting down the box and changing the USB ports for both the mouse and keyboard will result in the mouse and keyboard to become unresponsive again until the reset button is pressed to reboot. The mouse and keyboard will then be functional in the new ports and remain that way so long as the USB ports are not changed again. All this is with the 5.13.5 huge-kernel. This worked fine prior to the 2nd 7/27 -current update using the 5.13.5. Initially I saw issues only on 5.13.4 which were fixed with the 5.13.5 upgrade (1st 7/27 update to -current). |
Quote:
BTW, the text is exact. It was recorded for the 90th birthday of Menahem Pressler, in December 2013. |
Quote:
|
All times are GMT -5. The time now is 03:33 AM. |