Announcement

Collapse
No announcement yet.

Issues with synergy and Kubuntu 8.10

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Issues with synergy and Kubuntu 8.10

    I'm having a bit of trouble using synergy (latest version for both the server and the client) going from Windows XP on the server to Kubuntu 8.10 on the client. This setup has previously served me very smoothly with no hiccups through previous versions of Kubuntu, up to and including 8.04 (hardy). I've upgraded to the latest version 8.10 (intrepid) and I am having trouble with the auto-repeat functionality for two keys and two keys only.

    My left arrow and down arrow keys have ceased to auto repeat but all of the other character keys perform that function just fine. I've taken the following troubleshooting steps and I'm bumping up against the edge of my knowledge so I'm hoping for a little assistance getting this sucker fixed.

    1 - I tried the keys using the keyboard attached to my linux box without using synergy. They work fine.

    2 - I fired up the synergy client on my linux box. I then tried the keys using the keyboard attached to my linux box. They still work.

    3 - I tried the keys using the keyboard attached to my XP box. That didn't work.

    4 - In order to make sure that the problem wasn't on the server (XP) side, I cranked up the logging to DEBUG1. For one of the keys that work (specifically the up key) I got this:

    DEBUG1: event: Key char=0, vk=0x26, nagr=0, lParam=0x01480001
    DEBUG1: new mask: 0x2000
    DEBUG1: new mask: 0x2000
    DEBUG1: onKeyDown id=61266 mask=0x2000 button=0x0148
    DEBUG1: send key down to "client" id=61266, mask=0x2000, button=0x0148
    DEBUG1: hook: 0x00000026 0x01480001
    DEBUG1: hook: 0x06000026 0x01480001
    DEBUG1: hook: 0x07000026 0x01480001
    DEBUG1: event: Key char=0, vk=0x26, nagr=0, lParam=0x01480001
    DEBUG1: new mask: 0x2000
    DEBUG1: new mask: 0x2000
    DEBUG1: onKeyRepeat id=61266 mask=0x2000 count=1 button=0x0148
    DEBUG1: send key repeat to "client" id=61266, mask=0x2000, count=1, button=0x0148
    DEBUG1: hook: 0x00000026 0x01480001
    DEBUG1: hook: 0x06000026 0x01480001
    DEBUG1: hook: 0x07000026 0x01480001

    For one of the keys that don't work (the down key) I got this:

    DEBUG1: event: Key char=0, vk=0x28, nagr=0, lParam=0x01500001
    DEBUG1: new mask: 0x2000
    DEBUG1: new mask: 0x2000
    DEBUG1: onKeyDown id=61268 mask=0x2000 button=0x0150
    DEBUG1: send key down to "client" id=61268, mask=0x2000, button=0x0150
    DEBUG1: hook: 0x00000028 0x01500001
    DEBUG1: hook: 0x06000028 0x01500001
    DEBUG1: hook: 0x07000028 0x01500001
    DEBUG1: event: Key char=0, vk=0x28, nagr=0, lParam=0x01500001
    DEBUG1: new mask: 0x2000
    DEBUG1: new mask: 0x2000
    DEBUG1: onKeyRepeat id=61268 mask=0x2000 count=1 button=0x0150
    DEBUG1: send key repeat to "client" id=61268, mask=0x2000, count=1, button=0x0150
    DEBUG1: hook: 0x00000028 0x01500001
    DEBUG1: hook: 0x06000028 0x01500001
    DEBUG1: hook: 0x07000028 0x01500001
    DEBUG1: event: Key char=0, vk=0x28, nagr=0, lParam=0x01500001
    DEBUG1: new mask: 0x2000
    DEBUG1: new mask: 0x2000
    DEBUG1: onKeyRepeat id=61268 mask=0x2000 count=1 button=0x0150
    DEBUG1: send key repeat to "client" id=61268, mask=0x2000, count=1, button=0x0150
    DEBUG1: hook: 0x00000028 0x01500001
    DEBUG1: hook: 0x06000028 0x01500001
    DEBUG1: hook: 0x07000028 0x01500001

    Clearly the repeat events are getting sent which seems obvious since the server side didn't change at all, but I wanted to make sure to rule that out.

    5 - Since the issue appeared to be on the client side, I figured I'd start with re-loading the synergy package. I did that to no avail.

    6 - To rule out the package as the problem, I downloaded the synergy source and built it. The problem persisted.

    7 - I cranked up logging on the client side and added a couple of extra data points to the logging in order to clarify things for me. For a key that works (once again the up key) I received this:

    DEBUG1: CServerProxy.cpp,563: recv key down id=0x0000ef52, mask=0x2000, button=0x0148
    DEBUG1: CKeyMap.cpp,260: mapKey ef52 (61266) with mask 2000, start state: 0000
    DEBUG1: CKeyMap.cpp,612: find best: 0000 2000
    DEBUG1: CKeyMap.cpp,693: best key index 0 of 1 (exact)
    DEBUG1: CKeyMap.cpp,618: found key in group 0
    DEBUG1: CKeyMap.cpp,785: state: 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 0000 in 0000 - 0000)
    DEBUG1: CKeyMap.cpp,797: desired state: 2000 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 2000 in ffff - 6020)
    DEBUG1: CKeyMap.cpp,318: Mapping Character Key
    DEBUG1: CKeyMap.cpp,324: mapped to 06f, new state 0000
    DEBUG1: CKeyState.cpp,800: keystrokes:
    DEBUG1: CXWindowsKeyState.cpp,208: 06f (00000000) down
    DEBUG1: CServerProxy.cpp,587: recv key repeat id=0x0000ef52, mask=0x2000, count=1, button=0x0148
    DEBUG1: CKeyMap.cpp,260: mapKey ef52 (61266) with mask 2000, start state: 0000
    DEBUG1: CKeyMap.cpp,612: find best: 0000 2000
    DEBUG1: CKeyMap.cpp,693: best key index 0 of 1 (exact)
    DEBUG1: CKeyMap.cpp,618: found key in group 0
    DEBUG1: CKeyMap.cpp,785: state: 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 0000 in 0000 - 0000)
    DEBUG1: CKeyMap.cpp,797: desired state: 2000 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 2000 in ffff - 6020)
    DEBUG1: CKeyMap.cpp,318: Mapping Character Key
    DEBUG1: CKeyMap.cpp,324: mapped to 06f, new state 0000
    DEBUG1: CKeyState.cpp,800: keystrokes:
    DEBUG1: CXWindowsKeyState.cpp,208: 06f (00000000) up
    DEBUG1: CXWindowsKeyState.cpp,208: 06f (00000000) down

    For a key that doesn't work (down again) I got this:

    DEBUG1: CServerProxy.cpp,563: recv key down id=0x0000ef51, mask=0x2000, button=0x014b
    DEBUG1: CKeyMap.cpp,260: mapKey ef51 (61265) with mask 2000, start state: 0000
    DEBUG1: CKeyMap.cpp,612: find best: 0000 2000
    DEBUG1: CKeyMap.cpp,693: best key index 0 of 1 (exact)
    DEBUG1: CKeyMap.cpp,618: found key in group 0
    DEBUG1: CKeyMap.cpp,785: state: 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 0000 in 0000 - 0000)
    DEBUG1: CKeyMap.cpp,797: desired state: 2000 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 2000 in ffff - 6020)
    DEBUG1: CKeyMap.cpp,318: Mapping Character Key
    DEBUG1: CKeyMap.cpp,324: mapped to 071, new state 0000
    DEBUG1: CKeyState.cpp,800: keystrokes:
    DEBUG1: CXWindowsKeyState.cpp,208: 071 (00000000) down
    DEBUG1: CServerProxy.cpp,587: recv key repeat id=0x0000ef51, mask=0x2000, count=1, button=0x014b
    DEBUG1: CKeyMap.cpp,260: mapKey ef51 (61265) with mask 2000, start state: 0000
    DEBUG1: CKeyMap.cpp,612: find best: 0000 2000
    DEBUG1: CKeyMap.cpp,693: best key index 0 of 1 (exact)
    DEBUG1: CKeyMap.cpp,618: found key in group 0
    DEBUG1: CKeyMap.cpp,785: state: 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 0000 in 0000 - 0000)
    DEBUG1: CKeyMap.cpp,797: desired state: 2000 0000,0000,0000
    DEBUG1: CKeyMap.cpp,878: flip: 0000 (0000 vs 2000 in ffff - 6020)
    DEBUG1: CKeyMap.cpp,318: Mapping Character Key
    DEBUG1: CKeyMap.cpp,324: mapped to 071, new state 0000
    DEBUG1: CKeyState.cpp,800: keystrokes:
    DEBUG1: CXWindowsKeyState.cpp,208: 071 (00000000) up
    DEBUG1: CXWindowsKeyState.cpp,215: discard autorepeat for 113 due to -27 cancelling 2
    DEBUG1: CXWindowsKeyState.cpp,208: 071 (00000000) down
    DEBUG1: CXWindowsKeyState.cpp,215: discard autorepeat for 113 due to -27 cancelling 2

    Apparently the auto_repeats mask (11100101) is setup in such a fashion that the down key (00000010) and the left key (00010000) aren't allowed to auto repeat, or at least they aren't allowed to for synergy.

    I need some suggestions on how to proceed. I'd like to know where the auto_repeats value is controlled so that I can try to fix that. I know that it is retrieved via XGetKeyboardControl (as far as I can figure out at least) but I don't know what controls the value that XGetKeyboardControl returns. Does anyone have any suggestions?

    On a separate but possibly related note, in System Settings -> Keyboard & Mouse -> Keyboard, Enable keyboard repeat refuses to stay checked no matter how many times I set it and Apply or click on Defaults and Apply. What's the deal with that?

    #2
    Re: Issues with synergy and Kubuntu 8.10

    Hi dkpjunior,

    Thanks for sharing the information. I have similar setup and I'm facing exactly the same frustrating problem.

    --
    J-P Nurmi

    Comment

    Working...
    X