Solved USB unresponsive when starting X on 14.1-RELEASE

I've got an issue I am at a bit of a loss with. Wondering if anyone can offer any insight, maybe I'm missing something simple or it's a known issue. My issue is that my USB mouse and keyboard seem to be going completely unresponsive upon starting X. I can't figure out if it's USB or the display driver but I suspect USB. I'm running a newer motherboard (MSI B650 Tomahawk + Ryzen). Upon doing a fresh install, all seems to be OK but I do get a lot of USB debug messages - timeouts and things. But everything works OK until I start X. I have a GTX3070 video card, so I use the nvidia-drm driver for X. Loading the driver is OK. But when I start X (either running Xorg, or starting gdm), the system becomes unresponsive to keyboard or mouse. I see a Gnome login screen so seems video is working. Even Caps or Num lock don't work. I have figured it doesn't seem to be a hard lock because if I press the power button, it drops to the console and initiates shutdown as normal. I can't do a Ctrl-Alt-1, nor Ctrl-Alt-Backspace, nothing works on my keyboard.

I've tried unplugging all USB and USB-C peripherals, and plugging in my keyboard into various ports to no avail. I've also tried enabling and disabling the BIOS option for legacy USB support, as well as XHCI handoff (from memory), these also have no effect. My keyboard is wired and I use a Kensington trackball wireless with USB dongle.

It's strange because until last week I was running a happy FreeBSD desktop, all was well with the same hardware. It had the USB timeouts, warnings and so on going on but worked fine. I daftly decided to start recompiling my packages as ports and kept hitting problems with already-installed packages so I did a big cleanout, removing all packages and re-building from ports. Upon the next reboot, I got a kernel panic without any legible reason why and so I tried booting to previous kernel (option 6 on the boot menu) and single user mode. I figured I uninstalled something I shouldn't have. I found at that point, my keyboard wasn't working because it would present the prompt about entering a shell path or pressing Enter to use /bin/sh as a shell, but I couldn't type anything, even Caps or Num lock don't respond. So I booted with a USB stick, backed up my config files and home dirs, clean installed and now here I am trying to get a working system going, still to no avail.

I don't recall or know what was different about my setup until a week ago that had no issues. I did upgrade from 14.0 to 14.1 and this issue started shortly after, but I'm pretty sure I booted into 14.1 and it was OK (but I am not 100% sure). I also don't know why USB was not working at the command line (no X) including as single-user. I've kept a backup of my /boot/loader.conf, /etc/rc.conf and re-used those in my re-install, and since have been commenting/uncommenting items in those to replicate the issue and determine the cause but I'm kind of out of options (hence the post) since now it only happens when starting X.

I am dual booted into Linux currently, can try to dump debug info to an SD card and reboot back into Linux to paste it here. Thanks.
 
Well, if you haven't already try to ssh into your machine from another machine before you start X. That way you can find out if the rest of the machine is working ok (from the ssh session).
 
Well, if you haven't already try to ssh into your machine from another machine before you start X. That way you can find out if the rest of the machine is working ok (from the ssh session).
Thanks, for some reason I hadn't thought of that (I would normally think 3D like that) but I was trying to get work done at the same time, so thinking 2D.

I logged in via SSH and so I had a look at log files once it "locked" after starting X. The latest lines in Xorg.0.log gave me a major clue which led to me solving the issue. I was getting the following (repeated):

Code:
(**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.
(EE) config/devd: error 1 adding device /dev/input/event0

It seems like it was missing the evdev driver. I looked on the forums for the evdev error message I was seeing and came across this: https://forums.freebsd.org/threads/...ing-devices-no-keyboard-trackpad-mouse.77231/
Although they hadn't compiled in evdev support, in this case I'd installed from packages. So I installed xf86-drivers-evdev, restarted X and it's all good now. Thanks!
 
Back
Top