Michael Nagel | 15 Nov 14:19 2012
Picon

Re: Mac OSX and keyboard

Hello everyone,

I debugged this some further:

In xev on the Mac running x2goclient when pressing "1", "2", "3" I get (see below).
In Linux via x2go I get (see even further down).

MAC:   state 0x0, keycode 26 (keysym 0x31, 1), same_screen YES,
LINUX: state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,

So the keycode is the same (I think this is good),
but state is different (I don't know what this tells)
and keysym is different/incorrect (I think this is bad and near the root of the problem).

Hopefully someone with more knowledge about X input internals can make something with this information.
I am glad to help with further tests/information.

Best Regards
Michael

MAC:
**************************
KeyPress event, serial 29, synthetic NO, window 0xa00001,
    root 0x37d, subw 0x0, time 4288816511, (97,-12), root:(97,10),
    state 0x0, keycode 26 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XmbLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0xa00001,
    root 0x37d, subw 0x0, time 4288816599, (97,-12), root:(97,10),
    state 0x0, keycode 26 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0xa00001,
    root 0x37d, subw 0x0, time 4288816975, (97,-12), root:(97,10),
    state 0x0, keycode 27 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XmbLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0xa00001,
    root 0x37d, subw 0x0, time 4288817087, (97,-12), root:(97,10),
    state 0x0, keycode 27 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0xa00001,
    root 0x37d, subw 0x0, time 4288817447, (97,-12), root:(97,10),
    state 0x0, keycode 28 (keysym 0x33, 3), same_screen YES,
    XLookupString gives 1 bytes: (33) "3"
    XmbLookupString gives 1 bytes: (33) "3"
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0xa00001,
    root 0x37d, subw 0x0, time 4288817551, (97,-12), root:(97,10),
    state 0x0, keycode 28 (keysym 0x33, 3), same_screen YES,
    XLookupString gives 1 bytes: (33) "3"
    XFilterEvent returns: False
**************************

LINUX:
**************************
KeyPress event, serial 33, synthetic NO, window 0x3c00001,
    root 0x1f3, subw 0x0, time 4288865563, (93,-19), root:(1146,43),
    state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XmbLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3c00001,
    root 0x1f3, subw 0x0, time 4288865691, (93,-19), root:(1146,43),
    state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x3c00001,
    root 0x1f3, subw 0x0, time 4288866467, (93,-19), root:(1146,43),
    state 0x10, keycode 27 (keysym 0x72, r), same_screen YES,
    XLookupString gives 1 bytes: (72) "r"
    XmbLookupString gives 1 bytes: (72) "r"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3c00001,
    root 0x1f3, subw 0x0, time 4288866619, (93,-19), root:(1146,43),
    state 0x10, keycode 27 (keysym 0x72, r), same_screen YES,
    XLookupString gives 1 bytes: (72) "r"
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x3c00001,
    root 0x1f3, subw 0x0, time 4288867212, (93,-19), root:(1146,43),
    state 0x10, keycode 28 (keysym 0x74, t), same_screen YES,
    XLookupString gives 1 bytes: (74) "t"
    XmbLookupString gives 1 bytes: (74) "t"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3c00001,
    root 0x1f3, subw 0x0, time 4288867330, (93,-19), root:(1146,43),
    state 0x10, keycode 28 (keysym 0x74, t), same_screen YES,
    XLookupString gives 1 bytes: (74) "t"
    XFilterEvent returns: False
**************************

Gmane