NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/57529: Keyboard gets stuck in installer





On 7/17/23 10:35, mneumann%ntecs.de@localhost wrote:
Number:         57529
Category:       port-amd64
Synopsis:       Keyboard gets stuck in installer
Confidential:   no
Severity:       serious
Priority:       medium
Responsible:    port-amd64-maintainer
State:          open
Class:          sw-bug
Submitter-Id:   net
Arrival-Date:   Mon Jul 17 08:35:00 +0000 2023
Originator:     Michael Neumann
Release:        10.0-BETA
Organization:
Environment:
10.0-BETA
Description:
Trying to install NetBSD 10.0-BETA on Tuxedo laptop with USB stick.

Keyboard works normally within the installer. When executing "Utility menu" -> "Run /bin/sh", within the shell, the keyboard soon either gets stuck completely (pressing any key has no effect) or keeps on repeating the last typed letter infinitively.

Note that the kernel is still operational. Unplugging the USB stick shows a "green" message, plugging it in again also. Also pressing the power off button still works.

I can exploit this bug reproducibly.


It's possible that the bug is related to lost keyboard interrupts. FreeBSD has some hackish code that polls the keyboard every second (configurable) to mitigate the problem. Unsure if NetBSD / OpenBSD does this in a similar fashion.

See here:

https://github.com/freebsd/freebsd-src/blob/be4c7f273508994638b68d2fae742be37d3cb117/sys/dev/atkbdc/atkbd.c#L172C1-L172C1

and here:

https://github.com/freebsd/freebsd-src/blob/be4c7f273508994638b68d2fae742be37d3cb117/sys/dev/atkbdc/atkbd.c#L151C40-L151C48

Regards,

  Michael


Home | Main Index | Thread Index | Old Index