Console: italian keyboard layout with one key wrong

Hi all,
sorry for the stupid question; but I’m facing a strange behaviour.

I have an italian qwerty keyboard and everything work correctly in KDE Plasma: konsole application sees the correct characters using bash or zsh.

Strangely activating the console (CTRL+ALT+F3) the only key I cannot type is the dash (-).
The key is the one near the right shift. This key types dash (-) and with shift types underscore (_)

On the console it types slash (/) and with shift types underscore (_)

All the other keys (normal and with shift) type what is expected.

What can i do?

Make sure you use the correct keymap in /etc/vconsole.conf

cat /etc/vconsole.conf
 $ localectl list-keymaps | grep it
it
it-ibm
it2
mac-it

If you list the content of ~/.config/plasma-localerc you may get a hint

When you have found the correct name

localectl set-keymap <keymap>
2 Likes

I’ll try to gather informations.

Issuing the commands in konsole (plasma) I have

vconsole.conf

    ~  cat /etc/vconsole.conf                                                                                                                                                                                                                 ✔ 
KEYMAP=it2
    ~     

list-keymaps

    ~  localectl list-keymaps | grep it                                                                                                                                                                                                       ✔ 
it
it-ibm
it2
mac-it
    ~   

plasma-localerc

    ~  cat ~/.config/plasma-localerc                                                                                                                                                                                                          ✔ 
[Formats]
LANG=it_IT.UTF-8
    ~ 

Maybe I didn’t explain myself

In Plasma all keyboard mappings are correct also for the key in the red box.

And this happens only when I switch to the character console (CTRL+ALT+F3) terminal
In this terminal the key in the red box types the slash (/) .

All the italian characters (green boxes) are correct and only the lower rightmost key is wrong (but the SHIFT+this-key is correct).

Strangely ALTGR+this-key gives the dash (-)

Any hint?

I can’t say - but since you are using it2 - changing to it cannot be much different

localectl set-keymap it

Thanks

I’ll go on using ALTGR

BTW I only needed the dash for issuing sudo pacman -Syu :slightly_smiling_face:

I believe “it” would indeed be the correct layout, going by what Wikipedia says. :point_down:


Just do what @linux-aarhus said, and then you’ll have the correct keyboard layout everywhere. :wink: