Keyboard issue

Questions about Wine on Linux
Locked
krumpf
Level 2
Level 2
Posts: 14
Joined: Tue Nov 10, 2020 5:37 am

Keyboard issue

Post by krumpf »

Hi,
I've recently upgraded Wine from 6.13 to 6.15, and since then I got a small but annoying keyboard issue.
Whenever I use the '<' key in any application running through Wine, the character typed is '*' (and when using shift to get '>' result is 'µ').
I've tried in various softwares and games, the < doesn't get typed, while it used to work properly before.
Using a french azerty physical keyboard, with french latin-9 layout (like this)

Does anyone have the same issue ?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Keyboard issue

Post by jkfloris »

How is your keyboard detected?

Code: Select all

WINEDEBUG=warn+keyboard wine notepad
look for a line with:

Code: Select all

warn:keyboard:X11DRV_KEYBOARD_DetectLayout Using closest match
krumpf
Level 2
Level 2
Posts: 14
Joined: Tue Nov 10, 2020 5:37 am

Re: Keyboard issue

Post by krumpf »

Code: Select all

00e4:warn:keyboard:X11DRV_KEYBOARD_DetectLayout 10 keysyms per keycode not supported, set to 4
00e4:warn:keyboard:X11DRV_KEYBOARD_DetectLayout Using closest match (United States keyboard layout) for scan/virtual codes mapping.
As a US keyboard, but I believe that always was the case: in my desktop settings, I have to list English-US as first layout, and french-latin9 as 2nd. It's a trick I've been using for quite a while, because if I set fr-latin9 as 1st layout, Wine doesn't detect some french keys like '2/é' or '7/è' and using them gives no result.
I've been doing this since quite a while, and it always worked like a charm (and when typing something in Wine, the layout is fr-latin9).

I've checked my system update log, and when Wine got updated, there also was a harfbuzz and libinput upgrade, could those be causing troubles in the way they interact with Wine ? (since afaik, there are related in the keyboard/character handling for the system)(After a small check, seems none of those libraries is used during Wine compilation)
I've tried to switch back to Wine 6.13: same result, '<' key is seen as '*' :-s

P.S.: I'm using a Gentoo, so everything is build from sources. Asked the very same question on Gentoo forums, got no answer so far.
krumpf
Level 2
Level 2
Posts: 14
Joined: Tue Nov 10, 2020 5:37 am

Re: Keyboard issue

Post by krumpf »

I've just compiled wine-staging-6.15 (hoping the keyboard patches would help), created a new wineprefix to test, and still, the '<' key isn't working properly, keeps typing a '*'
krumpf
Level 2
Level 2
Posts: 14
Joined: Tue Nov 10, 2020 5:37 am

Re: Keyboard issue

Post by krumpf »

Nailed it !
I've tweaked the X keyboard settings, removed the en-US, leaving only french layout (I also had to change variant), and now it works again ! Still, I wonder where did that "bug" came from.
Locked