System not recognize my keyboard layout
I have Logitech Mx Keys keyboard, and use Portuguese Brazil language.
The keyboard layout is american and not works well.
If I run set setxkbmap -model abnt -layout us -variant intl the double quotes not works well, they go out like this ¨¨.
If I run the command like this setxkbmap -layout us the double quotes works but if I need to accent words, not works, the accent go out without the letter like this. s~ao
I dont know what to do.
61 Answer
Check configuration
man setxkbmap shows that
-query With this option setxkbmap just prints the current rules, model, layout, variant, and options, then exits.so you can check the configuration (and it would help if you post the output) with
setxkbmap -query -v 10Set configuration
You might need -variant intl or -variant altgr-intl.But again, as per man page
-variant name Specifies which variant of the keyboard layout should be used to determine the components which make up the keyboard description. The -variant option may only be used once. Multiple variants can be specified as a comma-separated list and will be matched with the layouts specified with -layout.So for instance in my case to change the variant of the third layout from intl to altgr-intl I have to use a comma separated list
$ setxkbmap -query
rules: evdev
model: pc105
layout: latam,il,us,us
variant: ,,intl,
$ setxkbmap -variant ,,altgr-intl,In addition,you may need to use -model pc105.I am not sure -model abnt is even a valid model (where did yo get that from? I could only find a few, not necessarily reputable sources, using it).
A hint to this assertion is given by
$ find /usr/share/X11/xkb/ -type f -exec grep -nH --color abnt {} \;
/usr/share/X11/xkb/geometry/pc:831:xkb_geometry "abnt2" {
/usr/share/X11/xkb/geometry/pc:886:}; // End of "abnt2" geometry
/usr/share/X11/xkb/symbols/sun_vndr/br:84: xkb_symbols "abnt2" {
/usr/share/X11/xkb/symbols/sun_vndr/br:85: include "br(abnt2)"
/usr/share/X11/xkb/symbols/br:2:xkb_symbols "abnt2" {
/usr/share/X11/xkb/symbols/br:49: include "br(abnt2)"
/usr/share/X11/xkb/symbols/br:66: include "br(abnt2)"You may combine using Settings -> Region & Language -> Input Sources and choosing / adding an option (e.g., English (US, intl., with dead keys)), and then setxkbmap -query to see what may be the proper model and perhaps also rules.
Notes
Out of curiosity, I checked what character you were getting
$ printf ¨ | recode ..dump UCS2 Mne Description 00A8 ': diaeresisYou can check available options with (also 1, 2)
man xkeyboard-configor to
catinstead of pagingman -P cat xkeyboard-configOld linuxes allowed for using
~/.xinitrcfor permanent configuration (e.g. 3), I am not sure it still works.I have just asked abnt not listed in xkeyboard-config models