From ulrich.sibiller@gmail.com Tue Dec 16 10:40:27 2014 Received: (at 674) by bugs.x2go.org; 16 Dec 2014 09:40:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id F30D05DB1C for <674@bugs.x2go.org>; Tue, 16 Dec 2014 10:40:26 +0100 (CET) Received: by mail-la0-f51.google.com with SMTP id ms9so10908515lab.10 for <674@bugs.x2go.org>; Tue, 16 Dec 2014 01:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=u7N8pkXpuPti5W5Oi9yk9v5jl1oRu+wpayXAmAHGC70=; b=VqBIl8Lb+mbvhx7BxnWcyx5Tx0lo6DamzqJIoCivCM0wylZkxnjN4bNridTwjhm3uF 4EbzZAr4KlR9f0Z+9dSP7DAlZJQeDpnJZe1D9/aIfKlAtnNAP17LaOZ7vyz9yer+C/mc Pg8abw5Gix5b8DlJmSzVSVv7CciMpTwlHeEoShpKalSm9RbJq4DIFSxDyJiIFGz/XQJC BvpnRjEHxNBmbnJbsvy/grWlp23GuUC1IkHEvtK8huVp6XtYz9whxZrfbW+bTrCpikWk KqObHOdLoRqxY/97rKAJA31E4uuaIDqqWbH+4B45RYkOdJ9SswO7IS9M9xFrJZz2uCfG UPNQ== X-Received: by 10.112.172.194 with SMTP id be2mr7010280lbc.53.1418722826472; Tue, 16 Dec 2014 01:40:26 -0800 (PST) MIME-Version: 1.0 Sender: ulrich.sibiller@gmail.com Received: by 10.112.89.101 with HTTP; Tue, 16 Dec 2014 01:40:06 -0800 (PST) In-Reply-To: References: <54654F43.1020306@backsla.sh> <5483D272.8020008@backsla.sh> <548B8C0E.7020701@backsla.sh> From: Ulrich Sibiller Date: Tue, 16 Dec 2014 10:40:06 +0100 X-Google-Sender-Auth: tbj6HEausJvv-_yBfOZrhzXYo3E Message-ID: Subject: Fwd: [X2Go-Dev] Bug#674: Acknowledgement (keycode -> keycode translation harmful (makes configuration complex)) To: 674@bugs.x2go.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Dec 13, 2014 at 1:45 AM, Robert Siemer w= rote: > If the translation is on, you get a skewed setup. > > Note that the x2go (with the setting of =E2=80=9Cdo nothing=E2=80=9D) doe= s a non-perfect > copy with the same effect: if the translation is effective, the keyboard = is > skewed and you are force to load at least =E2=80=9Csomething=E2=80=9D to = fix XKB. If the > translation is off, you =E2=80=9Conly=E2=80=9D need to load XKB configura= tion if that > non-perfect copy annoys you... > Thanks for the pointer! I had a look at it. As I suspected: the translati= on > is =E2=80=9Cbad=E2=80=9D. Sometimes two different keycodes are translated= to the same > keycode. How are you supposed to tell them apart on the remote side? You > can=E2=80=99t. > >> It seems some kind of translation from evdev to pc105 is done. > > The naming is a little funny: the keycodes generated by the kernel before > evdev were not called like that, were they? I don't think so. >> Do we need to disable setting >> up the translation within the nx code to make that work? > > That would be great as a first step. I was wondering why this translations had been introduced. It emerged between nxagent 3.2.0-10 and 3.3.0-9. The changelog between these releases contains (among others) these changes: nxagent-3.3.0-9 - Changed Keyboard initialization and reset. This change should fix TR11F02129, TR11F02131, TR11F02132. nxagent-3.3.0-4 - Fix the XKB map load in the case of 64 bit server. nxagent-3.3.0-3 - Fixed TR10F02119. If the remote X display is using evdev keyboard then copy maps from remote. nxagent-3.2.0-12 - Fixed TR08E01814. Added shadow keymap initialization in order to enable nxcompshad to translate keycodes across different layouts. So it MIGHT have been introduced mainly for shadow sessions. The TR10F02119 refers to Ubuntu 8.10, which - according to some other posts I found - is the version that introduced evdev. So the fix that solved evdev problems is causing problems when evdev is enabled. I also looked at the source and found that clearing the property seems to be the only way to disable the translation. (apart from disabling XKB completely). Uli