AlmaLinux / almalinux-deploy

EL to AlmaLinux migration tool.
GNU General Public License v3.0
542 stars 71 forks source link

Keyboard is not working after reconnecting it #200

Open ahui-A opened 8 months ago

ahui-A commented 8 months ago

Issue description: disconnect keyboard , then connect keyboard, it is not possible to type anything. Environment: HP DL360 Gen 11 with Almalinux 9.3

A possible workaround: 1)Log into an ssh session to check usb devices, keyboard is missing $ lsusb -t /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M | Port 3: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M 2) list USB controllers $ lspci | grep USB 00:14.0 USB controller: Intel Corporation Device 1bcd (rev 11) 01:00.4 USB controller: Hewlett-Packard Company iLO5 Virtual USB Controller (rev 01) 3)00:14.0 is the one we want to reset. unbind and then bind it again $ echo -n "0000:00:14.0" | sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind 0000:00:14.0 [sas@irdeto-server xhci_hcd]$ echo -n "0000:00:14.0" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind 0000:00:14.0 4)check usb devices again, the keyboard is connected again. $ lsusb -t /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M | Port 3: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M | Port 13: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M | Port 13: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M