Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 16:55:42 +0200
From:      =?UTF-8?B?TMOhc3psw7MgTGFqb3MgSsOhbnN6a3k=?= <laszlo.janszky@gmail.com>
To:        lev@freebsd.org
Cc:        Patrick Proniewski <patpro@patpro.net>, freebsd-hardware@freebsd.org,  freebsd-usb@freebsd.org
Subject:   Re: keyboard has a weird layout after boot
Message-ID:  <CA%2B=RcCr6Q4A8zDyksrQehWE62CgD0aDESt3Hke13ZLu9yxtt2w@mail.gmail.com>
In-Reply-To: <fbf2967b-c69a-66ac-c00e-3143069bea48@FreeBSD.org>
References:  <CA%2B=RcCrSqGE=rDoLxTTAfyVCtyOmE544Zo=yr_d-OpFB3tr5zA@mail.gmail.com> <E1DFC9A7-A69A-4ADC-9C49-1BF5165F0A35@patpro.net> <CA%2B=RcCp5x3BBDLbO9P78BbmHB7offbq8K2sHgKbrVRcfjR831w@mail.gmail.com> <4EA5D9EF-4205-49AD-9AC9-1B381EDAA473@patpro.net> <CA%2B=RcCrt1_dxvxeC4djgcBjRsx4qG5cWKFynSFZp=zYT_1=f%2BQ@mail.gmail.com> <fbf2967b-c69a-66ac-c00e-3143069bea48@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Lev! I can do further debugging if you send the instructions.

Lev Serebryakov <lev@freebsd.org> ezt =C3=ADrta (id=C5=91pont: 2020. j=C3=
=BAl. 14., K,
16:37):

> On 14.07.2020 16:48, L=C3=A1szl=C3=B3 Lajos J=C3=A1nszky wrote:
>
> >>>>> I have an Obins Anne Pro keyboard, which is a 60% mechanical NKRO
> >>>>> keyboard
> >>>>> http://en.obins.net/anne-pro It works properly in the UEFI and in
> the
> >>>>> rescue shell when I quit the boot menu, but after FreeBSD booted up
> >>>>> and I got the login screen it changes layout to something weird. Fo=
r
> example
> >>>>> I got "a" when pressing backspace or "w". Most of the keys stop
> working.
> >>>>> anything about it in the manual, so probably this keyboard is NKRO
> >>>>> only...
> >>>>> Any idea how to make it work with FreeBSD or what causes this
> problem?
>
>  As far as I know, NKRO USB keyboards could work in two modes: "Legacy"
> and "Bitmap/NKRO".
>
>  HID (and each USB Keyboard is HID device) is very flexible standard, and
> it allows several ways to report pressed/released buttons: as event with =
8
> modifier keys and up to 6 "simple" keys per event, or by transferring
> bitmap with bit for each button (pretends that all buttons are modifier
> ones, which allows NKRO).
>
>  "Standard" events could have only 6 different keys reported due to packe=
t
> size constrains. But this way was historically first and "standard"
> keyboards work this way to this day.
>
>  "Bitmap" reporting could transmit any state of keyboard with as many
> pressed keys as there are keys total (NKRO!), but requires additional
> support from drirver.
>
>  NKRO keyboards start in "Legacy"/"Boot" mode because many BIOSes/EFI can
> not understand "bitmap" reporting. Conditions to switch to "bitmap"
> reporting are different for different NKRO keyboards.
>
>  You could read more here: https://www.devever.net/~hl/usbnkro
>
>  Looks like, FreeBSD HID/kbd driver has problem with "bitmap" reporting
> and this keyboard switch to NKRO mode after boot regardless.
>
>  I've CC: this message to usb@ mailing list, as it looks like USB problem
> on FreeBSD side, in HID driver.
>
> --
> // Lev Serebryakov
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B=RcCr6Q4A8zDyksrQehWE62CgD0aDESt3Hke13ZLu9yxtt2w>