[geeks] An interesting problem

Phil Stracchino alaric at caerllewys.net
Sat Nov 13 09:08:08 CST 2004


On Sat, Nov 13, 2004 at 02:23:09PM +0000, Mike Meredith wrote:
> On Sat, 13 Nov 2004 08:58:30 -0500, Phil Stracchino wrote:
> > Already looked at that.  dumpkeys shows no indication of anything
> > unexpected bound to C-A-P.
> 
> It might still be worth looking at the keytables that gets loaded just
> in case dumpkeys is pulling a nasty trick. Not very likely, but there's
> no harm in being paranoid.

Yeah, I just checked just in case.  Nothing obviously bogus in the
keymaps either.

> If it's not the wm or the console driver, that leaves the next obvious
> candidate of X itself. Either run xkeycaps to have a look or map C-A-P
> to something harmless with xmodmap.

Only problem with that is I can't trap it with xev to figure out for
certain if it's sending the expected keycode.  Whatever's trapping it is
doing so before either xkeycaps or xev gets the event.  Setting xkeycaps
up to send to an Xterm and sending it Ctrl-Alt-P has no effect.  Mapping
out the expected keycode with xmodmap doesn't seem to be effective.

For reference, here's the events xev detects in response to P, Shift+P,
Ctrl+P, Ctrl+Alt+P:


KeyPress event, serial 25, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846157864, (32,49), root:(677,77),
    state 0x0, keycode 33 (keysym 0x70, p), same_screen YES,
    XLookupString gives 1 characters:  "p"

KeyRelease event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846158016, (32,49), root:(677,77),
    state 0x0, keycode 33 (keysym 0x70, p), same_screen YES,
    XLookupString gives 1 characters:  "p"

KeyPress event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846159335, (32,49), root:(677,77),
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846160672, (32,49), root:(677,77),
    state 0x1, keycode 33 (keysym 0x50, P), same_screen YES,
    XLookupString gives 1 characters:  "P"

KeyRelease event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846160771, (32,49), root:(677,77),
    state 0x1, keycode 33 (keysym 0x50, P), same_screen YES,
    XLookupString gives 1 characters:  "P"

KeyRelease event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846161560, (32,49), root:(677,77),
    state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846164474, (32,49), root:(677,77),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846165860, (32,49), root:(677,77),
    state 0x4, keycode 33 (keysym 0x70, p), same_screen YES,
    XLookupString gives 1 characters:  ""

KeyRelease event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846165955, (32,49), root:(677,77),
    state 0x4, keycode 33 (keysym 0x70, p), same_screen YES,
    XLookupString gives 1 characters:  ""

KeyRelease event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846166826, (32,49), root:(677,77),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846176423, (32,49), root:(677,77),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846176452, (32,49), root:(677,77),
    state 0x8, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 characters:  ""

< P hit here >

VisibilityNotify event, serial 28, synthetic NO, window 0x3c00001,
    state VisibilityFullyObscured

LeaveNotify event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846180435, (32,49), root:(677,77),
    mode NotifyNormal, detail NotifyVirtual, same_screen YES,
    focus YES, state 12

FocusOut event, serial 28, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

< Ctrl-Alt-F6 hit here to return to X session >

VisibilityNotify event, serial 28, synthetic NO, window 0x3c00001,
    state VisibilityUnobscured

Expose event, serial 28, synthetic NO, window 0x3c00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 28, synthetic NO, window 0x3c00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 28, synthetic NO, window 0x3c00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 28, synthetic NO, window 0x3c00001,
    (0,68), width 178, height 110, count 0

EnterNotify event, serial 28, synthetic NO, window 0x3c00001,
    root 0x54, subw 0x3c00002, time 846182788, (32,49), root:(677,77),
    mode NotifyNormal, detail NotifyVirtual, same_screen YES,
    focus NO, state 12

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  0   0   0   0   32  0   0   0   1   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

FocusIn event, serial 28, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0


I tried setting xkeycaps up to send events to xev, and xev gets the
expected keycode, but then it occurred to me that doing this doesn't
prove anything very much (except maybe that the X events associated with
what C-A-P is supposed to be sending do not, by themselves, cause the
anomalous behavior).  I have a query in with Xi Graphics, but I won't
get anything back from them until at least Monday.



-- 
  ========== Fight Back!  It may not be just YOUR life at risk. ==========
  alaric at caerllewys.net : phil-stracchino at earthlink.net : phil at novylen.net
   phil stracchino : unix ronin : renaissance man : mystic zen biker geek
     2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
           Linux Now!  ...Friends don't let friends use Microsoft.



More information about the geeks mailing list