Subject: wscons, german keymap, X11 gone wild.
To: None <current-users@netbsd.org>
From: Martin S. Weber <Ephaeton@gmx.net>
List: current-users
Date: 07/07/2005 11:18:35
Hoi,

I have a little problem here. I recently (yesterday) updated my sources
and reinstalled, hoping to solve an issue with wscons I'm seeing since
I went to have X11 4.5 from the xsrc. The problem is that when booting
I'm setting an encoding for the keyboard (de.nodead), but whatever I'm
doing I'm not able to use half of my keyboard (function keys and modifiers
on the right half of it).
To see an example of what I'm talking about, look at the xev output for
pressing my Alt Gr (right Alt), right control, and up button:

KeyPress event, serial 28, synthetic NO, window 0x1a00001,
    root 0x40, subw 0x0, time 386973, (74,131), root:(1281,514),
    state 0x0, keycode 192 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 31, synthetic NO, window 0x1a00001,
    root 0x40, subw 0x0, time 387282, (74,131), root:(1281,514),
    state 0x0, keycode 165 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 31, synthetic NO, window 0x1a00001,
    root 0x40, subw 0x0, time 387888, (74,131), root:(1281,514),
    state 0x0, keycode 208 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

When looking at the default xmodmap, these keycodes seem WAY off
(Alt R seems to be at 64 instead of 192, ctrl_r at 109 instead of
 165, Up at 98 instead of 208).

The best thing though is that after I exit X11, wsconsctl encoding
displays "undefined_1" -- and it stays there whatever I'm doing
(wsconsctl -w encoding=de.nodead has no effect on either the keymap
or on the value of wscons.encoding.)

 - ok I just checked the above again and with the latest build I
 don't seem to be able to reproduce that. Yesterday (with one week
 old system) I was -- so that's fixed obviously. -

Clearly it must be me doing something wrong because I couldn't find
other people reporting problems like mine. But could someone please
point me to what I'm doing wrong ? Many a thanks ...

                     ...............

NetBSD 3.99.7 GENERIC.MP i386 built tonight with fresh tools, an 
empty objdir, no influental mk.conf vars (what I set is in .else of
.ifndef BSD_PKG_MK), latest sources (from de3 mirror), X11:

XFree86 Version 4.5.0
Release Date: 16 March 2005
X Protocol Version 11, Revision 0
Build Operating System:NetBSD/i386 3.99.7 - The NetBSD Foundation, Inc.
Current Operating System: NetBSD circe.entropie.net 3.99.7 NetBSD 3.99.7 (GENERI
Build Date: 7 July 2005

                     ...............

Thanks in advance,

-Martin