With XFree86 4.3.0 I experience the message
fixme:keyboard:X11DRV_KEYBOARD_DetectLayout Your keyboard layout was not found! Using closest match instead (German keyboard layout without dead keys) for scancode mapping. Please define your layout in windows/x11drv/keyboard.c and submit them to us for inclusion into future Wine releases. See the Wine User Guide, chapter "Keyboard" for more information.
This is very annoying, I can't use the right alt key any more to reach characters like {,} or [. Very bad for C programming... (I use EditPlus together with wine).
The Problem can be found with older versions (20020812) as with newer version (20030317). Here is my keyboard layout from XF86Config:
Section "InputDevice" Driver "Keyboard" Identifier "Keyboard[0]" Option "MapName" "Standard Keyboard [ pc105 ]" Option "Protocol" "Standard" Option "XkbLayout" "de" Option "XkbModel" "pc105" Option "XkbRules" "xfree86" Option "XkbVariant" "nodeadkeys" EndSection
wine -debugmsh +key,+keyboard application outputs: trace:key:X11DRV_InitKeyboard NumLockMask is 10 trace:keyboard:X11DRV_KEYBOARD_DetectLayout Attempting to match against "United States keyboard layout" trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x0000ff1b trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x0000ff1b trace:key:X11DRV_KEYBOARD_DetectLayout mismatch for keycode 11, character 2 ...
Any idea?
Regards, Tim
"Tim Ruehsen" tim.ruehsen@openmediasystem.de wrote:
Option "XkbLayout" "de" Option "XkbModel" "pc105"
trace:keyboard:X11DRV_KEYBOARD_DetectLayout Attempting to match against "United States keyboard layout"
Any idea?
Then look for mismatch errors for German keyboard layout, not for US one, and try to fix them.
Tim Ruehsen wrote:
Any idea?
Regards, Tim
I don't know whether it's relevant in this case. XFree 4.3.0 introduced a total disconnection of the different keyboard groups. If before, the IL keyboard contained a US keyboard as the first group, and an IL keyboard as the second group, now I have to define "US,IL" to get the same effect. This is, on the whole, a good thing (even - a very good thing). This does mean that the keyboard detection in wine will now only work if you have your keyboard defined in exactly the same way as the 4.2 keyboards.
I have placed this on my todo list for Wine, but not told anyone so far, as I am extremely busy, and am unlikely to get to it anytime soon. I was hoping someone else picks it up before I do (for those who wonder - I am working on adding Hebrew support to wine, but this quest is causing me now to rewrite the entire choose font dialog, and will probably cause me to address the keyboard detection later on as well, due to keyboard change notification messages).
Shachar
Hi Shachar,
thanks for your answer. Dmitry's answer maked me believe to be stupid...
Since I can't rewrite the keyboard detection code and it looks like it is a general XFree 4.3.0 issue, I have to wait for someone to fix it.
Meanwhile, your answer lets me hope that there is a workaround. But I don't understand your answer completely. As I can see, my keyboard configuration (in XF86Config) did not change from 4.2 to 4.3. Could you or anybody give me a hint on how to set XkbLayout/XkbVariant or whatever to get my right alt key working (this is the most important one for me)?
Regards, Tim
I don't know whether it's relevant in this case. XFree 4.3.0 introduced a total disconnection of the different keyboard groups. If before, the IL keyboard contained a US keyboard as the first group, and an IL keyboard as the second group, now I have to define "US,IL" to get the same effect. This is, on the whole, a good thing (even - a very good thing). This does mean that the keyboard detection in wine will now only work if you have your keyboard defined in exactly the same way as the 4.2 keyboards.
I have placed this on my todo list for Wine, but not told anyone so far, as I am extremely busy, and am unlikely to get to it anytime soon. I was hoping someone else picks it up before I do (for those who wonder - I am working on adding Hebrew support to wine, but this quest is causing me now to rewrite the entire choose font dialog, and will probably cause me to address the keyboard detection later on as well, due to keyboard change notification messages).
Shachar
"Tim Ruehsen" tim.ruehsen@openmediasystem.de wrote:
thanks for your answer. Dmitry's answer maked me believe to be stupid...
Tim, I'm sorry if my answer was a bit crude, I really didn't mean to offend you.
Since I can't rewrite the keyboard detection code and it looks like it is a general XFree 4.3.0 issue, I have to wait for someone to fix it.
Well, I'm running 4.3.0 and have no problems with keyboard detection code, it just works for me.
Meanwhile, your answer lets me hope that there is a workaround. But I don't understand your answer completely. As I can see, my keyboard configuration (in XF86Config) did not change from 4.2 to 4.3. Could you or anybody give me a hint on how to set XkbLayout/XkbVariant or whatever to get my right alt key working (this is the most important one for me)?
If you will add "us" to the "XkbLayout" setting in your XF86Config like this
Option "XkbLayout" "us,de"
it might help.
Sorry again.
Hi Dmitry,
"Tim Ruehsen" tim.ruehsen@openmediasystem.de wrote:
thanks for your answer. Dmitry's answer maked me believe to be stupid...
Tim, I'm sorry if my answer was a bit crude, I really didn't mean to offend you.
OK, it is forgotten.
If you will add "us" to the "XkbLayout" setting in your XF86Config like this
Option "XkbLayout" "us,de"
Thank you, Dmitry. But it doesn't help. In this case I have US layout which drives me crazy... I read some XFree READMEs. They are talking about a possibility to configure keyboard layout 'backward compatible' - but I could not find out how (it might help).
If there is anybody who got the keyboard variant 'nodeadkeys' working with wine: please tell me how, maybe a snapshot from your configuration helps.
Regards, Tim
Tim Ruehsen wrote:
Thank you, Dmitry. But it doesn't help. In this case I have US layout which drives me crazy...
Can you confirm that the messages go away, and that a German keyboard is detected by Wine? If so, we can solve the other problem quite easily.
I read some XFree READMEs. They are talking about a possibility to configure keyboard layout 'backward compatible' - but I could not find out how (it might help).
You don't need to. you can tell your X to use us,de as the keyboard, but to always be in grp2. Actually, what I just said counts as "backwards compatible", as that is what happens on 4.2.x. Does anyone know, off the top of their head, how to do that?
If there is anybody who got the keyboard variant 'nodeadkeys' working with wine: please tell me how, maybe a snapshot from your configuration helps.
Regards, Tim
I have a french keyboard, the matching XkbLayout entry is in /etc/X11/XF86Config-4, and it fails layout detection. I receive the message everytime a program is launched.
Can you confirm that the messages go away, and that a German keyboard is detected by Wine? If so, we can solve the other problem quite
easily.
I read some XFree READMEs. They are talking about a possibility to
configure
keyboard layout 'backward compatible' - but I could not find out how
(it
might help).
===== Sylvain Petreolle (spetreolle at users dot sourceforge dot net) ICQ #170597259 No more War !
"What if tomorrow the War could be over ?" Morpheus, in "Reloaded".
For the Law of Oil and Fire, Im an European that lives in France. For all my Brothers and friends, Im a human living on Earth.
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Hi Shachar,
Thank you, Dmitry. But it doesn't help. In this case I have US layout which drives me crazy...
Can you confirm that the messages go away, and that a German keyboard is detected by Wine? If so, we can solve the other problem quite easily.
No. "de" results in messages from wine and a fallback to "Using closest match instead (German keyboard layout without dead keys) for scancode mapping.". (so in wine i can't use right alt key, but in kde everything is ok) See my first mail for more info.
"us,de" makes the wine messages go away. But in this case I have a US keyboard layout (in wine and in kde).
I read some XFree READMEs. They are talking about a possibility to configure keyboard layout 'backward compatible' - but I could not find out how (it might help).
You don't need to. you can tell your X to use us,de as the keyboard, but to always be in grp2. Actually, what I just said counts as "backwards compatible", as that is what happens on 4.2.x. Does anyone know, off the top of their head, how to do that?
I try find this out.
Regards, Tim
I read some XFree READMEs. They are talking about a possibility to configure keyboard layout 'backward compatible' - but I could not find out how (it might help).
You don't need to. you can tell your X to use us,de as the keyboard, but to always be in grp2. Actually, what I just said counts as "backwards compatible", as that is what happens on 4.2.x. Does anyone know, off the top of their head, how to do that?
I tried to cheat wine with "us,de" together with ",nodeadkeys" and "grp:ctrls_toggle" (toggle between us and de with pressing both ctrl keys). Doing so resulted in a screwed keyboard, e.g. a-z keys now had special meanings in KDE, running wine did not give me access to '{[]}' keys. KDE itself has been screwed (maybe since I pressed lots of keys for testing while they had special meaning).
I made tests with several different toggle keys and configurations, but no success... meybe there is no easy solution.
Regards, Tim
Tim Ruehsen wrote:
I read some XFree READMEs. They are talking about a possibility to configure keyboard layout 'backward compatible' - but I could not find out how (it might help).
You don't need to. you can tell your X to use us,de as the keyboard, but to always be in grp2. Actually, what I just said counts as "backwards compatible", as that is what happens on 4.2.x. Does anyone know, off the top of their head, how to do that?
I tried to cheat wine with "us,de" together with ",nodeadkeys" and "grp:ctrls_toggle" (toggle between us and de with pressing both ctrl keys). Doing so resulted in a screwed keyboard, e.g. a-z keys now had special meanings in KDE, running wine did not give me access to '{[]}' keys. KDE itself has been screwed (maybe since I pressed lots of keys for testing while they had special meaning).
I made tests with several different toggle keys and configurations, but no success... meybe there is no easy solution.
Regards, Tim
Hmm.
Try us,de, leave the dead keys in (unless you want them out), and grp:alt_toggle. Then, press alt to switch between keyboard layouts.
I know that grp:shift_toggle is badly broken, both in Wine and in other apps I have seen (I suspect an X bug here). I have never tried both ctrl toggle, though.
Shachar
Am Freitag, 11. April 2003 17:46 schrieb Shachar Shemesh:
Tim Ruehsen wrote:
I read some XFree READMEs. They are talking about a possibility to configure keyboard layout 'backward compatible' - but I could not find out how (it might help).
You don't need to. you can tell your X to use us,de as the keyboard, but to always be in grp2. Actually, what I just said counts as "backwards compatible", as that is what happens on 4.2.x. Does anyone know, off the top of their head, how to do that?
I tried to cheat wine with "us,de" together with ",nodeadkeys" and "grp:ctrls_toggle" (toggle between us and de with pressing both ctrl keys). Doing so resulted in a screwed keyboard, e.g. a-z keys now had special meanings in KDE, running wine did not give me access to '{[]}' keys. KDE itself has been screwed (maybe since I pressed lots of keys for testing while they had special meaning).
I made tests with several different toggle keys and configurations, but no success... meybe there is no easy solution.
Regards, Tim
Hmm.
Try us,de, leave the dead keys in (unless you want them out), and grp:alt_toggle. Then, press alt to switch between keyboard layouts.
I know that grp:shift_toggle is badly broken, both in Wine and in other apps I have seen (I suspect an X bug here). I have never tried both ctrl toggle, though.
this doent|t work at all. just no effect, so i am staying with US kezboard. as zou can see...
Tim