WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: x11vnc not acceptingkeyboard input for some characters  (Read 4325 times)

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
x11vnc not acceptingkeyboard input for some characters
« on: February 16, 2011, 08:24:14 AM »
Hi, I am using X11VNC and dropbear on my TC 3.5 machine and connecting from windows XP using VNC.

Once I connect, I can type all letters A-Z but only lowercase letters a-f in any of the TC "windows" programs i.e. . However, in a terminal windows I can type any characters.

If i open a remote terminal window using putty then all works ok.

For some reason all the TC "windows" programs do not recognize letters "g..z"

Anyone got similar issues?
« Last Edit: February 16, 2011, 08:49:36 AM by b1ackmai1er »

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #1 on: February 16, 2011, 08:48:21 AM »

Hi I tried running X11VNC with the -dk command and the debug output shows that the lowercase keys g-z are being received by X11VNC on the TC machine but they do not seem to get sent to the TC windows programs.

Debug output for pressing letter m which does not get displayed in the VNC window:

16/02/2011 21:32:51 modifier_tweak_keyboard: down keysym=0x6d
16/02/2011 21:32:51 tweak_mod: Start:  down=1 index=2 mod_state=0x0 is_shift=0
16/02/2011 21:32:51 XTestFakeKeyEvent(dpy, keycode=0x6c "Mode_switch", down)
16/02/2011 21:32:51 calling XTestFakeKeyEvent(108, 1)  720.9325
16/02/2011 21:32:51 tweak_mod: Finish: down=1 index=2 mod_state=0x0 is_shift=0
16/02/2011 21:32:51 modifier_tweak_keyboard: KeySym 0x6d "m" -> KeyCode 0x3a
16/02/2011 21:32:51 XTestFakeKeyEvent(dpy, keycode=0x3a "m", down)
16/02/2011 21:32:51 calling XTestFakeKeyEvent(58, 1)  720.9326
16/02/2011 21:32:51 tweak_mod: Start:  down=0 index=2 mod_state=0x0 is_shift=0
16/02/2011 21:32:51 XTestFakeKeyEvent(dpy, keycode=0x6c "Mode_switch", up)
16/02/2011 21:32:51 calling XTestFakeKeyEvent(108, 0)  720.9327
16/02/2011 21:32:51 tweak_mod: Finish: down=0 index=2 mod_state=0x0 is_shift=0
16/02/2011 21:32:51 # keyboard(up, 0x6d "m") uip=0  720.9720
16/02/2011 21:32:51 modifier_tweak_keyboard: up keysym=0x6d
16/02/2011 21:32:51 modifier_tweak_keyboard: KeySym 0x6d "m" -> KeyCode 0x3a
16/02/2011 21:32:51 XTestFakeKeyEvent(dpy, keycode=0x3a "m", up)
16/02/2011 21:32:51 calling XTestFakeKeyEvent(58, 0)  720.9722

Cheers


Offline krunge

  • Newbie
  • *
  • Posts: 3
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #2 on: February 19, 2011, 10:52:13 PM »
What version of x11vnc is it?  On older versions you may need to supply the "-xkb" option to use XKEYBOARD for keystroke insertion guessing.  Newer versions of x11vnc should adapt automatically... If it does not for you let me know.

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #3 on: February 20, 2011, 07:01:34 AM »

Hi, I am using the latest version from the repository - version 0.9.12. I believe all recent versions have -xkb on by default. I have tried this option as well as turning it off.

Thanks for your suggestion. Willing to try anything else you can suggest

Regards

Offline krunge

  • Newbie
  • *
  • Posts: 3
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #4 on: February 20, 2011, 02:03:18 PM »
OK.  That 'Mode_switch' looks really bad for typing an 'm' doesn't it...

Please try to restart as much as you can (X server, desktop) and then run with options "-xkb" and "-dk -dk" (twice) and collect the full output (-o log.txt is handy for this.) Then connect and type some characters that won't show up.  Then attach the full log to this thread or sent it to me some other way (PM, etc.) if you prefer.  You can annotate the log where the characters are not showing up.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #5 on: February 21, 2011, 09:29:55 AM »
OK.  That 'Mode_switch' looks really bad for typing an 'm' doesn't it...

Please try to restart as much as you can (X server, desktop) and then run with options "-xkb" and "-dk -dk" (twice) and collect the full output (-o log.txt is handy for this.) Then connect and type some characters that won't show up.  Then attach the full log to this thread or sent it to me some other way (PM, etc.) if you prefer.  You can annotate the log where the characters are not showing up.

I gave up on this version of vnc after spending many hours trying to get it to work. I now use x0vnc and although it's not perfect it's good enough for me.
big pc man

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #6 on: February 21, 2011, 10:32:14 AM »

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #7 on: February 21, 2011, 10:42:17 AM »
I use this extension quite a bit for vnc operations (I like the SSL features). I haven't seen this problem.

Edit:
This is the command that I use:
Code: [Select]
sudo x11vnc -norc -display WAIT:1024x768:0.0 -once -timeout 60 -unixpw tc -ssl TMP -sslnofail -nc -auth /home/tc/.Xauthority &
« Last Edit: February 21, 2011, 11:03:06 AM by robc »
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline walrus

  • Newbie
  • *
  • Posts: 1
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #8 on: March 24, 2011, 07:59:55 PM »
i had this problem. for me, it only happened in some windows, like the dillo or app browser. in aterm everything worked fine.

i fixed it by doing this:
http://www.tinycorelinux.com/faq.html#xmodmap
Code: [Select]
if the altgr symbols do not work in the browser or openoffice then modify the .xsession file by adding:

sleep 3 && xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &

Just before

exec "${DESKTOP:=jwm}"

Or, in later versions, right after waitforX.

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: x11vnc not acceptingkeyboard input for some characters
« Reply #9 on: March 26, 2011, 10:59:50 AM »
Thanks guys I will try both of these suggestions and report back.

Cheers