Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VNC/x11vnc repeats charactors input
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Mon Mar 22, 2010 1:56 pm    Post subject: VNC/x11vnc repeats charactors input Reply with quote

I use vnc viewer 4 to connect to remote gnome desktop, but some times there's a problem pulsed me.

Sometimes when I input a charactor, it auto repeat the input with out stop, even I press the esc key, I can't stop it.

Did some one ever encountered the same problem? I don't know how to fix it.
Back to top
View user's profile Send private message
papahuhn
l33t
l33t


Joined: 06 Sep 2004
Posts: 626

PostPosted: Mon Mar 22, 2010 2:08 pm    Post subject: Reply with quote

This may occur when vnc has missed the keyrelease event. What happens if you press the said key again and release it then?
_________________
Death by snoo-snoo!
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Tue Mar 23, 2010 1:39 am    Post subject: Reply with quote

It do nothing when press the said key again.

I tried to disable the key repeat option in gnome-keyboard-properity. I don't know if this can resolve the problem.
Back to top
View user's profile Send private message
krunge
n00b
n00b


Joined: 04 May 2005
Posts: 9

PostPosted: Sun Apr 04, 2010 1:11 pm    Post subject: Reply with quote

Are you seeing this problem?

http://ubuntuforums.org/showthread.php?t=1125694

There are a number of workarounds discussed there.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9898
Location: almost Mile High in the USA

PostPosted: Mon Apr 05, 2010 10:36 pm    Post subject: Reply with quote

I've seen this happen before and had to basically restart the remote X server because I have no access to the remote console to hit the offending key.

The suggestions posted on the x11vnc site:
Code:
   x11vnc -R clear_mods
   x11vnc -R clear_keys
   x11vnc -R clear_locks
   x11vnc -R clear_all

don't always work.

Not sure if there's a way to actually tell the remote X server that "all buttons are currently released" or something... or perhaps something that can be fed into /dev/input... hmm...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
krunge
n00b
n00b


Joined: 04 May 2005
Posts: 9

PostPosted: Wed Apr 07, 2010 1:55 pm    Post subject: Reply with quote

So running x11vnc with the '-repeat' option from the start didn't avoid the key-repeating problem?

BTW, which version of x11vnc are you running? It tries to automatically work around in this problem in version 0.9.8 and later.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9898
Location: almost Mile High in the USA

PostPosted: Wed Apr 07, 2010 2:47 pm    Post subject: Reply with quote

Looks like x11-misc/x11vnc-0.9.6 is the stable version in portage, perhaps a later version needs to be stabilized?
weird, thought earlier versions including 0.9.6 tries to disable key repeat, must be a different issue worked around...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
krunge
n00b
n00b


Joined: 04 May 2005
Posts: 9

PostPosted: Fri Apr 09, 2010 8:11 pm    Post subject: Reply with quote

eccerr0r wrote:
Looks like x11-misc/x11vnc-0.9.6 is the stable version in portage, perhaps a later version needs to be stabilized?
weird, thought earlier versions including 0.9.6 tries to disable key repeat, must be a different issue worked around...

Yes, for a very long time x11vnc's default has been to disable key-repeating in the X server when VNC viewers are connected.

The problem here is different. After 5 minutes of idle keyboard activity from the VNC viewer, x11vnc will re-enable keyrepeating in the X server, and then deactivates keyrepeating when the Viewer starts typing again. This has worked fine for years, but now there is a bug in GNOME (I think a11y) if x11vnc deactivates keyrepeating with any key down GNOME somehow makes the key repeat forever. Evidently with KDE the problem doesn't appear.

So it is x11vnc 0.9.8 and later that try to work around this GNOME bug. All it does is make sure all of the keys are up before deactivating keyrepeat.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum