How to fix keymap of ISO keyboard - default Debian desktop
#7
Just received my ANSI keyboard model Pinebook Pro yesterday. Fooling around using the terminal and soon found some issues on the keyboard mapping.

Key ~ (i.e. shift + `) will move the cursor to the beginning of the line
Key @ (i.e. shift + 2) becomes " (double quote)
Key # (i.e. shift + 3) will move the cursor to the next line
Key | (i.e. shift + \) becomes ~
Key " becomes @
Key \ becomes #

I followed hmuller suggestion above, and here is what I did:

$ sudo localectl set-keymap us
$ sudo localectl set-x11-keymap us pc104
$ systemctl reboot

$ sudo dpkg-reconfigure keyboard-configuration

Keyboard model: Generic 104-key PC
Keyboard layout: English (US)
Key to function as AltGr: Right Alt (AltGr)
Compose key: No compose key
Use Control+Alt+Backspace to terminate X server? No

$ systemctl reboot

$ sudo dpkg-reconfigure locales

Locales to be generated: en_US.UTF-8 UTF8
Default locale for the system environment: en_US.UTF-8 UTF8

$ systemctl reboot

$ localectl
$ sudo apt install console-setup

After all the steps above, my keyboard behaves as below:

Key ~ (i.e. shift + `) becomes ┐
Key @ (i.e. shift + 2) becomes "
Key # (i.e. shift + 3) becomes £
Key | (i.e. shift + \) becomes ~
Key \ becomes #

I still missing the | key and \ key. (with extra ┐ and £)

Any idea what can I do to fix this.

(Update: 15 Jan 2020 - one last step to fix it)
From the GUI desktop, click on Menu (lower left corner)
=> On the second column: Applications
=> click on Preferences
=> On the third column, click on keyboard

A "Keyboard Preference" window pops up
=> go to Layout tab
=> Here I only have one entry English (US). (no sign of EU keyboard defines here)
=> click on [Show...] button
=> it pops up a UK keyboard which is exactly what's wrong to my keyboard
=> close the show keyboard screen
=> back to Keyboard Preference window
=> click on [Reset to Defaults] button (this is where the magic happen)
=> on the Type to test settings field, try the key, and it is fixed.

Now my ANSI keyboard is working.


Messages In This Thread
RE: How to fix keymap of ISO keyboard - default Debian desktop - by chip ling - 01-14-2020, 08:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Deepin Desktop Installation (Fedora 32 Workstation) Tutorial Upokupo 2 6,049 11-04-2020, 07:19 PM
Last Post: tllim
  Tutorial: Run Debian off NVMe hive 4 7,485 10-19-2020, 10:09 AM
Last Post: hive
  Is there a MMC upgrade instruction from debian-mate to manjaro factory (20.06)? pljanson 4 9,188 06-23-2020, 12:41 AM
Last Post: pljanson

Forum Jump:


Users browsing this thread: 11 Guest(s)