You are not logged in.

#1 2025-09-07 08:04:06

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

[SOLVED] Laptop keyboard lag on AMD

Hi friends. I was installing arch on my laptop with an AMD Ryzen 7 5700U with Radeon Graphics and I had a severe keyboard lag in the ISO installation and also in the system installed. I searched my problem in internet and in this forum, but every possible solutions I found, didn't solve the problem for me. The lag was not present with an external keyboard, but I need to use this laptop without external keyboards.

Last edited by CorradoEnea (2025-09-10 19:21:55)

Offline

#2 2025-09-07 12:56:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Is it *only* w/ external keyboards or do those typically come w/ a dock, external monitor and power supply?
https://bbs.archlinux.org/viewtopic.php … 0#p2220140
https://bbs.archlinux.org/viewtopic.php … 3#p2258543


If it's really just the keyboard and already affects the console please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

so we can see how that keyboard is wired and whether some quirks already show up.

Offline

#3 2025-09-07 16:05:24

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

No, I have this problem without any external peripherals unfortunately.
This is my system journal
https://0x0.st/Kqqx.txt

I tried with different kernel parameters and only "noapic" made the keyboard work again but also made the touchpad not working anymore.

Offline

#4 2025-09-07 17:54:54

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Sep 07 17:58:09 CorradsLaptop kernel: i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
Sep 07 17:58:09 CorradsLaptop kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Sep 07 17:58:09 CorradsLaptop kernel: ACPI: video: Video Device [VGA] (multi-head: yes  rom: no  post: no)
Sep 07 17:58:09 CorradsLaptop kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:12/LNXVIDEO:00/input/input4
Sep 07 17:58:09 CorradsLaptop kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Sep 07 17:58:09 CorradsLaptop kernel: usb 1-3.1: new high-speed USB device number 4 using xhci_hcd
Sep 07 17:58:09 CorradsLaptop kernel: tsc: Refined TSC clocksource calibration: 1796.616 MHz
Sep 07 17:58:09 CorradsLaptop kernel: clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x19e5aceb4ab, max_idle_ns: 440795241307 ns
Sep 07 17:58:09 CorradsLaptop kernel: clocksource: Switched to clocksource tsc
Sep 07 17:58:09 CorradsLaptop kernel: usb 1-3.1: New USB device found, idVendor=0bda, idProduct=0129, bcdDevice=39.60
Sep 07 17:58:09 CorradsLaptop kernel: usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 07 17:58:09 CorradsLaptop kernel: usb 1-3.1: Product: USB2.0-CRW
Sep 07 17:58:09 CorradsLaptop kernel: usb 1-3.1: Manufacturer: Generic
Sep 07 17:58:09 CorradsLaptop kernel: usb 1-3.1: SerialNumber: 20100201396000000
Sep 07 17:58:09 CorradsLaptop kernel: usbcore: registered new interface driver rtsx_usb
Sep 07 17:58:09 CorradsLaptop kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Sep 07 17:58:09 CorradsLaptop kernel: atkbd serio0: Failed to enable keyboard on isa0060/serio0
Sep 07 17:58:09 CorradsLaptop kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input5
Sep 07 17:58:09 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 07 17:58:09 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 07 17:58:09 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 07 17:59:26 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.

The usb device there seems to be https://linux-hardware.org/?id=usb:0bda-0129
Does it help to blacklist that?
Btw, how's the behavior w/ the non-lts kernel?

module_blacklist=rtsx_usb

Offline

#5 2025-09-08 09:34:41

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

Unfortunately, blacklisting rtsx_usb does nothing. I already tried with linux, linux_lts and linux_zen but I had the same problem with every one of them.

Offline

#6 2025-09-08 14:40:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

"atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly." remains after blacklisting rtsx_usb?


If "i8042.dumbkdb=1" or "i8042.direct=1" or "i8042.nopnp=1" don't do anything, try "i8042.debug=1", maybe it provides further hints.

Offline

#7 2025-09-08 17:15:14

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

Unortunately "atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly." remains even after blacklisting rtsx_usb. I tried with i8042.debug=1 and the journal is this.
https://0x0.st/KqYF.txt
I can still see the "atkbd serio0: Failed to enable keyboard on isa0060/serio0", the only difference is that now I have connected an external keyboard because it was a pain logging into my machine without and there are no problem with it.

Offline

#8 2025-09-08 19:40:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Did you try any of "i8042.dumbkdb=1" or "i8042.direct=1" or "i8042.nopnp=1" ?

seth wrote:

Btw, how's the behavior w/ the non-lts kernel?

In doubt just throw "atkbd.reset=1 i8042.reset=1 i8042.kbdreset=1" at it.


Sep 08 19:04:18 CorradsLaptop kernel: i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
Sep 08 19:04:18 CorradsLaptop kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Sep 08 19:04:18 CorradsLaptop kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:12/LNXVIDEO:00/input/input4
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [0] 20 -> i8042 (command)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [0] 65 <- i8042 (return)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [1] 20 -> i8042 (command)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [1] 65 <- i8042 (return)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [1] 60 -> i8042 (command)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [1] 74 -> i8042 (parameter)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [1] 60 -> i8042 (command)
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [1] 65 -> i8042 (parameter)
Sep 08 19:04:18 CorradsLaptop kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=60.90
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3: Product: USB2.0 Hub
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [9] f5 -> i8042 (kbd-data)
Sep 08 19:04:18 CorradsLaptop kernel: hub 1-3:1.0: USB hub found
Sep 08 19:04:18 CorradsLaptop kernel: hub 1-3:1.0: 4 ports detected
Sep 08 19:04:18 CorradsLaptop kernel: tsc: Refined TSC clocksource calibration: 1796.624 MHz
Sep 08 19:04:18 CorradsLaptop kernel: clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x19e5b473752, max_idle_ns: 440795288133 ns
Sep 08 19:04:18 CorradsLaptop kernel: clocksource: Switched to clocksource tsc
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-4: new high-speed USB device number 4 using xhci_hcd
Sep 08 19:04:18 CorradsLaptop kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [70] ed -> i8042 (kbd-data)
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-4: New USB device found, idVendor=1bcf, idProduct=2864, bcdDevice= 0.02
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-4: Product: USB Camera
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-4: Manufacturer: SunplusIT Inc
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-4: SerialNumber: JV0
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3.1: new high-speed USB device number 5 using xhci_hcd
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [131] f4 -> i8042 (kbd-data)
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3.1: New USB device found, idVendor=0bda, idProduct=0129, bcdDevice=39.60
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3.1: Product: USB2.0-CRW
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3.1: Manufacturer: Generic
Sep 08 19:04:18 CorradsLaptop kernel: usb 1-3.1: SerialNumber: 20100201396000000
Sep 08 19:04:18 CorradsLaptop kernel: atkbd serio0: Failed to enable keyboard on isa0060/serio0
Sep 08 19:04:18 CorradsLaptop kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input5
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [308] fa <- i8042 (interrupt, 0, 1)
Sep 08 19:04:18 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 08 19:04:18 CorradsLaptop kernel: i8042: [616] fa <- i8042 (interrupt, 0, 1)
Sep 08 19:04:18 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.

"fa <- i8042 (interrupt, 0, 1)" is the "ACK", not sure how "spurious" that is since there's "f4 -> i8042 (kbd-data)" and "ed -> i8042 (kbd-data)" - but the attempted re/activation in between might mess things up.

Offline

#9 2025-09-09 09:29:48

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

I tried with the non lts kernel with atkbd.reset=1 i8042.reset=1 i8042.kbdreset=1and it gave me this
https://0x0.st/KqDV.txt
then i tried with atkbd.reset=1 i8042.reset=1 i8042.kbdreset=1and i8042.nopnp=1 and it gave me this
https://0x0.st/KqDJ.txt
and in both cases the problem remains

Offline

#10 2025-09-09 13:29:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

w/o nopnp

Sep 09 11:22:07 CorradsLaptop kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Sep 09 11:22:07 CorradsLaptop kernel: atkbd serio0: Failed to enable keyboard on isa0060/serio0
Sep 09 11:22:07 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:22:07 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:22:07 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:22:17 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.

w/ nopnp

Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: Failed to enable keyboard on isa0060/serio0
Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: keyboard reset failed on isa0060/serio0
Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: Failed to enable keyboard on isa0060/serio0
Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:25:44 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:25:45 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:25:46 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:25:47 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.
Sep 09 11:25:55 CorradsLaptop kernel: atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.

Have you ever tried "i8042.dumbkdb=1" or "i8042.direct=1" ?

Offline

#11 2025-09-09 13:48:14

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

I tried with i8042.dumbkdb=1 i8042.direct=1
https://0x0.st/Kqdk.txt
which disabled completely the keyboard, then I tried with i8042.dumbkbd=1 i8042.direct=1 i8042.nopnp=1
https://0x0.st/Kqd5.txt
which made the keyboard work again but with the same input lag and then I tried with i8042.dumbkdb=1 i8042.direct=1 i8042.nopnp=1 i8042.reset=1 i8042.kbdreset=1
https://0x0.st/Kqnz.txt
which again made the keyboard not working completely. I don't know if it helps, I'm using hyprland and when I type with the keyboard with the input lag, with a single press of the key, it captures multiple press, like if I'm holding it down

Offline

#12 2025-09-09 15:31:26

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Sep 09 15:33:00 CorradsLaptop kernel: i8042: unknown parameter 'dumbkdb' ignored

Try only "i8042.dumbkbd=1" (DUMB KeyBoarD)

when I type with the keyboard with the input lag, with a single press of the key, it captures multiple press

For clarification: this also happens on the console / multi-user.target, right?

Offline

#13 2025-09-09 16:01:17

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

I have this with only dumbkbd
https://0x0.st/Kq54.txt

For clarification: this also happens on the console / multi-user.target, right?

No, in the TTY i only have a severe input lag (around 2 seconds to have the input registered, only in hyprland if I type, I have both the lag and the multiple press,

Offline

#14 2025-09-09 16:11:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

You probably don't have autorepeat on the console, the main point is that you've the symptoms there as well.

atkbd and related warnings are gone - do you still get the lag w/ dumbkbd?
And since you've attached an external keyboard: does *using* the internal keyboard produce any errors in the journal now?

Also

seth wrote:

Btw, how's the behavior w/ the non-lts kernel?

And, sidebar: you've NM, networkd, wpa_supplicant and iwd enabled - pick one service and disable the others, if you want to use iwd as NM backend see https://wiki.archlinux.org/title/Networ … Fi_backend

Offline

#15 2025-09-09 16:48:10

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

I unfortunately still have the lag w/ dumbkbd, both on lts and non-lts. This is the log with the non lts kernel
https://0x0.st/KqR4.txt

seth wrote:

And since you've attached an external keyboard: does *using* the internal keyboard produce any errors in the journal now?

I checked with journalctl -f and journalctl -kf and there are no logs while I type with the internal keyboard.

seth wrote:

And, sidebar: you've NM, networkd, wpa_supplicant and iwd enabled - pick one service and disable the others, if you want to use iwd as NM backend see https://wiki.archlinux.org/title/Networ … Fi_backend

Thank you, I will do it!

Also, I don't know if this can help, but while in hyprland I use the internal keyboard, when the key is being spammed, the touchpad stops working

Last edited by CorradoEnea (2025-09-09 16:49:09)

Offline

#16 2025-09-09 18:26:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Means the error messages we got were unfortunately red herrings sad

Have you tested some live distro like grml.org (or even windows) to make sure this isn't some HW failure?
Resp. does the keyboard behave in the UEFI? Or at the bootloader?

when the key is being spammed, the touchpad stops working

Possibly just because the bus is jammed.

Offline

#17 2025-09-09 18:29:09

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

Yes, the computer came with windows and I had zero problems. Also in GRUB and in the UEFI the keyboard works flawlessly, it doesn't work in the installation neither in the ISO usb.

Offline

#18 2025-09-09 19:52:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Snooping around a bit, you might run into https://bbs.archlinux.org/viewtopic.php … 1#p2096991 - the objected patch is actually still in acpi/resource.c - but you'd have to build a kernel yourself to test this.

Offline

#19 2025-09-10 16:37:59

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

Ok, I built the custom kernel following that guide, I had to modify the patch but now it is working properly. I'll post the patch here for anyone else facing this issue. Why is this issue still not resolved after all these years? It gives newcomers to Arch a terrible experience.

--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -717,27 +717,6 @@
 			return entry->override;
 	}

-#ifdef CONFIG_X86
-	/*
-	 * Always use the MADT override info, except for the i8042 PS/2 ctrl
-	 * IRQs (1 and 12). For these the DSDT IRQ settings should sometimes
-	 * be used otherwise PS/2 keyboards / mice will not work.
-	 */
-	if (gsi != 1 && gsi != 12)
-		return true;
-
-	/* If the override comes from an INT_SRC_OVR MADT entry, honor it. */
-	if (acpi_int_src_ovr[gsi])
-		return true;
-
-	/*
-	 * IRQ override isn't needed on modern AMD Zen systems and
-	 * this override breaks active low IRQs on AMD Ryzen 6000 and
-	 * newer systems. Skip it.
-	 */
-	if (boot_cpu_has(X86_FEATURE_ZEN))
-		return false;
-#endif

 	return true;
 }

Offline

#20 2025-09-10 19:17:07

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] Laptop keyboard lag on AMD

Idk why the bug was never resolved but you'd have to take that question upstream, either https://bugzilla.kernel.org/show_bug.cgi?id=216118 or https://bugzilla.kernel.org/show_bug.cgi?id=217406
My guess is that it's a limited problem (ACPI will be heavily BIOS/UEFI related) and even if archlinux wasn't super restrictive on applying downstream patches (have yo tried whether the problem exists on other distros?): the applied workaround is certainly no general fix (it'll be necessary to identify why this doesn't work on some system to exclude them) so this has to be sorted out by the kernel/acpi developers anyway.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#21 2025-09-10 19:21:32

CorradoEnea
Member
Registered: 2025-09-07
Posts: 11

Re: [SOLVED] Laptop keyboard lag on AMD

I want to thank you, you helped me a lot!

seth wrote:

have yo tried whether the problem exists on other distros?

I tried Endeavour OS and the problem was still present, I didn't check with other non arch distros, so I don't know.

Offline

Board footer

Powered by FluxBB