LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   TightVNC problem with only one key (letter) (https://www.linuxquestions.org/questions/mandriva-30/tightvnc-problem-with-only-one-key-letter-648759/)

make 06-12-2008 04:49 AM

TightVNC problem with only one key (letter)
 
Mandriva 2008.1, while being an excellent release, introduced a new problem I've never seen before. The server PC has Mandriva 2008.1, client PC's have various different Linux distros and/or OS X.

VNC works otherwise perfectly, as expected, but one single key, the "m" letter has to be repeated everytime 2 times, so that VNC will actually accept the input.

Example: Let's try some foolish text that has M letters:

Code:

Mike's mother has a cat saying meow.
I just tried it and had to enter it like this to get the wanted text:

Code:

MMike's mmother has a cat saying mmeow.
Naturally, at first I suspected the M letter from the keyboard is broken. But after connecting the same PC from many different computers with different VNC client programs and versions, I came to the conclusion the problem can be nowhere else than in the server PC's (Mandriva 2008.1) tightvnc-server or configuration.

I have the Finnish keyboard layout at both ends. Environment variables seem to have no encodings set. Isn't this a totally weird problem?

KenJackson 06-14-2008 02:34 PM

If you have a file, ~/.inputrc, try renaming it to see if the problem goes away. You may have to start a new Xterm or logout/login.

If that's not it, maybe try this command to see if /etc/inputrc has been modified:
rpm -V setup

Those are the only two files I know of that might possibly do something like that.

make 06-16-2008 12:26 AM

Thanks for the tip. I restored /etc/inputrc (no .inputrc in my home folders) from the original packages. However, the MD5 sum was the same with my existing file, so it seems it hasn't been modified in any way.

Nevertheless, I still copied the file from the original package over my /etc/inputrc at both the client and the server PC and rebooted both. No luck, I still have to hit the "m" key twice to be able to enter it. :(

dnoyeb 07-07-2008 12:49 PM

Any success on this issue? I am having the same problem. I have to hit the m key twice. Also, key repeating does not work for any key, except the 'm' key.

Its very odd.

KenJackson 07-07-2008 07:38 PM

Another thing you could try to scavenge for ideas is:
grep keycodes /etc/sysctl.conf

I got that idea by looking at /bin/setupcon, which is called from /etc/init.d/keyboard-setup.


Also, you never said if you are using a laptop or a desktop system. The script /etc/init.d/hotkey-setup seems to behave differently depending on what computer you have and if it's a laptop.

dnoyeb 07-09-2008 09:33 AM

I am connecting from a desktop when at home and from a laptop from work. Both behave the same.

I did have to do some funky stuff when I first installed TightVNC to even get it to work in the first place. Wish I could remember what that was. Anyway, I can't understand having a problem with just the 'm' key unless VNC is accepting as if its 'shift' or some other key like a combo key or something. But then I would expect it not to 'repeat' properly. But its the only repeating key.

make 07-21-2008 01:47 AM

Quote:

Originally Posted by KenJackson (Post 3207165)
grep keycodes /etc/sysctl.conf

Also, you never said if you are using a laptop or a desktop system.

/etc/init.d/hotkey-setup

All PC's are desktops.

grep returns no matches for string "keycodes" from /etc/sysctl.conf.

I have no "hotkey-setup" script in my /etc/init.d.

The problem still remains and I have absolutely no ideas how to fix it. Thanks for the help anyway, appreciated.

dnoyeb 07-21-2008 08:39 PM

is your repeat broken on all but the m key like mine?

can you show your modules so we can compare

[carl@erasmus ~]$ rpm -qa --last | head -75
tightvnc-server-1.3.9-12mdv2008.1 Mon 07 Jul 2008 02:16:55 PM EDT
x11-server-xvnc-1.4.0.90-13.2mdv2008.1 Mon 07 Jul 2008 02:16:54 PM EDT
kdegraphics-common-3.5.9-8.1mdv2008.1 Mon 07 Jul 2008 01:36:23 PM EDT
libxine1-1.1.11.1-4.1mdv2008.1 Mon 07 Jul 2008 01:36:15 PM EDT
kdebase-kmenuedit-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:36:14 PM EDT
kdebase-kdm-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:36:13 PM EDT
beagle-0.3.3-6.1mdv2008.1 Mon 07 Jul 2008 01:36:12 PM EDT
libkdebase4-kmenuedit-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:36:11 PM EDT
kdebase-kate-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:28 PM EDT
kdebase-nsplugins-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:27 PM EDT
kdebase-konsole-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:23 PM EDT
harddrake-10.29.7-1.1mdv2008.1 Mon 07 Jul 2008 01:35:22 PM EDT
harddrake-ui-10.29.7-1.1mdv2008.1 Mon 07 Jul 2008 01:35:20 PM EDT
drakxtools-10.29.7-1.1mdv2008.1 Mon 07 Jul 2008 01:35:19 PM EDT
drakxtools-curses-10.29.7-1.1mdv2008.1 Mon 07 Jul 2008 01:35:17 PM EDT
drakxtools-backend-10.29.7-1.1mdv2008.1 Mon 07 Jul 2008 01:35:16 PM EDT
libkdebase4-konsole-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:15 PM EDT
kdebase-progs-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:11 PM EDT
kdebase-ksysguard-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:09 PM EDT
kdebase-common-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:35:00 PM EDT
libkdebase4-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:34:49 PM EDT
libkdebase4-kate-3.5.9-37.2mdv2008.1 Mon 07 Jul 2008 01:34:47 PM EDT
timezone-2008c-1.5mdv2008.1 Mon 07 Jul 2008 01:27:02 PM EDT
initscripts-8.63-9.1mdv2008.1 Mon 07 Jul 2008 01:26:56 PM EDT
timezone-java-2008c-1.5mdv2008.1 Mon 07 Jul 2008 01:26:54 PM EDT
libexiv2_2-0.16-3.1mdv2008.1 Mon 07 Jul 2008 01:24:46 PM EDT

make 07-22-2008 02:46 AM

Quote:

Originally Posted by dnoyeb (Post 3222120)
is your repeat broken on all but the m key like mine?

can you show your modules so we can compare

For me the repeat works for every key, like usual.

Here's the output:

Code:

$ rpm -qa --last | head -75
wine-1.1.1-1mdv2008.1                        ti 22. heinäkuuta 2008 10:30:43
libwine1-1.1.1-1mdv2008.1                    ti 22. heinäkuuta 2008 10:30:41
x11-driver-video-openchrome-0.2.902-1mdv2008.1 ti 22. heinäkuuta 2008 10:29:45
x11-driver-video-r128-6.8.0-4mdv2008.1        ti 22. heinäkuuta 2008 10:29:44
x11-driver-video-mach64-6.8.0-2mdv2008.1      ti 22. heinäkuuta 2008 10:29:43
x11-driver-video-ati-6.9.0-2mdv2008.1        ti 22. heinäkuuta 2008 10:29:43
k3b-1.0.5-1mdv2008.1                          ti 22. heinäkuuta 2008 10:29:40
ntfs-3g-1.2712-1mdv2008.1                    ti 22. heinäkuuta 2008 10:29:39
x11-driver-video-intel-2.3.2-1mdv2008.1      ti 22. heinäkuuta 2008 10:29:38
libk3b3-1.0.5-1mdv2008.1                      ti 22. heinäkuuta 2008 10:29:38
mandriva-kdm-config-2008.1-32mdv2008.1        ti 22. heinäkuuta 2008 10:28:21
free-kde-config-2008.1-32mdv2008.1            ti 22. heinäkuuta 2008 10:28:20
pidgin-2.4.3-1mdv2008.1                      ti 22. heinäkuuta 2008 10:28:15
pidgin-i18n-2.4.3-1mdv2008.1                  ti 22. heinäkuuta 2008 10:28:14
libpurple0-2.4.3-1mdv2008.1                  ti 22. heinäkuuta 2008 10:28:13
mandriva-kde-config-common-2008.1-32mdv2008.1 ti 22. heinäkuuta 2008 10:28:12
pidgin-plugins-2.4.3-1mdv2008.1              ti 22. heinäkuuta 2008 10:28:11
totem-common-2.22.0-4.3mdv2008.1              ti 22. heinäkuuta 2008 10:27:04
totem-gstreamer-2.22.0-4.3mdv2008.1          ti 22. heinäkuuta 2008 10:27:02
libmysql15-5.0.51a-8.1mdv2008.1              ti 22. heinäkuuta 2008 10:27:01
timezone-java-2008d-1.1mdv2008.1              ti 22. heinäkuuta 2008 10:27:00
timezone-2008d-1.1mdv2008.1                  ti 22. heinäkuuta 2008 10:26:58
gnome-python-extras-2.19.1-10.3mdv2008.1      ti 22. heinäkuuta 2008 10:26:56
x11-server-xvnc-1.4.0.90-14mdv2008.1          ti 22. heinäkuuta 2008 10:26:55
x11-server-xorg-1.4.0.90-14mdv2008.1          ti 22. heinäkuuta 2008 10:26:55
x11-server-common-1.4.0.90-14mdv2008.1        ti 22. heinäkuuta 2008 10:26:54
libpoppler-glib2-0.6.4-2.1mdv2008.1          ti 22. heinäkuuta 2008 09:42:56
myspell-en_US-1.0.2-19.2mdv2008.1            ti 22. heinäkuuta 2008 09:42:55
myspell-en_GB-1.0.2-19.2mdv2008.1            ti 22. heinäkuuta 2008 09:42:55
myspell-fi_FI-1.0.2-19.2mdv2008.1            ti 22. heinäkuuta 2008 09:42:53
libpoppler-qt2-0.6.4-2.1mdv2008.1            ti 22. heinäkuuta 2008 09:42:53
poppler-0.6.4-2.1mdv2008.1                    ti 22. heinäkuuta 2008 09:42:52
libpoppler2-0.6.4-2.1mdv2008.1                ti 22. heinäkuuta 2008 09:42:52
libpcre0-7.6-2.1mdv2008.1                    ti 22. heinäkuuta 2008 09:42:52
openoffice.org-openclipart-2.4.1.5-2.3mdv2008.1 ti 22. heinäkuuta 2008 09:42:18
libbluez2-3.28-1.1mdv2008.1                  ti 22. heinäkuuta 2008 09:42:15
openoffice.org-writer-2.4.1.5-2.3mdv2008.1    ti 22. heinäkuuta 2008 09:42:14
openoffice.org-kde-2.4.1.5-2.3mdv2008.1      ti 22. heinäkuuta 2008 09:42:12
openoffice.org-impress-2.4.1.5-2.3mdv2008.1  ti 22. heinäkuuta 2008 09:42:11
openoffice.org-filter-binfilter-2.4.1.5-2.3mdv2008.1 ti 22. heinäkuuta 2008 09:42:10
ruby-1.8.6-9p114.1mdv2008.1                  ti 22. heinäkuuta 2008 09:42:06
openoffice.org-draw-2.4.1.5-2.3mdv2008.1      ti 22. heinäkuuta 2008 09:42:04
openoffice.org-style-andromeda-2.4.1.5-2.3mdv2008.1 ti 22. heinäkuuta 2008 09:40:08
openoffice.org-calc-2.4.1.5-2.3mdv2008.1      ti 22. heinäkuuta 2008 09:40:06
openoffice.org-style-crystal-2.4.1.5-2.3mdv2008.1 ti 22. heinäkuuta 2008 09:40:05
openoffice.org-common-2.4.1.5-2.3mdv2008.1    ti 22. heinäkuuta 2008 09:39:51
openldap-clients-2.4.11-1mdv2008.1            ti 22. heinäkuuta 2008 09:39:46
openldap-2.4.11-1mdv2008.1                    ti 22. heinäkuuta 2008 09:39:46
openoffice.org-core-2.4.1.5-2.3mdv2008.1      ti 22. heinäkuuta 2008 09:39:43
libldap2.4_2-2.4.11-1mdv2008.1                ti 22. heinäkuuta 2008 09:39:31
resmgr-1.0-8mdv2008.1                        ti 22. heinäkuuta 2008 09:39:30
jwio-data-hpt-3.2-2107ak                      ti 22. heinäkuuta 2008 08:14:03
mozilla-thunderbird-fi-2.0.0.14-1mdv2008.1    ma 21. heinäkuuta 2008 14:43:57
jwio-3.2-2107ak                              ma 21. heinäkuuta 2008 10:35:52
cinelerra-2.1-1.svn1046.2plf2008.1            ma 14. heinäkuuta 2008 18:09:16
locales-fi-2.7-3.1mdv2008.1                  to  3. heinäkuuta 2008 15:17:29
locales-en-2.7-3.1mdv2008.1                  to  3. heinäkuuta 2008 15:17:28
locales-2.7-3.1mdv2008.1                      to  3. heinäkuuta 2008 15:17:27
vlc-plugin-pulse-0.8.6h-1plf2008.1            to  3. heinäkuuta 2008 15:13:53
vlc-plugin-ogg-0.8.6h-1plf2008.1              to  3. heinäkuuta 2008 15:13:53
vlc-plugin-a52-0.8.6h-1plf2008.1              to  3. heinäkuuta 2008 15:13:53
vlc-0.8.6h-1plf2008.1                        to  3. heinäkuuta 2008 15:13:50
libxvid4-1.1.3-2plf2008.1                    to  3. heinäkuuta 2008 15:13:28
rsync-3.0.3-1mdv2008.1                        to  3. heinäkuuta 2008 15:13:25
libvlc0-0.8.6h-1plf2008.1                    to  3. heinäkuuta 2008 15:13:25
gimp-2.4.6-1mdv2008.1                        to  3. heinäkuuta 2008 15:12:49
hdparm-8.8-1mdv2008.1                        to  3. heinäkuuta 2008 15:12:48
firefox-fi-3.0-1mdv2008.1                    to  3. heinäkuuta 2008 15:12:48
libgimp2.0_0-2.4.6-1mdv2008.1                to  3. heinäkuuta 2008 15:12:47
bind-utils-9.5.0-3mdv2008.1                  to  3. heinäkuuta 2008 15:12:20
draksnapshot-0.11-1mdv2008.1                  to  3. heinäkuuta 2008 15:12:19
firefox-3.0-3mdv2008.1                        to  3. heinäkuuta 2008 15:10:05
mozilla-thunderbird-2.0.0.14-2mdv2008.1      to  3. heinäkuuta 2008 15:10:01
libfirefox3-3.0-3mdv2008.1                    to  3. heinäkuuta 2008 15:09:56
kdegraphics-common-3.5.9-8.1mdv2008.1        to  3. heinäkuuta 2008 15:09:53


majkelm 07-24-2008 04:57 PM

Quote:

Originally Posted by make (Post 3222298)
For me the repeat works for every key, like usual.

Hello all
I have the same issue
I'm connecting from Windows to Mandriva (XP->2008.1)
Tomorrow I try all suggestions from this topic, and I wiil write back the results.

majkelm

majkelm 07-31-2008 05:14 PM

Quote:

Originally Posted by majkelm (Post 3225412)
Hello all
I have the same issue
I'm connecting from Windows to Mandriva (XP->2008.1)
Tomorrow I try all suggestions from this topic, and I wiil write back the results.

majkelm

nothing, even on another fresh mandriva 2008.1

any ideas ?

aRTee 08-21-2008 07:12 AM

weird, here too
 
This bug is bugging e too.

s/e/me/
;)

System: tightvnc-server on Mandriva 2008.1, x86-64, via java viewer or regular vncviewer, from other Linux systems or windows.

I had a look with xev (showing which events get through), here's what I got for typing the following keys: " m m k k "
(k just for comparison purposes, but space does the same)

Code:

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345448992, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345449142, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345453022, (-552,630), root:(39,658),
    state 0x0, keycode 58 (keysym 0x6d, m), same_screen YES,
    XLookupString gives 1 bytes: (6d) "m"
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345454967, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345455094, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345458327, (-552,630), root:(39,658),
    state 0x0, keycode 58 (keysym 0x6d, m), same_screen YES,
    XLookupString gives 1 bytes: (6d) "m"
    XmbLookupString gives 1 bytes: (6d) "m"
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345461079, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345461207, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345463120, (-552,630), root:(39,658),
    state 0x0, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XmbLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345463190, (-552,630), root:(39,658),
    state 0x0, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345465495, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345465639, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345467703, (-552,630), root:(39,658),
    state 0x0, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XmbLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345467807, (-552,630), root:(39,658),
    state 0x0, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345471231, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345471318, (-552,630), root:(39,658),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

So a single keypress 'k' gives these x-events:
Code:

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345467703, (-552,630), root:(39,658),
    state 0x0, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XmbLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345467807, (-552,630), root:(39,658),
    state 0x0, keycode 45 (keysym 0x6b, k), same_screen YES,
    XLookupString gives 1 bytes: (6b) "k"
    XFilterEvent returns: False

Whereas a single keypress 'm' will give either:
Code:

KeyPress event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345458327, (-552,630), root:(39,658),
    state 0x0, keycode 58 (keysym 0x6d, m), same_screen YES,
    XLookupString gives 1 bytes: (6d) "m"
    XmbLookupString gives 1 bytes: (6d) "m"
    XFilterEvent returns: False

or
Code:

KeyRelease event, serial 29, synthetic NO, window 0x4200001,
    root 0x44, subw 0x0, time 1345453022, (-552,630), root:(39,658),
    state 0x0, keycode 58 (keysym 0x6d, m), same_screen YES,
    XLookupString gives 1 bytes: (6d) "m"
    XFilterEvent returns: False

Upon careful examination, pressing 'm' will only trigger a _KeyPress_ event every other time.
As for how to solve this,...?
Bugreport I guess...

aRTee 08-21-2008 08:07 AM

Found the bugzilla bugreport: https://qa.mandriva.com/show_bug.cgi?id=41585

aRTee 08-21-2008 09:29 AM

This can be fixed by starting the vncserver with "+kb" appended to the command:
vncserver :7 -dpi 80 -geometry 800x480 +kb

majkelm 08-22-2008 03:42 AM

appending "+kb" works great for me, thanks

majkelm


All times are GMT -5. The time now is 09:52 AM.