Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Laptop keyboard not working in any distro

Need help with peripherals or devices?
Message
Author
Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

[Solved] Laptop keyboard not working in any distro

#1 Post by Rinkeby »

Hi all! New here.

So after many years of fedora, I am Debian for my laptop. However, my laptop that works well, does not have working keyboard. And just need your help!

Strange part is that it works in Grub. But after that. No matter what kernel I use, even up to experimental kernel in Manjaro. It still doesn't work. I tried debian 10, but wont start instead.

I tried i8042.reset i8042.unlock i8042.nopnp i8042... many of them, The only one that works is i8042.dumbkbd. However. they keys lags a lot, and if i press for example F, it get FFFFFFFFFFFFFFFFFFF.

I also tried different xorg set ups, but might have done it wrongly.

So, any log you need I will provide, but unsure what you want. The computer is an oddball named Cepter

Any help would be wonderful!
Last edited by Rinkeby on 2024-04-07 20:59, edited 1 time in total.

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#2 Post by Rinkeby »

OK guys. I guess you are a bit bored answering keyboard problems.

However. I solved it by downgrading kernel to 5.10.209-2 in manjaro.

However. Thats a long way back. And is this a clue what can be wrong in the never kernels?

Or I guess my real question is.how do I downgrade that far in Debian 12?
Last edited by Rinkeby on 2024-03-02 13:51, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#3 Post by Aki »

Hello,

Can you report your general hardware/software configuration ? You can use the following command (the inxi program must be installed):

Code: Select all

inxi -Fz
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#4 Post by Rinkeby »

Hey! This is on the working kernel though.


Code: Select all

Kernel: 5.10.0-28-amd64 arch: x86_64 bits: 64 Desktop: GNOME v: 43.9
    Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: Power AS product: CCLOUD14R5 v: Version 1.0
    serial: <superuser required>
  Mobo: N/A model: N/A v: Version 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 27.05 date: 10/12/2023
Battery:
  ID-1: BAT0 charge: 45.6 Wh (100.0%) condition: 45.6/45.6 Wh (100.1%)
CPU:
  Info: 6-core model: AMD Ryzen 5 5560U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 3 MiB
  Speed (MHz): avg: 2266 min/max: 1600/4061:4182:4306:4427:4551 cores:
    1: 3301 2: 2656 3: 2418 4: 1392 5: 1793 6: 1629 7: 1835 8: 2355 9: 1935
    10: 2611 11: 3505 12: 1769
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-2: Sunplus Innovation Hy-HD(7501)-Camera type: USB driver: uvcvideo
  Display: wayland server: X.Org v: 1.22.1.9 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.6 DRM 3.40 5.10.0-28-amd64)
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  API: ALSA v: k5.10.0-28-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp1s0 state: down mac: <filter>
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    driver: rtw_8822ce
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 64.43 GiB (13.5%)
  ID-1: /dev/sda model: TN512C SSD 512GB size: 476.94 GiB
Partition:
  ID-1: / size: 186.38 GiB used: 64.4 GiB (34.6%) fs: ext4 dev: /dev/sda5
  ID-2: /boot/efi size: 96 MiB used: 32.3 MiB (33.6%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 1000 MiB used: 0 KiB (0.0%)
    dev: /dev/sda8
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 44.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 337 Uptime: 0m Memory: 7.23 GiB used: 1.9 GiB (26.3%) Shell: Bash
  inxi: 3.3.26

CwF
Global Moderator
Global Moderator
Posts: 2719
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Laptop keyboard not working in any distro

#5 Post by CwF »

Use code tags, as edited for you.

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#6 Post by Aki »

Hello,

It looks like you are using an AMD Ryzen:

Code: Select all

Info: 6-core model: AMD Ryzen 5 5560U with Radeon Graphics bits: 64
type: MT MCP cache: L2: 3 MiB
Speed (MHz): avg: 2266 min/max: 1600/4061:4182:4306:4427:4551 cores:
1: 3301 2: 2656 3: 2418 4: 1392 5: 1793 6: 1629 7: 1835 8: 2355 9: 1935
10: 2611 11: 3505 12: 1769
There is an earlier discussion on a similar topic in the Arch forum: According to this post:
  • #15
    It's a weird design choice instead of a bug:
    They made the keyboard IRQ active-low instead of the conventional active-high found in almost all other computers.
    The kernel decided to override this, which made the keyboard controller non-functional.
A kernel patch has been proposed: This is the code of the proposed kernel patch:
  • [PATCH v6] ACPI: skip IRQ override on AMD Zen platforms

    Code: Select all

    IRQ override isn't needed on modern AMD Zen systems.
    There's an active low keyboard IRQ on AMD Ryzen 6000 and it will stay
    this way on newer platforms. This IRQ override breaks keyboards for
    almost all Ryzen 6000 laptops currently on the market.
    
    Skip this IRQ override for all AMD Zen platforms because this IRQ
    override is supposed to be a workaround for buggy ACPI DSDT and we can't
    have a long list of all future AMD CPUs/Laptops in the kernel code.
    If a device with buggy ACPI DSDT shows up, a separated list containing
    just them should be created.
    
    Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
    Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
    ---
    Change sice v5: reworked
    
     drivers/acpi/resource.c | 10 ++++++++++
     1 file changed, 10 insertions(+)
    
    diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
    index c2d494784425..510cdec375c4 100644
    --- a/drivers/acpi/resource.c
    +++ b/drivers/acpi/resource.c
    @@ -416,6 +416,16 @@ static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,
     {
     	int i;
     
    +#ifdef CONFIG_X86
    +	/*
    +	 * 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
    +
     	for (i = 0; i < ARRAY_SIZE(skip_override_table); i++) {
     		const struct irq_override_cmp *entry = &skip_override_table[i];
     
    -- 
    2.36.1
    
This patch is not included in the linux kernel currently released with Debian Stable: The patch is included in newer kernels available from stable-backports repositories; i.e.: Therefore, you can try installing a newer kernel from the stable backports repositories [1].

Hope this helps. Please, let me know.

--
[1] https://backports.debian.org/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#7 Post by Rinkeby »

hey @Aki

I tried linux-image-6.5.0-0.deb12.1-amd64 from debian backports. But it did not work. However, 6.5 is a pretty high number. But all and all, did I understand your directions correctly?

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#8 Post by Aki »

Rinkeby wrote: 2024-03-03 11:52 I tried linux-image-6.5.0-0.deb12.1-amd64 from debian backports. But it did not work. However, 6.5 is a pretty high number. But all and all, did I understand your directions correctly?
The kernel 6.5 includes the aforementioned patch.

Sorry for asking: did you boot with the newer kernel ?

Can you report the output of the following commands after booting with kernel 6.5 (using an external keyboard) ?

Code: Select all

inxi -Fz
lscpu
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#9 Post by Rinkeby »

No worries. Sometimes you are lost in manuals, sometimes you make mistakes. But not this time. Though I installed debian 11.9 to upgrade it to 12 so I could keep the working kernel. If it matters

Code: Select all

Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  12
  On-line CPU(s) list:   0-11
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 5 5560U with Radeon Graphics
    CPU family:          25
    Model:               80
    Thread(s) per core:  2
    Core(s) per socket:  6
    Socket(s):           1
    Stepping:            0
    CPU(s) scaling MHz:  29%
    CPU max MHz:         4062,0000
    CPU min MHz:         400,0000
    BogoMIPS:            4591,20
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc c
                         puid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse
                          3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 
                         erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd cpp
                         c arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overf
                         low_recov succor smca fsrm
Virtualization features: 
  Virtualization:        AMD-V
Caches (sum of all):     
  L1d:                   192 KiB (6 instances)
  L1i:                   192 KiB (6 instances)
  L2:                    3 MiB (6 instances)
  L3:                    8 MiB (1 instance)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-11
Vulnerabilities:         
  Gather data sampling:  Not affected
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec rstack overflow:  Mitigation; safe RET, no microcode
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected

Code: Select all

System:
  Kernel: 6.5.0-0.deb12.1-amd64 arch: x86_64 bits: 64 Desktop: GNOME v: 43.9
    Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: Power AS product: CCLOUD14R5 v: Version 1.0
    serial: <superuser required>
  Mobo: N/A model: N/A v: Version 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 27.05 date: 10/12/2023
Battery:
  ID-1: BAT0 charge: 46.0 Wh (100.0%) condition: 46.0/45.6 Wh (100.8%)
CPU:
  Info: 6-core model: AMD Ryzen 5 5560U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 3 MiB
  Speed (MHz): avg: 809 min/max: 400/4062 cores: 1: 400 2: 400 3: 400
    4: 1397 5: 1579 6: 400 7: 1397 8: 400 9: 400 10: 400 11: 2139 12: 400
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-2: Sunplus Innovation Hy-HD(7501)-Camera type: USB driver: uvcvideo
  Display: wayland server: X.Org v: 1.22.1.9 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.6 DRM 3.54 6.5.0-0.deb12.1-amd64)
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  API: ALSA v: k6.5.0-0.deb12.1-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp1s0 state: down mac: <filter>
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    driver: rtw_8822ce
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 66.1 GiB (13.9%)
  ID-1: /dev/sda model: TN512C SSD 512GB size: 476.94 GiB
Partition:
  ID-1: / size: 186.38 GiB used: 66.06 GiB (35.4%) fs: ext4 dev: /dev/sda5
  ID-2: /boot/efi size: 96 MiB used: 32.3 MiB (33.6%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 1000 MiB used: 0 KiB (0.0%)
    dev: /dev/sda8
Sensors:
  System Temperatures: cpu: 40.8 C mobo: N/A gpu: amdgpu temp: 37.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 329 Uptime: 9m Memory: 7.16 GiB used: 2.11 GiB (29.5%)
  Shell: Bash inxi: 3.3.26

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#10 Post by Aki »

Hello,

Thank you for your patience.

Can you confirm that the embedded keyboard does not work with kernel 6.5?

Can you confirm that you used an external keyboard to get started and have the log from the previous post with kernel 6.5 ?

Have you tested the keyboard on a virtual console (text console), i.e. booting into rescue mode from grub ?

Since your motherboard firmware is really brand new (date: 10/12/2023), I would test the latest kernel version available for Debian Unstable. You can download and install it with the following commands (as root user):

Code: Select all

wget http://ftp.us.debian.org/debian/pool/main/l/linux-signed-amd64/linux-image-6.7.7-amd64_6.7.7-1_amd64.deb
dpkg -i linux-image-6.7.7-amd64_6.7.7-1_amd64.deb
These commands will simply add it to the already installed kernels, so that you can test it with your keyboard (after restarting the operating system).
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#11 Post by Rinkeby »

Hi,

Yes, I can confirm this. However, now when i tried secure mode from grub. Grub is now also "broken" in terms of keyboard.

And the kernel you sent me, just like in manjaro with higher number, makes the keyboard work. BUT, when i press a key, lets say A this time, i get AAAAAAAAAAAAAAAAA. Same with i8042.dumbkbd.

Code: Select all

System:
  Kernel: 6.7.7-amd64 arch: x86_64 bits: 64 Desktop: GNOME v: 43.9
    Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: Power AS product: CCLOUD14R5 v: Version 1.0
    serial: <superuser required>
  Mobo: N/A model: N/A v: Version 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 27.05 date: 10/12/2023
Battery:
  ID-1: BAT0 charge: 46.0 Wh (100.0%) condition: 46.0/45.6 Wh (100.8%)
CPU:
  Info: 6-core model: AMD Ryzen 5 5560U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 3 MiB
  Speed (MHz): avg: 400 min/max: 400/4062 cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-2: Sunplus Innovation Hy-HD(7501)-Camera type: USB driver: uvcvideo
  Display: wayland server: X.Org v: 1.22.1.9 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.6 DRM 3.57 6.7.7-amd64)
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  API: ALSA v: k6.7.7-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp1s0 state: down mac: <filter>
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    driver: rtw_8822ce
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 66.44 GiB (13.9%)
  ID-1: /dev/sda model: TN512C SSD 512GB size: 476.94 GiB
Partition:
  ID-1: / size: 186.38 GiB used: 66.41 GiB (35.6%) fs: ext4 dev: /dev/sda5
  ID-2: /boot/efi size: 96 MiB used: 32.3 MiB (33.6%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 1000 MiB used: 0 KiB (0.0%)
    dev: /dev/sda8
Sensors:
  System Temperatures: cpu: 45.4 C mobo: N/A gpu: amdgpu temp: 42.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 322 Uptime: 1m Memory: 7.17 GiB used: 1.36 GiB (18.9%)
  Shell: Bash inxi: 3.3.26

Code: Select all

Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  12
  On-line CPU(s) list:   0-11
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 5 5560U with Radeon Graphics
    CPU family:          25
    Model:               80
    Thread(s) per core:  2
    Core(s) per socket:  6
    Socket(s):           1
    Stepping:            0
    CPU(s) scaling MHz:  23%
    CPU max MHz:         4062,0000
    CPU min MHz:         400,0000
    BogoMIPS:            4591,46
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc
                         a cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall n
                         x mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_go
                         od nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl p
                         ni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe
                          popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy sv
                         m extapic cr8_legacy abm sse4a misalignsse 3dnowprefetc
                         h osvw ibs skinit wdt tce topoext perfctr_core perfctr_
                         nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate
                          ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 sm
                         ep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflusho
                         pt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc c
                         qm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf 
                         xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock n
                         rip_save tsc_scale vmcb_clean flushbyasid decodeassists
                          pausefilter pfthreshold avic v_vmsave_vmload vgif v_sp
                         ec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_r
                         ecov succor smca fsrm debug_swap
Virtualization features: 
  Virtualization:        AMD-V
Caches (sum of all):     
  L1d:                   192 KiB (6 instances)
  L1i:                   192 KiB (6 instances)
  L2:                    3 MiB (6 instances)
  L3:                    8 MiB (1 instance)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-11
Vulnerabilities:         
  Gather data sampling:  Not affected
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec rstack overflow:  Vulnerable: Safe RET, no microcode
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer
                          sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIB
                         P always-on, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#12 Post by Rinkeby »

I can now also ad something mysterious (typically me debugging). And that is that both Manjaros Grub and Debians Grub got broken from booting to secure boot. Very strange. So, then I booted up windows. Rebooted. And then Grub worked normally again. So might this all be dual boot thing? UEFI? Perhaps install debian clean as solo OS without Grub?

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#13 Post by Aki »

Is windows completely shut down when starting Debian(i.e. not suspended and not hibernated) ?

Is Widows fast boot disabled ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#14 Post by Rinkeby »

I been extra careful with this. So no fast boot. No secure boot for windows, and no hibernation. And it seems strange that windows would effect Grub. Then Live CDs would not work or anything. However, the old kernel still works well. So there is no stress with this from your side. :)

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#15 Post by Aki »

Hello,

Even if it is a different brand, also this kernel bug report is relevant to your issue: The bug is reported as "fixed" with this patch: This patch is included in the kernel 6.7.7 (currently in Debian Unstable) I suggested you to test: I would rule out the possibility that your keyboard was not working properly with kernel 6.7.7 due to a previous malfunction (as you reported that grub was also affected at some point).

You can also temporarily add the kernel parameter "i8042.debug=1" with different kernels to collect logs about the i8042 keyboard and mouse controller. After adding it, you can filter system logs with the following command (as root user):

Code: Select all

script i8042.log
journalctl -b --no-pager -g i8042
exit
You can report logs in one the following ways:
  • attaching the logs to a follow-up forum message as a compressed zip or gz file
  • paste logs into the body of a follow-up message between code tags (if they fit the size of a forum message)
Hope this helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#16 Post by Rinkeby »

Hi,

Yes thank you for your help. Very interesting to meet such support. And I will do what you told a bit later. Meanwhile I will do some extra research on my own, and perhaps post new finds here?
(And as the older kernel works so well, I just wish there was a way to screen the differences between 5.10. and 6.1 for example)

Thanks again. I think we were close, but some step more.

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: Laptop keyboard not working in any distro

#17 Post by Aki »

Hello,
Rinkeby wrote: 2024-03-04 15:44 And as the older kernel works so well, I just wish there was a way to screen the differences between 5.10. and 6.1 for example
You can try bisecting kernel commits using git:
You will need to set up a kernel build environment and rebuild/test kernels (so adequate time and cpu / disk resources are required) according to selected commits, until you identify a single or a few commits that, if compiled/not compiled, make the issue appear/disappear: It is time consuming. It can also be tricky to identify a single affecting commit between major kernel versions (i.e. 5.10 -> 6.0) due to the high number of commits or if it is not caused by a single commit.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#18 Post by Rinkeby »

While looking into your direction. here is the log difference between 6.7.7 and 5.10.

The new kernel 6.7.7

Code: Select all


[    1.516228] i8042: [52] f4 -> i8042 (kbd-data)

[    1.712747] i8042: [101] fa <- i8042 (interrupt, 0, 1)
[    1.712835] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0

[    1.250971] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.251570] Linux agpgart interface v0.103
[    1.308558] tpm_crb MSFT0101:00: Disabling hwrng
[    1.310318] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[    1.310321] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    1.310386] i8042: [0] 20 -> i8042 (command)
[    1.311184] i8042: [0] 65 <- i8042 (return)
[    1.311238] i8042: [0] 20 -> i8042 (command)
[    1.311930] i8042: [0] 65 <- i8042 (return)
[    1.311936] i8042: [0] 60 -> i8042 (command)
[    1.312153] i8042: [0] 74 -> i8042 (parameter)
[    1.312869] i8042: [1] 60 -> i8042 (command)
[    1.313452] i8042: [1] 65 -> i8042 (parameter)
[    1.313462] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.313618] mousedev: PS/2 mouse device common for all mice

[    1.314199] i8042: [1] ed -> i8042 (kbd-data)

[    2.740585] i8042: [358] ** <- i8042 (interrupt, 0, 1)
[    2.740592] atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.

41.184554] i8042: [9969] ** <- i8042 (interrupt, 0, 1)
[   42.216949] i8042: [10227] ** <- i8042 (interrupt, 0, 1)
[   43.246778] i8042: [10484] ** <- i8042 (interrupt, 0, 1)
[   44.276633] i8042: [10742] ** <- i8042 (interrupt, 0, 1)
[   45.306504] i8042: [10999] ** <- i8042 (interrupt, 0, 1)
[   46.336647] i8042: [11257] ** <- i8042 (interrupt, 0, 1)
[   59.494895] i8042: [14546] ** <- i8042 (interrupt, 0, 1)
[   60.525544] i8042: [14804] ** <- i8042 (interrupt, 0, 1)
[   61.555774] i8042: [15061] ** <- i8042 (interrupt, 0, 1)
[   62.586010] i8042: [15319] ** <- i8042 (interrupt, 0, 1)
[   63.616224] i8042: [15577] ** <- i8042 (interrupt, 0, 1)
[   64.646659] i8042: [15834] ** <- i8042 (interrupt, 0, 1)
[   65.676658] i8042: [16092] ** <- i8042 (interrupt, 0, 1)
[   66.706892] i8042: [16349] ** <- i8042 (interrupt, 0, 1)
[   67.737232] i8042: [16607] ** <- i8042 (interrupt, 0, 1)
[   68.767176] i8042: [16864] ** <- i8042 (interrupt, 0, 1)
[   69.797157] i8042: [17122] ** <- i8042 (interrupt, 0, 1)
[   70.828831] i8042: [17380] ** <- i8042 (interrupt, 0, 1)
[   71.858652] i8042: [17637] ** <- i8042 (interrupt, 0, 1)
[   72.887895] i8042: [17894] ** <- i8042 (interrupt, 0, 1)
[   73.917444] i8042: [18152] ** <- i8042 (interrupt, 0, 1)
[   74.947012] i8042: [18409] ** <- i8042 (interrupt, 0, 1)
[   75.976748] i8042: [18667] ** <- i8042 (interrupt, 0, 1)
[   77.006063] i8042: [18924] ** <- i8042 (interrupt, 0, 1)
[  178.067479] i8042: [44189] ** <- i8042 (interrupt, 0, 1)
[  179.096870] i8042: [44447] ** <- i8042 (interrupt, 0, 1)
The old Kernel 5.10

Code: Select all

[    1.072131] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[    1.072132] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    1.075250] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.075313] mousedev: PS/2 mouse device common for all mice

[    1.085015] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0

panpan
Posts: 69
Joined: 2015-09-18 17:07
Has thanked: 3 times
Been thanked: 2 times

Re: Laptop keyboard not working in any distro

#19 Post by panpan »

Check this solution: https://bbs.archlinux.org/viewtopic.php?id=255362
Solution:
For unknown reasons the PS/2 controller can't be found immediately when starting (not restarting) . The solution is to add the following lines to grub:

i8042.notimeout i8042.nopnp

In addition, as described above, the i8042 module has to be added to mkinitcpio.conf.

Rinkeby
Posts: 14
Joined: 2024-03-01 15:44

Re: Laptop keyboard not working in any distro

#20 Post by Rinkeby »

Hey @panpan

Not working either. Looked promising.

Post Reply