[SOLVED] USB keyboard and mouse not detected

Questions about hardware, drivers and peripherals
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
SMG
Level 23
Level 23
Posts: 19908
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB keyboard and mouse not detected

Post by SMG »

Are these USB devices very new? What brand name is on the hub? It might be possible that the linux drivers available for them may not yet be the best match.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Akura
Level 1
Level 1
Posts: 16
Joined: Wed Aug 19, 2020 12:17 pm

Re: USB keyboard and mouse not detected

Post by Akura »

SMG wrote:
Wed Aug 26, 2020 2:58 pm
Are these USB devices very new? What brand name is on the hub? It might be possible that the linux drivers available for them may not yet be the best match.
Before I do that the reminder: The unplugging and re-plugging issue persists with and without USB hubs and on any USB port both 2.0 and 3.0. So...
  • Atolla USB 3.0 HUB
  • Sabrent HB-UM43 USB HUB
  • Wacom Intuos S
  • Sharkoon Skiller Gaming Keboard
  • Zelotes T-80 Gaming Mouse
I bought all devices in the last 5 years, but I have to check how old they are exactly...
Akura
Level 1
Level 1
Posts: 16
Joined: Wed Aug 19, 2020 12:17 pm

Re: USB keyboard and mouse not detected

Post by Akura »

Okay... quick update... My computer is on for about an hour and the keyboard is still working. I'm cautiously optimistic...

Yesterday I changed the

Code: Select all

/etc/default/grub
file to have the line

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1 iommu=soft"
and then I updated the grub. I already did that several days ago, but back then there were a couple parameters more which were suggested by some Google results. Yesterday I then tried several combinations of these parameters and the ones above seem to work for now. It somewhat makes sense that there is a problem with auto suspension, but, interestingly,

Code: Select all

usbcore.autosuspend=-1
alone didn't work.

Let's see how it looks tomorrow. Waiting for nothing to happen is a bit annoying... :lol:
User avatar
antikythera
Level 15
Level 15
Posts: 5724
Joined: Thu Jul 02, 2020 12:52 pm
Location: Cymru

Re: USB keyboard and mouse not detected

Post by antikythera »

Good luck and kudos for your saint level of patience dealing with this annoyance.
I’ll tell you a DNS joke but be advised, it could take up to 24 hours for everyone to get it.
User avatar
SMG
Level 23
Level 23
Posts: 19908
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB keyboard and mouse not detected

Post by SMG »

The person in this thread, Solved Lost USB devices after Mint 20 installation ended up reinstalling Mint several times and then finally everything worked properly. The problem might be a little different than yours, but just wanted to make this available if your current fix does not work.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Akura
Level 1
Level 1
Posts: 16
Joined: Wed Aug 19, 2020 12:17 pm

Re: USB keyboard and mouse not detected

Post by Akura »

SMG wrote:
Thu Aug 27, 2020 4:07 pm
The person in this thread, Solved Lost USB devices after Mint 20 installation ended up reinstalling Mint several times and then finally everything worked properly. The problem might be a little different than yours, but just wanted to make this available if your current fix does not work.
Ah, yes, I saw that thread! But I didn't read the "conclusion" yet. Re-installing the OS often helped me in the past, but I don't want to go there unless it's absolutely necessary.

-----------------------------------------------------------------------------------------------------------------------------

So, after a morning of several hours of work and a longish video call, everything works. I conclude that changing the grub file did fix the problem. For now...
Thanks again to everyone who offered solutions!
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: [SOLVED] USB keyboard and mouse not detected

Post by hglee »

Just out of curiosity, please type "sudo update-usbids && sudo update-pciids" at the terminal command prompt, to update your system's USB and PCI device identification databases. This should look something like this ...

Code: Select all

$ sudo update-usbids && sudo update-pciids
[sudo] password for Akura:

--2020-08-28 09:53:28--  http://www.linux-usb.org/usb.ids
Resolving www.linux-usb.org (www.linux-usb.org)... 216.105.38.10
Connecting to www.linux-usb.org (www.linux-usb.org)|216.105.38.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 709065 (692K) [text/plain]
Saving to: ‘/var/lib/usbutils/usb.ids.new’
/var/lib/usbutils/usb.ids.new

100%[==========================================>] 692.45K   998KB/s    in 0.7s    
2020-08-28 09:53:29 (998 KB/s) - ‘/var/lib/usbutils/usb.ids.new’ saved [709065/709065]
Done.
Downloaded daily snapshot dated 2020-08-19 03:15:02

Then type "lsusb" and post the output of that command, which should look something like this ...

Code: Select all

$ lsusb

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 27c6:538d Shenzhen Goodix Technology Co.,Ltd. 
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 005: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 004: ID 05e3:0626 Genesys Logic, Inc. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:0177 Realtek Semiconductor Corp. 
Bus 001 Device 008: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Ta.
Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
Welcome
Level 6
Level 6
Posts: 1027
Joined: Wed Aug 19, 2020 11:38 am

Re: [SOLVED] USB keyboard and mouse not detected

Post by Welcome »

hglee wrote:
Fri Aug 28, 2020 10:14 am
Just out of curiosity, please type "sudo update-usbids && sudo update-pciids" at the terminal command prompt, to update your system's USB and PCI device identification databases. This should look something like this ...

Code: Select all

$ sudo update-usbids && sudo update-pciids
@hglee: To help Akura, if his version of Linux Mint 20 has usbutils installed, but doesn't have update-usbids, is there a manual method to perform the update?

For example, would the following work?

Download the file

Code: Select all

curl http://www.linux-usb.org/usb.ids > usb.ids
and then execute the following:

Code: Select all

sudo mv usb.ids /var/lib/usbutils/usb.ids.new
sudo chmod 644 /var/lib/usbutils/usb.ids.new
sudo chown root:root /var/lib/usbutils/usb.ids.new
Or should the existing usb.ids file be replaced by the updated file?

I checked 3 Linux Mint 20 Cinnamon machines, and they don't have update-usbids but they do have usbutils installed. They do have update-pciids.

Edit: Looks to me like it should replace it...

Would probably need to first verify the contents of the new file first to ensure it wasn't clobbered when downloaded, and then run something like...

Code: Select all

cd /var/lib/usbutils
sudo mv usb.ids usb.ids.old
sudo mv usb.ids.new usb.ids
EDIT2 NOTE: Probably need to use a program like geany to view and check the contents of usb.ids. Other text editors might give problems.

Further research indicates that the script may have been removed on purpose from usbutils. Some people consider it dangerous to modify files outside of user areas, and some people have questions regarding this update.
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: [SOLVED] USB keyboard and mouse not detected

Post by hglee »

Welcome wrote: To help Akura, if his version of Linux Mint 20 has usbutils installed, but doesn't have update-usbids, is there a manual method to perform the update?

Yes, these commands should do what update-usbids does ...

Code: Select all

wget -c http://www.linux-usb.org/usb.ids
sudo mv --force ./usb.ids /var/lib/usbutils/
sudo ln -sf /var/lib/usbutils/usb.ids /usr/share/misc/usb.id



For repetitive convenience these commands may be placed into a script named update-usbids and placed in the ~/bin directory after doing chmod +x update-usbids ...

Code: Select all

#!/bin/bash
## name this script as 'update-usbids'
wget -c http://www.linux-usb.org/usb.ids
sudo mv --force ./usb.ids /var/lib/usbutils/
sudo ln -sf /var/lib/usbutils/usb.ids /usr/share/misc/usb.id
exit
Of course, this action doesn't download any drivers, so it doesn't fix anything -- but it updates the system's USB ID database so that lsusb may offer something more informative than device "ID 046d:c52b".
Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
Welcome
Level 6
Level 6
Posts: 1027
Joined: Wed Aug 19, 2020 11:38 am

Re: [SOLVED] USB keyboard and mouse not detected

Post by Welcome »

hglee wrote:
Fri Aug 28, 2020 7:31 pm
For repetitive convenience these commands may be placed into a script named update-usbids and placed in the ~/bin directory after doing chmod +x update-usbids ...

Code: Select all

#!/bin/bash
## name this script as 'update-usbids'
wget -c http://www.linux-usb.org/usb.ids
sudo mv --force ./usb.ids /var/lib/usbutils/
sudo ln -sf /var/lib/usbutils/usb.ids /usr/share/misc/usb.id
exit
Of course, this action doesn't download any drivers, so it doesn't fix anything -- but it updates the system's USB ID database so that lsusb may offer something more informative than device "ID 046d:c52b".
@hglee -- Thanks! Perfect! :D
Locked

Return to “Hardware Support”