MacBook Pro Keyboard mismatch

Asked by Kael

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:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

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

Revision history for this message
Kael (kael1117) said :
#2

Problem Solved without sudo, thanks, andrew

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

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