wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Keyboard layout messed up for KBD_PORTUGUESE_BRAZILIAN_ABNT2.

Open tb110188 opened this issue 5 years ago • 96 comments

When I try to type any text on any of the GUI applicatuins, the letter doesnt matches the keyboard layout (it works just fine from the command prompt).

tb110188 avatar Apr 22 '21 01:04 tb110188

@tb110188 , would you please attach weston.log from /mnt/wslg ? and what keyboard layout do you use in Windows side ?

hideyukn88 avatar Apr 22 '21 02:04 hideyukn88

@tb110188 , would you please attach weston.log from /mnt/wslg ? and what keyboard layout do you use in Windows side ?

i'm reinstalling Ubuntu... And sure, also I do use PT BR (ABNT2)

tb110188 avatar Apr 22 '21 02:04 tb110188

I'm having the same issue. My keyboard layout is PT-BR (ABNT2) too, and here's my weston.log file:

weston.log

jordan080 avatar Apr 22 '21 02:04 jordan080

@jordan080 Thanks...

tb110188 avatar Apr 22 '21 02:04 tb110188

From your weston.log.

[23:07:28.183] kbd_layout:0x416 kbd_type:0x4 kbd_subType:0x0 kbd_functionKeys:0xc

RDP client is correctly reports 0x416, which is ...

#define KBD_PORTUGUESE_BRAZILIAN_ABNT 0x00000416

Would you please do "setxkbmap -print -verbose 10" on Linux side to see if corresponding layout is installed/configured in Xkb ?

hideyukn88 avatar Apr 22 '21 02:04 hideyukn88

Setting verbose level to 10 locale is C Trying to load rules file ./rules/evdev... Trying to load rules file /usr/share/X11/xkb/rules/evdev... Success. Applied rules from evdev: rules: evdev model: pc105 layout: us Trying to build keymap using the following components: keycodes: evdev+aliases(qwerty) types: complete compat: complete symbols: pc+us+inet(evdev) geometry: pc(pc105) xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+us+inet(evdev)" }; xkb_geometry { include "pc(pc105)" }; };

tb110188 avatar Apr 22 '21 02:04 tb110188

weston.log

also here is my weston.log

tb110188 avatar Apr 22 '21 02:04 tb110188

From your weston.log.

[23:07:28.183] kbd_layout:0x416 kbd_type:0x4 kbd_subType:0x0 kbd_functionKeys:0xc

RDP client is correctly reports 0x416, which is ...

#define KBD_PORTUGUESE_BRAZILIAN_ABNT 0x00000416

Would you please do "setxkbmap -print -verbose 10" on Linux side to see if corresponding layout is installed/configured in Xkb ?

My output from "setxkbmap" is pretty much the same as that of @tb110188:

Setting verbose level to 10 locale is C Trying to load rules file ./rules/evdev... Trying to load rules file /usr/share/X11/xkb/rules/evdev... Success. Applied rules from evdev: rules: evdev model: pc105 layout: us Trying to build keymap using the following components: keycodes: evdev+aliases(qwerty) types: complete compat: complete symbols: pc+us+inet(evdev) geometry: pc(pc105) xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+us+inet(evdev)" }; xkb_geometry { include "pc(pc105)" }; };

jordan080 avatar Apr 22 '21 02:04 jordan080

Assuming you are on Ubuntu, can you configure keyboard layout using "sudo dpkg-reconfigure keyboard-configuration" and restart WSLg by wsl --shutdown or wsl --terminate [distro name] ?

hideyukn88 avatar Apr 22 '21 02:04 hideyukn88

@hideyukn88 Nope, still the same issue...

tb110188 avatar Apr 22 '21 03:04 tb110188

when I try to type "qwerty" this is what it shows "/,.hxw"...

tb110188 avatar Apr 22 '21 03:04 tb110188

I don't know exactly what i did, i installed full gnome pckages and change my locale to pt_BR.UTF8, also changind some stuff related to the keyboar... and now it's working just fine...

tb110188 avatar Apr 22 '21 03:04 tb110188

I don't know exactly what i did, i installed full gnome pckages and change my locale to pt_BR.UTF8, also changind some stuff related to the keyboar... and now it's working just fine...

What exactly did you change in the keyboard settings? And did you install the full GNOME DE?

jordan080 avatar Apr 22 '21 10:04 jordan080

I don't know exactly what i did, i installed full gnome pckages and change my locale to pt_BR.UTF8, also changind some stuff related to the keyboar... and now it's working just fine...

What exactly did you change in the keyboard settings? And did you install the full GNOME DE?

Tried again, but without installing Full Gnome Desktop Experience...

I think we need that...

tb110188 avatar Apr 22 '21 13:04 tb110188

Update:

We don't need Gnome Desktop Experience, but i don't know what else...

tb110188 avatar Apr 22 '21 14:04 tb110188

The same here. It only worked here after removing the Brazilian ABTN2 keyboard and have restarted WSL. It is working with United States-International.

luishdemetrio avatar Apr 22 '21 16:04 luishdemetrio

there shoul be a way to make it work without messing with the keyboard...

tb110188 avatar Apr 22 '21 20:04 tb110188

Unfortunately, while they don't fix it, we won't be able to use GUI apps with ABNT2 keyboards

tb110188 avatar Apr 23 '21 02:04 tb110188

setxkbmap -model abnt2 -layout br -variant abnt2

PauloCotrim avatar Apr 23 '21 11:04 PauloCotrim

Didn't work for me

Did you changed the LOCALE too???

tb110188 avatar Apr 23 '21 11:04 tb110188