M HYPE SPLASH
// news

System not recognize my keyboard layout

By Emma Payne

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.

6

1 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 10

Set 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

  1. Out of curiosity, I checked what character you were getting

     $ printf ¨ | recode ..dump UCS2 Mne Description 00A8 ': diaeresis
  2. You can check available options with (also 1, 2)

     man xkeyboard-config

    or to cat instead of paging

     man -P cat xkeyboard-config
  3. Old linuxes allowed for using ~/.xinitrc for permanent configuration (e.g. 3), I am not sure it still works.

  4. I have just asked abnt not listed in xkeyboard-config models

Related

  1. Keyboard is not configured for pt-BR
  2. How to write in Brazilian Portuguese using a US keyboard?
  3. One keyboard two languages on Ubuntu 17.10
  4. Use US(International with dead keys) in i3wm
  5. What file is the setxkbmap option -rules meant to take, and how can I add keyboard variants to that file?

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy