VNC / RDP keyboard language problem

All about WTware on Raspberry. WTware works with Raspberry Pi 4, Raspberry Pi 3B+, Pi 3 and Pi 2 devices
http://www.winterminal.com
Post Reply
infopovo
Posts: 6
Joined: Fri Mar 31, 2017 5:05 pm

VNC / RDP keyboard language problem

Post by infopovo »

Hello

We are using wtware on a Raspberry Pi 3 as a RDP client to a Windows 2008 R2 server
The keyboard is set in french for RDP (keyboard=fr) and VNC (language=fr)
The french AZERTY keyboard works well on the local raspberry RDP session,
but it's in QWERTY when we type through a tightvnc client from a remote station.
Could you help us ?
The log is attached.

Regards
Attachments
log.txt
(24.74 KiB) Downloaded 616 times
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: VNC / RDP keyboard language problem

Post by aka »

In RDP, client sends hardware scan code of key. "Right top key" but neither Q nor A. And client sends keyboard layout code (wtware uses keyboard= option to know keyboard layout code). RDP server converts hardware scan codes to character.

In VNC, it's not clear who should make conversion. Different clients have different behavior and vnc standart does not define right behavior. With our russian keyboard it does not work sometimes. Client sends "keysym", strange thing comes from unix X Window. WTware converts strange thing with strange rule. I'm amazed you get QWERTY but not galimatias.

If you really want to debug this, I can add more debugging code to dump keys that come from VNC client and trace conversion. But first of all I will ask you to install couple of another VNC clients and test with them.
infopovo
Posts: 6
Joined: Fri Mar 31, 2017 5:05 pm

Re: VNC / RDP keyboard language problem

Post by infopovo »

I tested with several clients : tightvnc, realvnc, ultravnc and tigervnc; all are using the qwerty keyboard.
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: VNC / RDP keyboard language problem

Post by akatik »

Great. Please, download and run this:
http://pxe.ru/files/testing/201704050300.zip
Add to the config file:

Code: Select all

keyboard_log = on
Boot.
Connect from VNC client.
Start logging in wtware configurator.
Press wrong key and show me, which line wtware adds to log.
infopovo
Posts: 6
Joined: Fri Mar 31, 2017 5:05 pm

Re: VNC / RDP keyboard language problem

Post by infopovo »

Configuration:

| [BOM]
| server=172.16.100.11
| domain=domain
| rdpcompression=on
| disk=usb
| keyboard=fr
| language=fr
| vnc=on
| vnc_password=12345
| keyboard_log=on
| connection
\----------------------------------------------------

Log:

[ KERNEL] [ 17.074302] random: crng init done
[ gm] [ 29.517446] [VNC] Connection from 172.16.7.203.
[ gm] [ 29.518316] [VNC] Client VNC version 8 (RFB 003.008).
[ gm] [ 32.097361] [VNC] Password ok.
[ gm] [ 32.149823] [VNC] 11 encodings.
[ gm] [ 32.149907] [VNC] Encoding 7.
[ gm] [ 32.149980] [VNC] Encoding 1.
[ gm] [ 32.150080] [VNC] Encoding 16.
[ gm] [ 32.150154] [VNC] Encoding 5.
[ gm] [ 32.150225] [VNC] Encoding 2.
[ gm] [ 32.150297] [VNC] Encoding 0.
[ gm] [ 32.150368] [VNC] Encoding -26.
[ gm] [ 32.150439] [VNC] Encoding -223.
[ gm] [ 32.150511] [VNC] Encoding -224.
[ gm] [ 32.150582] [VNC] Encoding -232.
[ gm] [ 32.150653] [VNC] Encoding -239.
[ gm] [ 32.173569] [VNC] bits-per-pixel 32, depth 24, big-endian false, true-colour true.
[ gm] [ 32.173653] [VNC] red-max 0x00ff, green-max 0x00ff, blue-max 0x00ff.
[ gm] [ 32.173726] [VNC] red-shift 16, green-shift 8, blue-shift 0.
[ gm] [ 32.173799] [VNC] 16-bit server, 32-bit client.
[ gm] [ 34.492866] VNC keysym 0x61 translated to 'KEY_A'. Key pressed.
[ gm] [ 34.564951] VNC keysym 0x61 translated to 'KEY_A'. Key released.
[ gm] [ 35.644949] VNC keysym 0x61 translated to 'KEY_A'. Key pressed.
[ gm] [ 35.724924] VNC keysym 0x61 translated to 'KEY_A'. Key released.
[ gm] [ 35.885200] VNC keysym 0x61 translated to 'KEY_A'. Key pressed.
[ gm] [ 35.956956] VNC keysym 0x61 translated to 'KEY_A'. Key released.
[ gm] [ 36.116961] VNC keysym 0x61 translated to 'KEY_A'. Key pressed.
[ gm] [ 36.197626] VNC keysym 0x61 translated to 'KEY_A'. Key released.
[ gm] [ 36.396859] VNC keysym 0x61 translated to 'KEY_A'. Key pressed.
[ gm] [ 36.485000] VNC keysym 0x61 translated to 'KEY_A'. Key released.


I typed 5 times on the "a" key, it writes "q" on the rdp client.
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: VNC / RDP keyboard language problem

Post by aka »

infopovo
Posts: 6
Joined: Fri Mar 31, 2017 5:05 pm

Re: VNC / RDP keyboard language problem

Post by infopovo »

Hello, this build works well with a french keyboard and the flat keys,
however I can't type the alternate keys with "AltGr" pressed
I need for instance the "@" or "\" symbols to log to a domain (it types "à" and "_" instead), they are located on the "0" and "8" on my keyboard

here is what is logged when I type "AltGr"+"0" and "AltGr"+"8":


[ rdpclient 692] [ 373.418976] TCP: connecting to 172.16.100.11:3389.
[ rdpclient 692] [ 373.420348] TCP: connection with 172.16.100.11:3389 established.
[ rdpclient 692] [ 373.420478] Turn keepalive on.
[ rdpclient 692] [ 373.420556] Free ram after buffers allocation: 925520 KB.
[ rdpclient 692] [ 373.423709] Process RDP server certificate.
[ rdpclient 692] [ 373.423799] RDP5 encryption (X.509).
[ gm] [ 391.231756] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.231986] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.232067] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.232143] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.743489] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.743599] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.743678] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.743752] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.774397] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.774486] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.774563] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.774714] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.805573] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.805686] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.805766] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.805840] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.836768] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.836883] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.836962] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.837036] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.867974] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.868064] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.868167] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.868241] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.899176] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.899290] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.899369] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.899444] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.930390] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.930506] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.930586] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.930661] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.961661] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.961788] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.961866] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.961940] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 391.992724] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 391.992812] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 391.992952] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 391.993029] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.039643] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.039729] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.039880] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.039957] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.070830] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.070917] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.071057] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.071134] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.102173] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.102261] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.102400] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.102476] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.133088] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.133177] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.133365] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.133467] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.164513] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.164602] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.164743] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.164819] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.195530] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.195658] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.195783] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.195896] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.227315] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.227430] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.227860] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.227965] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.258460] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.258546] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.258686] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.258763] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.304724] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.304812] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.304941] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.305016] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.336145] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.336258] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.336571] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.336675] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.367131] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.367218] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.367397] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.367499] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.398405] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.398493] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.398639] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.398715] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.429527] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.429613] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.429755] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.429832] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.460718] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.460806] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.460935] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.461011] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.491916] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.492003] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.492132] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.492208] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.523109] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.523196] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.523334] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.523410] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.554324] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.554410] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.554541] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.554617] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.572732] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.572820] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key released.
[ gm] [ 392.572926] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.573020] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key released.
[ gm] [ 392.573124] [VNC] Unicode 0x40 (64) => WT_KEY_0.
[ gm] [ 392.573198] [VNC] Keysym 0x40 translated to 'KEY_0'. Key pressed.
[ gm] [ 392.573359] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.573462] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.573563] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.573717] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.684720] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.684886] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key released.
[ gm] [ 392.684968] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.685068] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key released.
[ gm] [ 392.685165] [VNC] Unicode 0x40 (64) => WT_KEY_0.
[ gm] [ 392.685240] [VNC] Keysym 0x40 translated to 'KEY_0'. Key released.
[ gm] [ 392.685408] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.685511] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 392.685612] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.685770] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 392.764688] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 392.764777] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key released.
[ gm] [ 392.764918] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 392.764995] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key released.
[ gm] [ 393.428804] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 393.428928] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 393.429007] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 393.429106] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 393.929354] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 393.929477] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 393.929570] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 393.929671] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 393.976274] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 393.976392] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 393.976472] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 393.976570] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.007183] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.007294] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.007373] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.007449] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.038641] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.038752] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.038832] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.038935] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.069561] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.069675] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.069755] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.069829] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.100892] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.101006] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.101085] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.101183] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.131972] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.132106] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.132187] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.132287] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.163873] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.163962] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.164339] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.164418] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.194386] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.194473] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.194654] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.194761] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.225807] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.225893] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.226035] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.226111] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.272227] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.272315] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.272445] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.272520] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.303514] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.303641] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.303744] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.303853] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.334733] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.334818] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.334961] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.335037] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.366013] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.366161] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.366267] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.366366] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.372705] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.372858] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key released.
[ gm] [ 394.372939] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.373038] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key released.
[ gm] [ 394.373114] [VNC] Unicode 0x5c (92) => WT_KEY_8.
[ gm] [ 394.373189] [VNC] Keysym 0x5c translated to 'KEY_8'. Key pressed.
[ gm] [ 394.373346] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.373467] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.373544] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.373695] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.484673] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.484848] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key released.
[ gm] [ 394.484932] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.485033] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key released.
[ gm] [ 394.485110] [VNC] Unicode 0x5c (92) => WT_KEY_8.
[ gm] [ 394.485184] [VNC] Keysym 0x5c translated to 'KEY_8'. Key released.
[ gm] [ 394.485350] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.485476] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key pressed.
[ gm] [ 394.485553] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.485734] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key pressed.
[ gm] [ 394.556678] [VNC] Keysym 0xffe3 => WT_KEY_L_CTRL.
[ gm] [ 394.556767] [VNC] Keysym 0xffe3 translated to 'KEY_LEFTCTRL'. Key released.
[ gm] [ 394.556898] [VNC] Keysym 0xffea => WT_KEY_R_ALT.
[ gm] [ 394.556975] [VNC] Keysym 0xffea translated to 'KEY_RIGHTALT'. Key released.
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: VNC / RDP keyboard language problem

Post by akatik »

All these keys were logged when you just type "AltGr"+"0" and "AltGr"+"8"? Please, try another vnc client that will not flood log with L_CTRL and R_ALT.
In this log, right Alt (AltGr is right Alt, right?) was released just before WT_KEY_0 pressed, so I see no way to translate it to AltGr+0.
infopovo
Posts: 6
Joined: Fri Mar 31, 2017 5:05 pm

Re: VNC / RDP keyboard language problem

Post by infopovo »

AltGr is the right Alt on my keyboard, Windows interprets it like "Ctrl"+"Alt",
I tried with Tigervnc instead of Tightvnc, it works when I press "Ctrl"+"Alt+"0" but not with "AltGr"+"0", it spams "pressed pressed..."
do you think there is a problem with the tight VNC clients ?
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: VNC / RDP keyboard language problem

Post by akatik »

infopovo wrote:Windows interprets it like "Ctrl"+"Alt",
I need more words. What do you mean by "Windows interprets"?
With our russian keyboard, AltGr is not used, so i know nothing about AltGr behaviour and interpretation. Please write me more information.
infopovo wrote:do you think there is a problem with the tight VNC clients ?
Install VNC server on Windows machine.
Run another (if use tightvnc server - use tigervnc client, or realvnc client, but not tightvnc) VNC client on another Windows machine.
Connect vnc client with vnc server.
Will AltGr-0 work as expected?
Run mstsc.exe in VNC session.
Connect to RDP server in VNC session.
Will AltGr-0 work as expected in RDP session inside VNC session?
infopovo
Posts: 6
Joined: Fri Mar 31, 2017 5:05 pm

Re: VNC / RDP keyboard language problem

Post by infopovo »

https://en.wikipedia.org/wiki/AltGr_key ... substitute

We use extensively tightvnc clients (on windows) to connect to Windows PCs with tightvnc servers and RDP clients.
All keys and combinations ("AltGr"+"0" and others) work well since always.

After some tests with a debian distro and various builds of vnc servers and rdp clients like rdesktop, freerdp
I get the same problems as with wtware (keyboard in english and no combinations)
so it seems that linux builds have issues with non-english keyboards

TigerVNC ("Ctrl"+"Alt"+"0") with wtware seems to work so we will use it that way
Thanks for your help
Post Reply