Re: Swedish keyboard not recognised

Peter Hunnisett <[email protected]> Mon, 31 Jan 2005 09:04:40 -0500
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
Göran Uddeborg wrote:

>So I extended them to 6 too, and rerun.  I now get results which are
>more close to ther original results.  I enclose the trace output both
>from your and my patch.  I also include the patch I used.
>
>It appears index 2 and 3 are always empty, as you say.
>  
>
Well I'm glad that I'm able to reproduce basically the same problem on a 
machine here.

>Could this have something to do with the XKB extension?  I'm guessing
>pretty wildly here, but I looked a bit in a document named "The X
>Keyboard Extension: Library Specification" which was included in my
>xorg-x11-doc package.  It mentions an alternative function
>XkbKeycodeToKeysym().  It also says (in section 12.1.3, page 88) about
>for XKeycodeToKeysum that "the order of the symbols in the core
>mapping does not necessarily correspond to the order of the symbols
>used by Xkb".
>
>Whatever that means.  As I think I've said, I don't know much about X.
>But maybe you or somebody else on the list could explain a bit more?
>  
>
Well I'm no expert either, but the first step is figuring out what the 
problem is. Perhaps you could attempt to boot without using the XKB 
extension. Presumably it just needs disabiling in your X.Org config 
file. I'd personally be surprised if this was the problem as you'd 
figure that the old was should probably still work so that X 
applications don't suddenly break ;) Of course, it's not like X.Org is 
immune to bugs.

I was looking at the code for xmodmap and it appears that it uses 
XGetKeyboardMapping, rather than the function that Cedega uses. I 
haven't looked at the actual implementation of XGetKeyboardMapping to 
see how it relates to what we're doing.

Ciao,
Peter