MacBook Pro Keyboard mismatch

Asked by Kael on 2019-04-12

1. vim vim /etc/default/keyboard
XKBLAYOUT="us"
BACKSPACE="guess"
XKBMODEL="macbook79"
XKBVARIANT=""
XKBOPTIONS=""

2. sudo udevadm trigger --subsystem-match=input --action=change
keyboard is normal in this terminal window:
~!@#$%^&*()_+

3. open new terminal Tab, keyboard mismatch:
±!@£$%^&*()_+

4. How to solve it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubuntu-docs Edit question
Assignee:
No assignee Edit question
Solved by:
Kael
Solved:
2019-04-15
Last query:
2019-04-15
Last reply:
2019-04-12

Does it need sudo? Does the command not run without sudo?

Kael (kael1117) said : #2

Problem Solved without sudo, thanks, andrew

Not every command needs sudo. Put the command at the bottom of ~/.bashrc and it'll run each time you open a new terminal.