You are not logged in.

#1 2011-12-10 14:35:39

graph
Member
Registered: 2010-12-21
Posts: 105

[SOLVED] x11vnc: Problem with arrow-keys/scrolling after VNC-session

Hello there.

I have successfully made a script to show my parents' desktop on my computer via x11vnc and a SSH-tunnel.

However, when I close the session my parents' computer, they are unable to scroll by continuously holding down the arrow key(s), e.g. in firefox or in a terminal. Instead the arrow keys will only scroll down a bit, and wait for next key-press. I have checked that they can scroll with the arrow-keys pre-VNC.

I'm using these switches with x11vnc:

x11vnc -localhost -display :0 -scale 3/4

This is slightly annoying, but I fail to see how to correct this "bug". Does anybody have any suggestions?

Last edited by graph (2011-12-11 11:17:21)

Offline

#2 2011-12-11 11:19:33

graph
Member
Registered: 2010-12-21
Posts: 105

Re: [SOLVED] x11vnc: Problem with arrow-keys/scrolling after VNC-session

I figured it out at last.

With a bit of help from this post, it turned out that I had to add the following to my script, to be run after the VNC-session has been terminated:

xset r

This will re-enable the repeating of keypresses.

Offline

#3 2011-12-12 04:09:50

krunge
Member
Registered: 2009-12-05
Posts: 10

Re: [SOLVED] x11vnc: Problem with arrow-keys/scrolling after VNC-session

Could you please run x11vnc with the '-o logfile.txt' option and reproduce the problem?  And then post it here?  I'd like to see if this is a bug in x11vnc or something else (I am the x11vnc author.) Thanks.

After you do that, a work around for you is to add the '-repeat' option to x11vnc, and then it won't mess with the autorepeat of the X server while VNC viewers are connected.  So you won't need to 'xset r on'. x11vnc will try to reset the autorepeat when it exits, so that is why I am interesting it isn't working for your usage.

http://www.karlrunge.com/x11vnc/x11vnc_ … t-norepeat

Offline

#4 2011-12-12 10:51:19

graph
Member
Registered: 2010-12-21
Posts: 105

Re: [SOLVED] x11vnc: Problem with arrow-keys/scrolling after VNC-session

Hey Karl.

My log is posted here: http://pastebin.com/kgrshwv5
I'm connecting through a SSH-tunnel on IPv4, hence the localhost IP and the "no ipv6-support"-errors. The x11vnc is run on a Ubuntu 11.10 (32-bit), and I am connecting with tightvnc (vncviewer) on arch-32.
The exact command I am using is

x11vnc -localhost -display :0 -scale 3/4

I tried the '-repeat' option which also fixes the problem. I actually read the man-page before asking, but I that found the description of the "-repeat"-option was not that detailed.

EDIT: Arrh, I missed this part of the man-page:

Default: -norepeat

Sorry about criticizing your man-page in that case.

Last edited by graph (2011-12-12 10:56:38)

Offline

Board footer

Powered by FluxBB