Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Weird xmodmap problem



On Sun, 22 Nov 2009 17:25:05 +0900, "Stephen J. Turnbull"
<stephen@example.com> wrote:

> First try starting XEmacs.  If it doesn't bitch at you about your
> keyboard mapping, you can shut it down.  If it does, pay attention to
> what it says, it might possibly of use.

XEmacs does not complain about the kbd mapping.

> Second, you do have Mod5 attached to a keycode with the keysym
> Mode_switch (or an alias, in X.org there are about a half dozen of
> them, all translating to 0xff7e), right?
> 
> Third, see what xev has to say when you press those keys.

Hmm. No. It maps to 0xfe03 as evidenced by this output of xev, but it is
recognised as ISO_Level3_Shift, which is what I want:

KeyPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 14121611, (135,547), root:(138,593),
    state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 14121771, (135,547), root:(138,593),
    state 0x90, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

This is backed up by an extract of my Xorg.0.log:

(**) Option "xkb_options" "lv3:ralt_switch,terminate:ctrl_alt_bksp,compose:menu,lv3:ralt_switch_multikey"

and by:

$ xmodmap -pke | grep 'keycode  92'
keycode  92 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift NoSymbol ISO_Level3_Shift

Running xev and hitting Mod5+w gives:

KeyPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15759536, (230,571), root:(233,617),
    state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15759848, (230,571), root:(233,617),
    state 0x90, keycode 25 (keysym 0xb2, twosuperior), same_screen YES,
    XLookupString gives 2 bytes: (c2 b2) "²"
    XmbLookupString gives 2 bytes: (c2 b2) "²"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15759920, (230,571), root:(233,617),
    state 0x90, keycode 25 (keysym 0xb2, twosuperior), same_screen YES,
    XLookupString gives 2 bytes: (c2 b2) "²"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15760279, (230,571), root:(233,617),
    state 0x90, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Running xev and hitting Alt5+e gives:

KeyPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15773029, (230,571), root:(233,617),
    state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15773373, (230,571), root:(233,617),
    state 0x90, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XmbLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15773517, (230,571), root:(233,617),
    state 0x90, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
    root 0x6f, subw 0x0, time 15773813, (230,571), root:(233,617),
    state 0x90, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

> Fourth, you can go dig around in XKB (usually /etc/X11/xkb) and see if
> there's anything unusual about those keys or their keysyms.

This is X11R7.4. There are no configuration files any more. The keyboard
layout is built into X now but perfectly correctly set up, with the
exception of the inability to remap Level3 on these 2 keys.

-- 
G. Stewart - gstewart@example.com

Radioactive cats have 18 half-lives

Attachment: pgpmRxhQu377j.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links