Page 1 of 1

Incorrect key mappings on Raspberry Pi Official Keyboard (US)

Posted: Wed Apr 29, 2020 3:31 am
by jblachparty
I just got a brand new Raspberry Pi 4B (2GB) along with the official US keyboard (https://www.pishop.us/product/raspberry ... red-white/)

During setup, I noticed that many of the keyboard keys resulted in incorrect characters or functions. Some weird happenings I remember are as follows:
  • The 'a' and ESC keys were switched,
  • Both 'f' and 'g' typed 'fg' when pressed individually
  • The 'r' key periodically deleted entire lines of text
  • The 's' key typed 's>'
I ensured that my locale was set to US (en_US.UTF-8), and I tried a few different models (the Generic 104-key PC was what I assumed it should be, but no luck) with the English layout and default variant.

Is there some specific setting in the keyboard model settings I should use to that this works?

I also tried another test on my Mac to see if the keyboard worked, and after the Mac keyboard setup assistant declared that the keyboard was recognized and ready to use, I still found weird key switchings and double letters/characters being typed for certain keys (although not the same ones I saw on the Raspberry Pi).

Any help would be appreciated!

Re: Incorrect key mappings on Raspberry Pi Official Keyboard (US)

Posted: Wed Apr 29, 2020 8:35 am
by jamesh
Weird. Will pass on to someone who might know.

Re: Incorrect key mappings on Raspberry Pi Official Keyboard (US)

Posted: Wed Apr 29, 2020 8:46 am
by DougieLawson
It's probably a hardware error.

For a US layout keyboard where the @ is on [SHIFT]+[2]

/etc/default/keyboard looks like this (you can edit it with sudo nano).

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="chicony"
XKBLAYOUT="us"
XKBVARIANT="intl"
XKBOPTIONS="lv3:ralt_switch,terminate:ctrl_alt_bksp"

BACKSPACE="guess"
https://en.wikipedia.org/wiki/British_a ... _keyboards

With the keyboard plugged in run sudo dpkg-reconfigure keyboard-configuration.

Re: Incorrect key mappings on Raspberry Pi Official Keyboard (US)

Posted: Wed Apr 29, 2020 9:37 am
by drgeoff
There is no way that a config error by a user should cause either the f or g keys to produce fg. That is either:

1. most likely faulty keyboard, possibly a mechanical problem.

2. small possibility of low voltage to the keyboard.

Re: Incorrect key mappings on Raspberry Pi Official Keyboard (US)

Posted: Wed Apr 29, 2020 9:39 am
by jamesh
We agree at Pi that this is probably a hardware fault. I suggest returning to the supplier for a replacement.