Problems withKeymappings - Still having problems :)
Chris Selivanow
cws "at" optimalpc.net
Wed, 02 Feb 2000 16:08:00 +0000
Hi- I tried the fix you posted, On Slackware 7.0
the file resides in:
/usr/lib/X11/xdm/Xsetup_0
the original file was:
#!/bin/sh
# $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31
gildea Exp $
#xconsole -geometry 480x130-0-0 -daemon -notify
-verbose -fn fixed -exitOnFail
# Fix backspace problem in login box:
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
# If the nifty KDE background loader is around,
use it:
if [ -x /opt/kde/bin/kdmdesktop ]; then
/opt/kde/bin/kdmdesktop
fi
I commented out the:
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
I am still having the problem with the `5` key.
Below are segments from the
output of "xmodmap -pk" from within Xvnc and
Console X Windows.
Xnvc Keymap dump
8 0xffe3 (Control_L)
9 0xffe4 (Control_R)
10 0xffe1 (Shift_L)
11 0xffe2 (Shift_R)
12 0xffe7 (Meta_L)
13 0xffe8 (Meta_R)
14 0xffe9 (Alt_L)
15 0xffea (Alt_R)
16 0x0020 (space)
17 0x0030 (0) 0x0029
(parenright)
18 0x0031 (1) 0x0021 (exclam)
19 0x0032 (2) 0x0040 (at)
20 0x0033 (3) 0x0023
(numbersign)
21 0x0034 (4) 0x0024 (dollar)
22 0xff08 (BackSpace)
23 0x0036 (6) 0x005e
(asciicircum)
24 0x0037 (7) 0x0026 (ampersand)
25 0x0038 (8) 0x002a (asterisk)
26 0x0039 (9) 0x0028 (parenleft)
27 0x002d (minus) 0x005f
(underscore)
Console X Windows keydump
8
9 0xff1b (Escape)
10 0x0031 (1) 0x0021 (exclam)
11 0x0032 (2) 0x0040 (at)
12 0x0033 (3) 0x0023
(numbersign)
13 0x0034 (4) 0x0024 (dollar)
14 0x0035 (5) 0x0025 (percent)
15 0x0036 (6) 0x005e
(asciicircum)
16 0x0037 (7) 0x0026 (ampersand)
17 0x0038 (8) 0x002a (asterisk)
18 0x0039 (9) 0x0028 (parenleft)
19 0x0030 (0) 0x0029
(parenright)
20 0x002d (minus) 0x005f
(underscore)
21 0x003d (equal) 0x002b (plus)
22 0xff08 (BackSpace)
23 0xff09 (Tab) 0xfe20
(ISO_Left_Tab)
24 0x0071 (q) 0x0051 (Q)
25 0x0077 (w) 0x0057 (W)
26 0x0065 (e) 0x0045 (E)
Both Xvnc and Console are using XDM for logins.
If anyone knows anywhere else
that keymappings are found, that would be great!
-Chris Selivanow
DEVRIENDT ERIK wrote:
>
> Recently two persons reported problems with keymappings
>
> "Hartmut Steffin" <h.steffin "at" abi-behoerden.de> ( [x|k]dm changed
> behaviour/encoding in SuSE6.3 )
> and
> Chris Selivanow <cws "at" optimalpc.net> (Problems with Keymappings)
>
> I use SuSE 6.2 and first had similar problems with the keymappings.
>
> I already reported the solution to this list before, but I will repeat is
> here.
>
> I wrote at Tue 23/11/99 :
>
> The cause is that the Xsetup scripts of SuSE are trying to be too smart.
> Look into the script /usr/lib/X11/xdm/Xsetup_default,
> or /usr/lib/X11/xdm/Xsetup_1 if you start Xvnc with option :1.
>
> Starting at line 66 you will find :
> #
> # Set system keymap for the (remote) login display.
> #
> if test -x $xmodmap ; then
> if test -z "${DISPLAY%:*}" ; then <-- (1)
> # local connection, an alternated console
> test -f $sysmodmap && $xmodmap $sysmodmap <-- (2)
> else
> # TCP/IP connection (remote or local)
> # test -f $defmodmap && $xmodmap $defmodmap
> # test -f $hostmodmap && $xmodmap $hostmodmap
> :
> fi
> fi
>
> The if test (1) looks for local displays. Since Xvnc pretends to be
> a local display the result of this test is TRUE.
> Then in (2) a special Xmodmap file is loaded, containing special
> codes valid for local keyboards.
>
> To solve your problem replace (2) by
>
> # do not do Xmodmaps here because Xvnc does not like more than one modifier
> per key.
> # test -f $sysmodmap && $xmodmap $sysmodmap
> :
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------