-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TigerVNC-viewer on Azure Windows-VM doesn't send alphanumerics to the TigerVNC-server #1818
Comments
Since it is an Azure VM, I assume you are using RDP to reach it? Sounds like an issue with Microsoft's RDP server where it is not giving realistic keyboard events. I would suggest getting a debug log and seeing what that says: https://github.com/TigerVNC/tigervnc/wiki/Debug-Logs#client-1 |
Thanks CendioOssman:-) We access the Windows-VM with a browser, from there we start the viewer to the Linux-VM.
0xe7 is described like this by learn.microsoft.com: VK_PACKET 0xE7 Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP I can't make much of that, but it seems to confirm that what's being sent is not a proper keystroke, for all the keys that do not work. |
TIGERvncviewer.log I don't see that file recording any keystrokes, maybe that's because the keystrokes are successful with that viewer. The TigerVNC-viewer does accept my typing the password so the problem does not seem to start until the Linux-session is started, but the RealVNC-viewer connects to the same Linux-session. Any further ideas for troubleshooting would be most welcome. With the logfile data, I may have some further things to search on the net. Will also check settings with respect to Unicode, as that was mentioned in uSoft's help. |
Another observation from just now: A colleague was experimenting with the TightVNC-viewer: While not in full-screen mode, that viewer can happily type and behaves just like RealVNC. Switched to full-screen mode though, it behaves much like the TigerVNC-viewer, with the exception that it has been seen, on one occasion, produce the character "r" for any typed key on the keyboard. (other than that, same behavior as TigerVNC-viewer) |
Closing this, the solution was a keyboard layout-setting in the Azure web access client (https://client.wvd.microsoft.com/arm/webclient/index.html) Auto-selection does not work for the TigerVNC-viewer, it must be set to a specific keyboard layout. What I had missed initially, was that one must exit out of the web-session and back in again, for a change in settings to take effect. The three different viewers had different reactions to the layout-setting, pointing stronger towards something in Azure. Thanks for the help. |
Describe the bug
Is this an issue with TigerVNC, with Azure or the combination, I can't tell for sure but it looks like the combination. The currently applied workaround is to use the RealVNC-viewer instead, but the preference would be to use the TigerVNC-viewer due to its ease of display re-sizing.
When using the TigerVNC-viewer versions 1.12, 1.13 1 and 1.14, a VNC-session is unable to recognize typing of alphanumerics. Known <ctrl> +<someKey> combinations and <return> are recognized but not any "straight characters". Mouse-clicks and movements are also recognized, as are also the arrow-keys and copying/pasting text. Only typing fails. The server is TigerVNC version 1.12 on an AlmaLinux 9.1 VM in Azure. Running a viewer inside the Linux-VM is fine, as well as running a RealVNC-vewer from the Windows-VM, which seems to suggest that on the server-side things are OK. The Windows Firewall on the Windows-VM has been turned off, to no avail. (besides, some keystrokes do work, so it looks more like a keyboard-mapping issue than something being blocked from outside) This is a gnome X session, not Wayland. Btw, typing in the password in the dialog-box is, of course, not an issue. This suggests there is some subtlety with X11 keyboard-mapping. (and that mapping is presumably not yet in place when typing the password?)
Running xev in a terminal, to display keyboard-events, shows nothing when typing the character "c" but does show a response (ie something being sent from the viewer to the server) when typing <ctrl>+c.
Numerous web-searches have been attempted, not only by myself. This page, from about 20 years ago, describes identical behavior:
https://vnc-list.realvnc.narkive.com/FnbGlwJv/strange-vnc-keyboard-problem-only-alpha-keys-not-working. In that example, it was the same viewer that worked fine on some hardware but not on a specific computer.
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
Typing of any characters would be recognized.
Screenshots
Client (please complete the following information):
Server (please complete the following information):
Additional context
We're using TigerVNC viewer in hundreds of other setups from Windows to Linux without any issues, in the Azure-setup the RealVNC-viewer works but not TigerVNC. The issues is only present in the Azure-environment but does not affect the RealVNC-viewer.
The text was updated successfully, but these errors were encountered: