LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-29-2021, 01:38 PM   #1
r06ue1
LQ Newbie
 
Registered: Jul 2018
Posts: 11

Rep: Reputation: Disabled
Xubuntu 20.04 USB Keyboard and Mouse Not Working


Kernel 5.4.0-72

Here's what I have tried:

USB Keyboard and Mouse work in all ports (KB/Mouse ports, USB 2.0 ports, USB 3.0 ports) in the BIOS settings and GRUB menu.

USB Keyboard and Mouse with the OS running (or in recovery mode) works only in the USB 3.0 ports.

This appears to have started after upgrading from 18.04.02.

I would be okay with just using the USB 3.0 port, however, the mouse is constantly double clicking on everything due to the speed and lowing the sensitivity to the lowest setting has not helped.

Since both work in the KB/Mouse ports in the BIOS settings and GRUB menu, the problem appears to be an OS one. Any ideas would be greatly appreciated by a Linux newb.

Thanks in advance!
 
Old 04-29-2021, 03:52 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
To see whether it's a problem at the OS level or the x windows level. Try something like ...

sudo od -t a /dev/input/mouse0

It should spit out some binary nonsense every time you move or click on the mouse (and only then).

Also try a different mouse.
 
Old 04-29-2021, 07:26 PM   #3
furtom
LQ Newbie
 
Registered: Nov 2019
Posts: 1

Rep: Reputation: Disabled
I heard of a similar problem occurring due to Wayland. Though I expect, with Xfce, you would be running xorg, it's worth looking into.

The following command will tell you which display server you are running:

Quote:
loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
If it's xorg, then this is the wrong track. But if it's Wayland, try to log into an xorg session and see if the problem goes away.
 
1 members found this post helpful.
Old 04-30-2021, 08:26 AM   #4
r06ue1
LQ Newbie
 
Registered: Jul 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by furtom View Post
I heard of a similar problem occurring due to Wayland. Though I expect, with Xfce, you would be running xorg, it's worth looking into.

The following command will tell you which display server you are running:



If it's xorg, then this is the wrong track. But if it's Wayland, try to log into an xorg session and see if the problem goes away.
It's Xorg:

Type=x11

This is a relatively new motherboard so I'd hate to think that it is driver related but that is the only thing coming to mind. It seems that nothing I plug in to those USB ports works (I tried a USB 2.0 drive in one of the USB 2.0 ports and it didn't light up or show in the list of devices using lsblk). I'll try to find out the controller info and see if those drivers were excluded from the kernel builds.
 
Old 05-01-2021, 04:39 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by cyent View Post
Code:
sudo od -t a /dev/input/mouse0
It should spit out some binary nonsense every time you move or click on the mouse (and only then).

Also try a different mouse.
Try this. On all USB ports obviously. It's a simple test, should provide definite troubleshooting info.
 
Old 05-01-2021, 09:18 AM   #6
r06ue1
LQ Newbie
 
Registered: Jul 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Try this. On all USB ports obviously. It's a simple test, should provide definite troubleshooting info.
In the USB 3.0 port, I get output, in any others (2.0, 1.1) nothing. When I move the mouse to one of those ports, it disappears from the list of USB devices.

Code:
lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 010 Device 003: ID 046d:c32b Logitech, Inc. G910 Orion Spark Mechanical Keyboard
Bus 010 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Move back to 3.0 port, works fine again:

Code:
lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 010 Device 004: ID 187c:0515 Alienware Corporation 
Bus 010 Device 003: ID 046d:c32b Logitech, Inc. G910 Orion Spark Mechanical Keyboard
Bus 010 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I thought maybe the OS was powering off the USB ports (since plugging in a USB drive also fails on those ports) so I tried adding usbcore.autosuspend=-1 to the grub command line but that didn't fix the problem. I'm thinking that this is a driver bug and I need to report it.
 
Old 05-01-2021, 10:23 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Any other kernels available for install? I'd try something not 5.4.x.
 
Old 05-01-2021, 10:33 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Are the USB2 ports working at all?
 
Old 05-03-2021, 11:13 AM   #9
r06ue1
LQ Newbie
 
Registered: Jul 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Are the USB2 ports working at all?
Yes, in BIOS and GRUB, as soon as the OS boots up, they shut down. Goes for the 1.1 USB ports also, only the 3.0 work while the OS is running.
 
Old 05-04-2021, 10:29 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ so it's not actually a mouse/keyboard problem?

https://duckduckgo.com/?q=linux+"usb2"+ports+do+not+work
https://duckduckgo.com/?q=linux+"usb2"+does+not+work
 
1 members found this post helpful.
Old 05-06-2021, 11:04 AM   #11
r06ue1
LQ Newbie
 
Registered: Jul 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by ondoho View Post
^ so it's not actually a mouse/keyboard problem?

https://duckduckgo.com/?q=linux+"usb2"+ports+do+not+work
https://duckduckgo.com/?q=linux+"usb2"+does+not+work
Searching on that helped a lot, thanks.

Adding "iommu=soft" to GRUB fixed the problem.
 
1 members found this post helpful.
Old 05-07-2021, 12:24 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ perfect.

Now please mark your thread SOLVED (see my signature).
 
  


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
USB portable hard drive is working, USB mouse and keyboard are not working. mehh Linux - Hardware 5 02-19-2021 12:23 AM
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
USB mouse and keyboard not working after ubuntu 8.10 upgrade philosophia Linux - Newbie 13 08-30-2011 11:27 AM

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

All times are GMT -5. The time now is 09:17 AM.

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