Show current settings setxkbmap -print -verbose 10 Change to abnt2 layout (need to be adjusted according to the keyboard model): setxkbmap -model abnt2 -layout br -variant abnt2