External Keyboard doesn't work after sleep/suspend

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Intruder101
Level 1
Level 1
Posts: 12
Joined: Fri Feb 21, 2020 6:42 am

External Keyboard doesn't work after sleep/suspend

Post by Intruder101 »

Upon normal startup all working fine.
After I wake the computer from sleep/suspend the keyboard won't light up or work.
After disconnecting and reconnecting its working as usual.

Code: Select all

System:    Kernel: 5.4.0-94-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.7 
           wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X512FAC v: 1.0 
           serial: <filter> 
           Mobo: ASUSTeK model: X512FAC v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: X512FAC.303 date: 03/25/2020 
Battery:   ID-1: BAT0 charge: 8.5 Wh condition: 29.4/37.1 Wh (79%) volts: 7.8/7.8 
           model: ASUSTeK ASUS Battery serial: <filter> status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i5-10210U bits: 64 type: MT MCP arch: Kaby Lake 
           rev: C L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33599 
           Speed: 3264 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 3245 2: 3186 3: 3247 
           4: 3109 5: 3271 6: 3210 7: 3067 8: 3031 
Graphics:  Device-1: Intel UHD Graphics vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:9b41 
           Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 2560x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.0.3 
           direct render: Yes 
Audio:     Device-1: Intel vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:02c8 
           Sound Server: ALSA v: k5.4.0-94-generic 
Network:   Device-1: Intel Wireless-AC 9462 driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3 
           chip ID: 8086:02f0 
           IF: wlo1 state: up mac: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 56.63 GiB (23.7%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPNUW-256G-1202 
           size: 238.47 GiB speed: 15.8 Gb/s lanes: 2 serial: <filter> 
Partition: ID-1: / size: 233.24 GiB used: 56.62 GiB (24.3%) fs: ext4 dev: /dev/nvme0n1p2 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-3:2 info: ROCCAT ROCCAT Kova type: Mouse,Keyboard 
           driver: hid-generic,usbhid rev: 2.0 chip ID: 1e7d:2cef 
           Device-2: 1-4:3 info: Holtek USB-HID Keyboard type: Keyboard,HID 
           driver: hid-generic,usbhid rev: 1.1 chip ID: 04d9:a232 
           Device-3: 1-6:4 info: IMC Networks USB2.0 HD UVC WebCam type: Video driver: uvcvideo 
           rev: 2.0 chip ID: 13d3:56dd 
           Device-4: 1-10:5 info: Intel type: Bluetooth driver: btusb rev: 2.0 chip ID: 8087:0aaa 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.1 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 58.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com uma main upstream import backport
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 249 Uptime: 1h 01m Memory: 7.62 GiB used: 1.31 GiB (17.2%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
lsusb

Code: Select all

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 13d3:56dd IMC Networks USB2.0 HD UVC WebCam
Bus 001 Device 003: ID 04d9:a232 Holtek Semiconductor, Inc. USB-HID Keyboard
Bus 001 Device 002: ID 1e7d:2cef ROCCAT ROCCAT Kova
Bus 001 Device 005: ID 8087:0aaa Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lspci

Code: Select all

00:00.0 Host bridge: Intel Corporation Device 9b61 (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake Thermal Subsytem
00:14.0 USB controller: Intel Corporation Device 02ed
00:14.2 RAM memory: Intel Corporation Device 02ef
00:14.3 Network controller: Intel Corporation Wireless-AC 9462
00:14.5 SD Host controller: Intel Corporation Device 02f5
00:15.0 Serial bus controller [0c80]: Intel Corporation Serial IO I2C Host Controller
00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake Serial IO I2C Host Controller
00:16.0 Communication controller: Intel Corporation Comet Lake Management Engine Interface
00:17.0 SATA controller: Intel Corporation Comet Lake SATA AHCI Controller
00:1d.0 PCI bridge: Intel Corporation Device 02b4 (rev f0)
00:1e.0 Communication controller: Intel Corporation Device 02a8
00:1e.2 Serial bus controller [0c80]: Intel Corporation Device 02aa
00:1f.0 ISA bridge: Intel Corporation Device 0284
00:1f.3 Audio device: Intel Corporation Device 02c8
00:1f.4 SMBus: Intel Corporation Device 02a3
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake SPI (flash) Controller
01:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN520 NVMe SSD (rev 01)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31333
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Keyboard doesn't work after sleep/suspend

Post by SMG »

Intruder101 wrote: Tue Jan 18, 2022 5:16 am Upon normal startup all working fine.
After I wake the computer from sleep/suspend the keyboard won't light up or work.
After disconnecting and reconnecting its working as usual.
Your computer has a 10th-gen Intel CPU. I suggest upgrading to a kernel newer than 5.4. The 5.13 kernel is available in Update Manager and may give better performance.

Instructions for upgrading to the 5.13 kernel:
  • Open Update Manager.
  • Select View > Linux Kernels and click Continue.
  • Make sure 5.13 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear.
  • Install the kernel and then reboot for it to become active.
I also suggest checking to see if your laptop is running the most recent BIOS/UEFI available. Sometimes updates are made which can affect how the external ports are powered in different sleep/suspend situations.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Intruder101
Level 1
Level 1
Posts: 12
Joined: Fri Feb 21, 2020 6:42 am

Re: External Keyboard doesn't work after sleep/suspend

Post by Intruder101 »

SMG wrote: Tue Jan 18, 2022 12:50 pm
Intruder101 wrote: Tue Jan 18, 2022 5:16 am Upon normal startup all working fine.
After I wake the computer from sleep/suspend the keyboard won't light up or work.
After disconnecting and reconnecting its working as usual.
Your computer has a 10th-gen Intel CPU. I suggest upgrading to a kernel newer than 5.4. The 5.13 kernel is available in Update Manager and may give better performance.

Instructions for upgrading to the 5.13 kernel:
  • Open Update Manager.
  • Select View > Linux Kernels and click Continue.
  • Make sure 5.13 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear.
  • Install the kernel and then reboot for it to become active.
I also suggest checking to see if your laptop is running the most recent BIOS/UEFI available. Sometimes updates are made which can affect how the external ports are powered in different sleep/suspend situations.
Thank you
But the latest kernel is making problems with extra extra long shut down(like a double shutdown because the screen turns off and on again), So I switched to the "good old one".
But I understood what you mentioned about thee UEFI, seems logical, To update I check the UEFI directly with the asus website?
User avatar
SMG
Level 25
Level 25
Posts: 31333
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Keyboard doesn't work after sleep/suspend

Post by SMG »

Intruder101 wrote: Wed Jan 19, 2022 3:35 pmBut I understood what you mentioned about thee UEFI, seems logical, To update I check the UEFI directly with the asus website?
Yes. You should be able to get the information for your specific model on their website.
Intruder101 wrote: Wed Jan 19, 2022 3:35 pm But the latest kernel is making problems with extra extra long shut down(like a double shutdown because the screen turns off and on again), So I switched to the "good old one".
There is also a 5.14-oem kernel available which seems to be working better than the 5.13 kernel for a lot of people. That is another option to consider. You can install the latest 5.14-oem kernel with sudo apt install linux-oem-20.04d and reboot.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Hardware Support”