You are not logged in.

#1 2022-12-15 10:42:35

giulio
Member
Registered: 2022-02-07
Posts: 6

Annoying keyboard lag

Hi everyone!
I re-installed Arch Linux recently and I'm only using my laptop's built-in keyboard. Every time I stop typing for a minute or maybe even less, there is a lag when I start typing again. This is for all applications. I already tried playing around with the `xset` parameters but that doesn't solve the problem. I have found some other threads online but they mainly deal with external keyboards.

screenfetch -n

 OS: Arch Linux
 Kernel: x86_64 Linux 6.0.12-arch1-1
 Uptime: 30m
 Packages: 1064
 Shell: sudo
 Resolution: 2560x1600
 WM: i3
 GTK Theme: Adwaita [GTK3]
 Disk: 67G / 484G (15%)
 CPU: AMD Ryzen 7 5800H with Radeon Graphics @ 16x 4.463GHz
 GPU: NVIDIA GeForce RTX 3060 Laptop GPU
 RAM: 3111MiB / 31953MiB

lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
05:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function (rev c5)
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

Offline

#2 2022-12-15 13:13:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Annoying keyboard lag

Why does it list sudo as your shell?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2022-12-15 13:35:06

giulio
Member
Registered: 2022-02-07
Posts: 6

Re: Annoying keyboard lag

That's because I ran it with sudo screenfetch -n.
If I run it without sudo I get:

Shell: zsh 5.9

Offline

#4 2024-02-27 13:53:51

ngochai
Member
From: Singapore
Registered: 2011-04-06
Posts: 11
Website

Re: Annoying keyboard lag

giulio, I may have the same issue https://bbs.archlinux.org/viewtopic.php?id=293202, do you find any solution?

Offline

#5 2024-02-27 14:30:50

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: Annoying keyboard lag

The OP wrote:

Every time I stop typing for a minute or maybe even less, there is a lag when I start typing again.

Your thread wrote:

every 4,5s the keyboard input will be lag behind  around 1s

Once i boot in the DE (sddm) the keyboard lagging is still there and the mouse lagging is horrible making the mouse almost unusable.
I tried to use an external USB keyboard and mouse they also show the same issue.

Did you test the LTS kernel?

Offline

#6 2024-02-27 14:43:02

ngochai
Member
From: Singapore
Registered: 2011-04-06
Posts: 11
Website

Re: Annoying keyboard lag

@seth
I did try the lts kernel, it does not help.

Offline

#7 2024-02-27 23:57:47

andyturfer
Member
Registered: 2021-01-08
Posts: 72

Re: Annoying keyboard lag

  • Have you tried booting into another distro with a live USB stick?

  • Can you boot into your Arch installation media and see if it happens?

  • Can you do an ALT + CTRL + F4 to see if it happens in a console?

  • Does anything show up in your logs?

Offline

#8 2024-02-28 08:16:47

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: Annoying keyboard lag

@andyturfer, I don't think ngochai faces the same situation as the OP.
We're continuing their situation in https://bbs.archlinux.org/viewtopic.php?id=293202

Offline

Board footer

Powered by FluxBB