Skip to content

AltGr sending Control_L + Alt_L from client, on a Microsoft Azure VM #1856

Description

@MBD62

Describe the bug
It looks to me like the TigerVNC viewer sends something different when pressing AltGr than the RealVNC viewer does. (German keyboard)

To Reproduce
Steps to reproduce the behavior:
To reproduce this, a setup with an Azure Windows-VM used for accessing an Azure Linux-VM would be necessary. If trials need to be made, I'd of course be happy to assist but can't grant access to our VMs. The hope is that someone who understands the code, particularly around keyboard-mapping, can figure out what may be going wrong.

Expected behavior
Pressing Alt Gr would be recognized as "ISO_Level3_Shift"

Screenshots

Client (please complete the following information):

  • OS: Windows 11 Enterprise multi-session)
  • VNC client: TigerVNC
  • VNC client version: 1.14.0
  • Client downloaded from: sourceforge.net

Server (please complete the following information):

  • OS: AlmaLinux 9.1
  • VNC server: TigerVNC
  • VNC server version:1.13.1
  • Server downloaded from: AlmaLinux repository
  • Server was started using: Started at boot, after having executed systemctl enable vncserver@:77.service.

Additional context
As described in #1818 , typing in general started working when setting the keyboard to "German" instead of "Auto" in the Azure settings. However, anything involving Alt Gr still types nothing. A RealVNC viewer and a TightVNC viewer both work fine in the same setup.

Output of xev in the Linux-session and the Viewer log-file in Windows both agree with the fact that pressing Alt Gr sends Control_L + Alt_L (keycode 37 (keycode 37 (keysym 0xffe3, Control_L) and keycode 64 (keysym 0xffe9, Alt_L). Pressing the left Alt-key sends the same, just without the Control_L: keycode 64 (keysym 0xffe9, Alt_L) The keycode/keysym combos are the same in the Windows viewer logfile as are shown by xev. (suggesting that, for some reason, the viewer is sending the wrong thing?)

A current workaround is to use xmodmap -e "keycode 96 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift" , for example. On my keyboard I then hold down to type the characters requiring Alt Gr. When others use the same VM, who have perhaps Italian or French keyboards, it would have to be figured out what they may have for useable keys to apply xmodmap on so that is suboptimal.
I tried setting the server to use the rawkeyboard option but that does not change the behavior.

Another workaround, of course, could be to use one of the other viewers, but the combo Tiger server and Tiger viewer has its advantages.... Curiously enough, #1715 and #1751 both seem to describe the opposite problem, TigerVNC viewer working fine but other viewers failing.

Any ideas?

thx in advance + best regards / Mats

Metadata

Metadata

Assignees

No one assigned

    Labels

    notourbugThis issue needs to be resolved elsewhere

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions