LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2021, 04:12 PM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
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)
dmesg >/tmp/dmesg$kerver
lsmod >/tmp/lsmod$kerver
lsusb >/tmp/lsusb$kerver
modinfo usbhid >/tmp/usbhid$kerver
cat /proc/bus/input/devices >/tmp/input_devices$kerver
I have compared the output of lsmod after booting in both cases, nearly identical.

"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
input: Lite-On Technology Corp. USB Multimedia Keyboard Consumer Control as /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-1/3-1:1.1/0003:04CA:005A.0002/input/input1
input: Lite-On Technology Corp. USB Multimedia Keyboard System Control as /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-1/3-1:1.1/0003:04CA:005A.0002/input/input2
input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-2/3-2:1.0/0003:046D:C077.0003/input/input3
In lsusb5.12.11 only:
Code:
Bus 003 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 002: ID 04ca:005a Lite-On Technology Corp. USB Multimedia Keyboard
in the output of cat /proc/bus/input/devices for 5.12.11 only:
Code:
I: Bus=0003 Vendor=04ca Product=005a Version=0111
N: Name="Lite-On Technology Corp. USB Multimedia Keyboard"
P: Phys=usb-0000:06:00.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-1/3-1:1.0/0003:04CA:005A.0001/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0 
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=04ca Product=005a Version=0111
N: Name="Lite-On Technology Corp. USB Multimedia Keyboard Consumer Control"
P: Phys=usb-0000:06:00.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-1/3-1:1.1/0003:04CA:005A.0002/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=1f
B: KEY=300ff 0 0 483ffff17aff32d bfd4444600000000 1 130c730b17c000 267bfad9415fed 9e168000004400 10000002
B: REL=1040
B: ABS=100000000
B: MSC=10

I: Bus=0003 Vendor=04ca Product=005a Version=0111
N: Name="Lite-On Technology Corp. USB Multimedia Keyboard System Control"
P: Phys=usb-0000:06:00.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-1/3-1:1.1/0003:04CA:005A.0002/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: PROP=0
B: EV=13
B: KEY=c000 10000000000000 0
B: MSC=10

I: Bus=0003 Vendor=046d Product=c077 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:06:00.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb3/3-2/3-2:1.0/0003:046D:C077.0003/input/input3
U: Uniq=
H: Handlers=mouse0 event3 
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=903
B: MSC=10
I would like to know why these input devices are detected when using the kernel 5.12.11 but not 5.13.4.

Any clue appreciated.

Last edited by Didier Spaier; 07-27-2021 at 05:57 PM. Reason: Typo fix in the cat command.
 
Old 07-25-2021, 06:48 PM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Bonsoir Didier
Quote:
Originally Posted by Didier Spaier View Post
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)
dmesg >/tmp/dmesg$kerver
lsmod >/tmp/lsmod$kerver
lsusb >/tmp/lsusb$kerver
modinfo usbhid >/tmp/usbhid$kerver
cat /proc/bus/input/devices >/tmp/input_devices$kerver
I suggest :
Code:
kerver=$(uname -r)
dmesg >/tmp/dmesg$kerver
lsmod >/tmp/lsmod$kerver
lsusb >/tmp/lsusb$kerver
modinfo usbhid >/tmp/usbhid$kerver
cat /proc/bus/input/devices >/tmp/input_devices$kerver
udevadm monitor > /tmp/udevadm$kerver

Last edited by marav; 07-25-2021 at 07:09 PM.
 
2 members found this post helpful.
Old 07-26-2021, 06:31 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-26-2021, 06:41 AM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by Didier Spaier View Post
Merci marav, but this didn't help (console stuck after that).
right

my bad
Code:
udevadm monitor > /tmp/udevadm$kerver &
 
Old 07-26-2021, 06:55 AM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 07-26-2021, 06:59 AM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Just a thought

Do you have :
Code:
Enable loadable module support / Path to modprobe binary / (/sbin/modprobe)
In your kernel menuconfig ?

Or in .config
Code:
CONFIG_MODPROBE_PATH="/sbin/modprobe"
EDIT : ignore it
http://ftp.slackware.com/pub/slackwa...ric-5.13.4.x64

Last edited by marav; 07-26-2021 at 07:25 AM.
 
Old 07-26-2021, 07:29 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Original Poster
Rep: Reputation: Disabled
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"
Attached Files
File Type: txt udevadm5.13.4.txt (1.8 KB, 20 views)
File Type: txt udevadm5.12.11.txt (20.0 KB, 17 views)
 
Old 07-26-2021, 07:33 AM   #8
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,029

Rep: Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222
Quote:
Originally Posted by Didier Spaier View Post
Any clue appreciated.
I use the generic kernel and the following modules loaded on initrd:
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
With this setup, I never had problems with the USB mouses or keyboards. Even while running the latest kernel.

Last edited by ZhaoLin1457; 07-26-2021 at 07:35 AM.
 
1 members found this post helpful.
Old 07-26-2021, 07:48 AM   #9
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
The use of :
Code:
 /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.13.4
could be helpful ?
 
1 members found this post helpful.
Old 07-26-2021, 11:58 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Original Poster
Rep: Reputation: Disabled
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.
Attached Files
File Type: txt uevent5.12.11.txt (2.1 KB, 27 views)
File Type: txt inputdevices5.13.4.txt (922 Bytes, 16 views)
File Type: txt inputdevices5.12.11.txt (1.3 KB, 13 views)

Last edited by Didier Spaier; 07-26-2021 at 12:30 PM. Reason: PS added.
 
Old 07-26-2021, 05:15 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Original Poster
Rep: Reputation: Disabled
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.

Last edited by Didier Spaier; 07-26-2021 at 05:50 PM.
 
Old 07-26-2021, 05:40 PM   #12
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Our fantastic wizard has published each changelog here :

https://www.linuxquestions.org/quest...3/page244.html

suggested by someone you know well ... :-)

Last edited by marav; 07-26-2021 at 05:45 PM.
 
Old 07-27-2021, 01:59 AM   #13
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
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

Last edited by chris.willing; 07-27-2021 at 02:04 AM.
 
1 members found this post helpful.
Old 07-27-2021, 02:30 AM   #14
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
In attachment, the result of :
Code:
#!/bin/bash
mkdir $HOME/change/
VER="5.12.12 5.12.13 5.12.14 5.12.15 5.12.16 5.12.17 5.12.18 5.12.19 5.13.0 5.13.1 5.13.2 5.13.3 5.13.4"
for i in $VER; do
  wget -O $HOME/change/changelog_"$i".txt https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-"$i"
done
grep usb $HOME/change/* > $HOME/change/all_usb_change.txt
And good luck with the rest
I am clearly not able to interpret the changelog of a kernel.
Attached Files
File Type: txt all_usb_change.txt (40.8 KB, 27 views)

Last edited by marav; 07-27-2021 at 02:43 AM.
 
2 members found this post helpful.
Old 07-27-2021, 04:55 AM   #15
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,396

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
otherwise, just to know
why not use an LTS kernel in this case? (5.10.x for ex.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RedHat USB keyboard/mouse not detected w/ usbserial error message penyuan Linux - Software 7 06-26-2017 08:20 PM
Mouse not working on Damn Small Linux | Mouse: Omega Optical Mouse (16c Gaming Mouse) AndyDeveloper Linux - Hardware 3 04-09-2017 01:32 PM
hp wireless keyboard & mouse, keyboard works, mouse do not work not working john hughes Linux - Desktop 2 04-04-2016 11:00 AM
Keyboard and mouse not detected after starting X Infinity8 Slackware 26 09-09-2012 01:04 AM
usb mouse NOT detected, but usb keyboard IS detected mr.anderson Slackware 16 04-26-2006 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration