0

I'm running Ubuntu 22.04. I just got this box (HP Z220 Workstation) back from a student who was using it successfully. However, when I boot, my mouse and keyboard are not working at login.

The machine is on my network (wired), so I can ssh in. I see both devices in lsusb. I am able to boot to GRUB and go into recovery mode, so the keyboard is working. I have tried multiple ports and keyboards and mice.

Several pages have suggested doing updates/upgrades, including sudo apt-get install xserver-xorg-input-all and I have tried this, to no avail.

I'm at a loss of what to do next. I have reviewed these questions:

Per RonJohn's questions below, kb works in UEFI, but AFAIK there's no way to tell about the mouse. As I wrote, I've tried multiple kbs and mice, but here's what lsusb says right now:

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0e6a:02c0 Megawin Technology Co., Ltd Defender Gaming Keyboard
Bus 003 Device 002: ID 17ef:602e Lenovo USB Optical Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

OK, figured it out... by uninstalling the desktop entirely, I was at the tty login prompt and I got error "USB Device Not Authorized for usage".

Turns out that usbguard was installed and configured to permanently autoblock any USB device that was hot-plugged after booting. I guess I connected the first KB and mouse after booting, and then I swapped other KB and mice while running.

Anyway, I don't need usbguard, so I uninstalled that and then just reinstalled Gnome.

Joshua
  • 1
  • 1
  • 3
  • 1
    What does lsusb say? Do the kb and mouse work in UEFI? – RonJohn Mar 29 '23 at 04:49
  • @RonJohn, couldn't fit everything here so I added it to the original question. – Joshua Mar 29 '23 at 16:31
  • Welcome to Ask Ubuntu. Always add the new information in your question when we ask you for clarifications. Best of luck! – user68186 Mar 29 '23 at 17:37
  • "kb works in UEFI, but AFAIK there's no way to tell about the mouse." Mice work in Gigabyte's UEFI "bios" manager. Maybe they also work in Dell's. – RonJohn Mar 29 '23 at 17:46
  • It's apparent that Linux detects the "Lenovo USB Optical Mouse". What if you turn it off and turn it back on? – RonJohn Mar 29 '23 at 17:48
  • 1
    @RonJohn the issue was usbguard, which I didn't know about. Rebooting, even with the devices attached, didn't help. I really appreciate your help, though! – Joshua Mar 29 '23 at 19:03
  • I should have known that schools (and businesses) implement something like that. Heck, my company-provided laptop can only write encrypted files to thumb drives. – RonJohn Mar 29 '23 at 19:27
  • I am having the same issue, but I dont have usbguard installed. Any suggestion? – Sachith Muhandiram Jul 31 '23 at 17:08
  • 1
    @SachithMuhandiram, sorry, wish I had. I am assuming that you already ran through the linked questions and tried what worked there. – Joshua Aug 02 '23 at 01:18
  • @Joshua Yes, none of them worked. My issue was with tlp. I stopped that service and now USB is working normal – Sachith Muhandiram Aug 02 '23 at 02:35

0 Answers0