Ctrl Key not sent from Viewer to Server

3,439 views
Skip to first unread message

Mark Dlastname

unread,
Dec 8, 2016, 7:25:15 PM12/8/16
to TigerVNC User Discussion/Support
Hi,

I am using the 1.7.0 Viewer in -listen mode under Debian Jessie Linux

For Server I am using Ultra VNC Single Click under Windows.


All is working nicely, except that the Ctrl key does not seem to be being passed from Viewer to Server.

Examples:

Ctrl-c displays "c" rather than performing copy.
Ctrl-click items in a list does not select multiple items.

Other viewers seem to pass Ctrl properly.

Any suggestions of where to look would be much appreciated!

Thanks!
Mark

Pierre Ossman

unread,
Dec 9, 2016, 3:12:17 AM12/9/16
to Mark Dlastname, TigerVNC User Discussion/Support
Start the client with debug logging and you should be able to see what
it sends when you press the Ctrl key:

https://github.com/TigerVNC/tigervnc/wiki/Debug-Logs

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Mark Dlastname

unread,
Dec 10, 2016, 12:21:34 AM12/10/16
to TigerVNC User Discussion/Support, mar...@gmail.com
Thanks, Pierre.

Here is Ctrl-c then release of Ctrl

 Viewport:    Key pressed: 0x0036 => XK_c (0x0063)
 Viewport:    Key released: 0x0036 => XK_c (0x0063)
 Viewport:    Unexpected release of key code 37

It appears that viewer sees the release of Ctrl but not the press.

Do you have a suggestion on where I should look?

Thanks again,

Mark

Pierre Ossman

unread,
Dec 12, 2016, 6:59:43 AM12/12/16
to Mark Dlastname, TigerVNC User Discussion/Support
On 10/12/16 06:21, Mark Dlastname wrote:
> Thanks, Pierre.
>
> Here is Ctrl-c then release of Ctrl
>
> Viewport: Key pressed: 0x0036 => XK_c (0x0063)
> Viewport: Key released: 0x0036 => XK_c (0x0063)
> Viewport: Unexpected release of key code 37
>
> It appears that viewer sees the release of Ctrl but not the press.
>
> Do you have a suggestion on where I should look?
>

Well that's just weird. Any special software on this machine that might
grab Ctrl? E.g. some shortcut software?

Mark Dlastname

unread,
Dec 13, 2016, 11:40:26 AM12/13/16
to TigerVNC User Discussion/Support, mar...@gmail.com
I haven't been able to figure out anything that would be doing that.

Ctrl works locally OK.

The Alt-key is passed properly by the viewer.

I can run showkey in terminal and see 29 press and 29 release

Pierre Ossman

unread,
Dec 15, 2016, 9:12:29 AM12/15/16
to Mark Dlastname, TigerVNC User Discussion/Support
On 13/12/16 17:40, Mark Dlastname wrote:
> I haven't been able to figure out anything that would be doing that.
>
> Ctrl works locally OK.
>
> The Alt-key is passed properly by the viewer.
>

Could you try running xev:

$ xev -event keyboard

And see what it says when you press the Ctrl key.

Also try the right control key, in case that behaves differently.

Mark Dlastname

unread,
Dec 20, 2016, 11:41:35 AM12/20/16
to TigerVNC User Discussion/Support
Pierre, thanks so much for your help. This was a great clue and ctrl is now working properly with viewer.

I did much more digging and found that it is caused by a Gnome bug.

I am including the solution and bug info here for reference so that it might help someone else who is experiencing the same problem.

Solution: Using GNOME tweak tool; under Keyboard & Mouse make sure "Show location of pointer" is disabled.


Thanks again!!
Mark

Scott Leblanc

unread,
7:06 AM (8 hours ago) 7:06 AM
to TigerVNC User Discussion/Support
Thank you for this solution, I've been having a similar problem for some time now and this suggestion resolved my issue. I did not realize how much I relied on this function until it was not working properly.

Thanks, Pierre and Mark for this insight.
Thank you,
Scott
Reply all
Reply to author
Forward
0 new messages