01-14-2020, 08:54 PM
(This post was last modified: 01-15-2020, 09:37 AM by chip ling.
Edit Reason: add additional step to fix the ANSI keyboard setting
)
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.
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.