USB keyboard stops working after reboot

So all of a sudden my USB external keyboard started giving issues it stops working after I reboot or sometimes when the computer suspends and wake up. I have to use a another port or unplu and plug it back In. Please help me

[kundan@EndeavourPC ~]$ lspci -k
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: ivb_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
	DeviceName: Intel(R) Graphics 4000
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series]
	DeviceName: Radeon HD 7670M
	Subsystem: Hewlett-Packard Company Radeon HD 7670M
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
07:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
	DeviceName: Ralink RT3290LE  802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Ad
	Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter
	Kernel driver in use: rt2800pci
	Kernel modules: rt2800pci
07:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
	Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 05)
	DeviceName: Realtek PCIe FE Family Controller
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: r8169
	Kernel modules: r8169
09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
	Subsystem: Hewlett-Packard Company Device 183e
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci

System:
  Kernel: 5.17.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: GNOME v: 42.1 tk: GTK v: 3.24.33 wm: gnome-shell dm: GDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: Hewlett-Packard product: HP Pavilion g6 Notebook PC
    v: 0884110000385910000610100 serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: Hewlett-Packard model: 183E v: 56.32 serial: <superuser required>
    UEFI: Insyde v: F.22 date: 11/22/2012
Battery:
  ID-1: BAT0 charge: 15.6 Wh (100.0%) condition: 15.6/15.6 Wh (100.0%)
    volts: 12.3 min: 10.8 model: Hewlett-Packard Primary serial: N/A
    status: full
CPU:
  Info: dual core model: Intel Core i3-3110M bits: 64 type: MT MCP
    arch: Ivy Bridge rev: 9 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 1236 high: 1359 min/max: 1200/2400 cores: 1: 1359
    2: 1198 3: 1197 4: 1191 bogomips: 19157
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel ports: active: LVDS-1 empty: DP-1,HDMI-A-1,VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:0166
  Device-2: AMD Thames [Radeon HD 7500M/7600M Series]
    vendor: Hewlett-Packard driver: radeon v: kernel pcie: speed: 2.5 GT/s
    lanes: 8 bus-ID: 01:00.0 chip-ID: 1002:6840
  Device-3: Suyin HP TrueVision HD Integrated Webcam type: USB
    driver: uvcvideo bus-ID: 2-1.5:3 chip-ID: 064e:e263
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: gnome-shell driver: X: loaded: intel,radeon
    unloaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: 0
  Monitor-1: LVDS-1 model: LG Display 0x034d res: 1366x768 dpi: 101
    diag: 395mm (15.5")
  OpenGL: renderer: Mesa Intel HD Graphics 4000 (IVB GT2)
    v: 4.2 Mesa 22.0.2 compat-v: 3.1 direct render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1e20
  Sound Server-1: ALSA v: k5.17.5-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Ralink RT3290 Wireless 802.11n 1T/1R PCIe vendor: Hewlett-Packard
    driver: rt2800pci v: 2.3.0 pcie: speed: 2.5 GT/s lanes: 1 bus-ID: 07:00.0
    chip-ID: 1814:3290
  IF: wlan0 state: down mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8136
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Ralink RT3290 Bluetooth vendor: Hewlett-Packard driver: N/A pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 07:00.1 chip-ID: 1814:3298
  Report: This feature requires one of these tools: hciconfig/bt-adapter
Drives:
  Local Storage: total: 931.51 GiB used: 12.89 GiB (1.4%)
  ID-1: /dev/sda vendor: Seagate model: ST1000LM024 HN-M101MBB
    size: 931.51 GiB speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 922.42 GiB used: 12.89 GiB (1.4%) fs: btrfs dev: /dev/sda2
  ID-2: /boot/efi size: 299.4 MiB used: 576 KiB (0.2%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 922.42 GiB used: 12.89 GiB (1.4%) fs: btrfs
    dev: /dev/sda2
  ID-4: /var/log size: 922.42 GiB used: 12.89 GiB (1.4%) fs: btrfs
    dev: /dev/sda2
Swap:
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda3
Sensors:
  System Temperatures: cpu: 66.0 C mobo: N/A gpu: radeon temp: 58.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 221 Uptime: 4m Memory: 7.66 GiB used: 2.13 GiB (27.8%)
  Init: systemd v: 250 Compilers: gcc: 11.2.0 Packages: pacman: 1104
  Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.15

Have you tried to use the mainstream kernel instead of the zen kernel?

Haven’t tried yet but as I said It was working fine before now all of a sudden it stopped working. Also I had TLP installed so thought maybe it was causing the issue so removed TLP. What i’ll do is try the mainstream kernel and check

1 Like

So I just tried switching to the mainstream kernel but it doesn’t even work and allow me to select kernel during boot (the keyboard lights up but doesn’t work) , Also unable to login so I just uninstalled zen and LTS kernel so that it chooses the mainline Kernel but still unable to login have to unplug and re-plug to make it work or sometimes even use another port.

I’m on the mainline kernel now but still the same issue

[kundan@EndeavourPC ~]$ uname -r
5.17.5-arch1-1

Do the USB ports work properly with another device, like a flash drive, external HDD or something? (Assuming you can log in using your laptop keyboard)

Well my Laptop Internal keyboard is broken so I disabled it during the first install of EndOs by adding GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash i8042.nokbd” to the grubconfg I don’t use Internal Keyboard so that it is why it is very crucial for me that USB keyboard works. And yes other devices like mouse, flash drive works. It was working fine earlier donno what happened

You’ve mentioned LTS before, that has the same issue?

LTS ZEN and even Mainline Kernel now.
Currently I’ve managed to boot into Linux mainline kernel but it has the same issue when I reboot the keyboard lights up but doesnt work have to unplug and replug it back in to work.

[kundan@EndeavourPC ~]$ uname -r
5.17.5-arch1-1

But before you had LTS installed, did it have the same issue or haven’t you try it?

Yes it had the same issue on LTS as well.

So basically I installed zen & LTS along with the mainline kernel during installation and everything was working fine. I never had this issue before also there is nothing wrong with the port hardware cause the keyboard lights up but doesn’t work on keypress.

Besides TLP, there’s nothing else you have installed?

I had TLP and nothing else(power manager) and thought it was causing the issue so I removed the package.
how can I confirm if it is completely removed?
I’m new to linux I recently switched to linux so thank you for bearing with me

How did you remove it?

Using add or remove application selected the packages and removed
Cause I tried using sudo pacman -Rsn TLP but it throw some error that TLP-RWD needed so had to use the GUI to remove it.

I think what happened is that the GUI packagemanager removed certain dependencies that the USB keyboard also uses, that was the warning pacman threw out in the first place. This is why we don’t ship these apps by default.

Perhaps there is a more tech savvy member or someone who had this issue over here to help you, because this goes beyond my reach. :wink:

1 Like

So by reinstalling those back will it get fixed. I mean if it is the Keyboard drivers you mean to say can it be reinstalled ?

It could be, but I’m not completely sure if that is what is causing the issue.

OS installations don’t just break, though hardware sometimes does.

If you didn’t make any changes to your system then you should confirm the keyboard works correctly in another system.

1 Like

Well found out that the port itself is faulty sorry for the trouble. I figured out by installing Windows and found that it was giving issues there as well sometimes it was working and sometimes it won’t.

Thanks a lot for your help here guys, really appreciate it ad sorry for the trouble once again.

1 Like