Skip to content

Instantly share code, notes, and snippets.

@javiercantero
Created December 2, 2013 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javiercantero/7753316 to your computer and use it in GitHub Desktop.
Save javiercantero/7753316 to your computer and use it in GitHub Desktop.
Tracing X input events to try to debug keyboard problems with FreeOrion (with k1ll_key_autorepeat_fix patch applied to libOIS), from within OpenBox (no DE, pure X). The sequence of pulsations for the first input text box was "abcdefghijklmnopqrstuvwxyz", and for the second "1234567890". The first input text box shows the entire "abcdefghijklmnop…
... (more stuff) ...
004:>:0015: Event ButtonPress(4) button=left button(0x01) time=0x00e3ea53 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=148 root-y=658 event-x=147 event-y=640 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonRelease(5) button=left button(0x01) time=0x00e3eaab root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=148 root-y=658 event-x=147 event-y=640 state=Button1 same-screen=true(0x01)
003:>:0007: Event KeyPress(2) keycode=0x26 time=0x00e3f1ac root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:<:0008: 28: XKEYBOARD-Request(135,8): GetMap opcode=0x87 opcode2=0x08 unparsed_data=...;
003:>:0008:5068: Reply to GetMap: data1=0x01 data2=0x03 unparsed_data=...;
003:<:0009: 20: XKEYBOARD-Request(135,1): SelectEvents opcode=0x87 opcode2=0x01 unparsed_data=...;
003:<:000a: 16: XKEYBOARD-Request(135,1): SelectEvents opcode=0x87 opcode2=0x01 unparsed_data=...;
003:>:000a: Event KeyRelease(3) keycode=0x26 time=0x00e3f26a root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x38 time=0x00e3f3c1 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x38 time=0x00e3f440 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x36 time=0x00e3f5f4 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x36 time=0x00e3f674 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x28 time=0x00e3f9ff root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x28 time=0x00e3fa7f root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x1a time=0x00e3fde7 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x1a time=0x00e3fe48 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x29 time=0x00e40114 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x29 time=0x00e40193 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x2a time=0x00e40347 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x2a time=0x00e403c7 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x2b time=0x00e404fd root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x2b time=0x00e4057d root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x1f time=0x00e4076f root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x1f time=0x00e407d0 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x2c time=0x00e408c8 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x2c time=0x00e40948 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x2d time=0x00e40abd root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x2d time=0x00e40b1e root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x2e time=0x00e40c73 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x2e time=0x00e40cc1 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x3a time=0x00e41086 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x3a time=0x00e410e7 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x39 time=0x00e41181 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x39 time=0x00e411e2 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x20 time=0x00e41376 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x20 time=0x00e413b8 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x21 time=0x00e41491 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x21 time=0x00e414f2 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x18 time=0x00e41742 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x18 time=0x00e417c4 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x1b time=0x00e41a32 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x1b time=0x00e41a93 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x27 time=0x00e41c46 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x27 time=0x00e41cc6 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x1c time=0x00e41e99 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x1c time=0x00e41f19 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x1e time=0x00e42454 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x1e time=0x00e42496 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x37 time=0x00e427fd root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x37 time=0x00e4287d root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x19 time=0x00e42a8e root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x19 time=0x00e42aef root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x35 time=0x00e42ed3 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x35 time=0x00e42f72 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x1d time=0x00e43089 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x1d time=0x00e430ea root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x34 time=0x00e436e2 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x34 time=0x00e43781 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1018 root-y=368 event-x=1017 event-y=350 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonPress(4) button=left button(0x01) time=0x00e43f7b root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1075 root-y=525 event-x=1074 event-y=507 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonRelease(5) button=left button(0x01) time=0x00e43fd3 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1075 root-y=525 event-x=1074 event-y=507 state=Button1 same-screen=true(0x01)
004:>:0015: Event ButtonPress(4) button=left button(0x01) time=0x00e4431b root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1833 root-y=35 event-x=1832 event-y=17 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonRelease(5) button=left button(0x01) time=0x00e44373 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1833 root-y=35 event-x=1832 event-y=17 state=Button1 same-screen=true(0x01)
004:>:0015: Event ButtonPress(4) button=left button(0x01) time=0x00e447bb root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonRelease(5) button=left button(0x01) time=0x00e4480b root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=Button1 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x0a time=0x00e44b58 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x0a time=0x00e44bd8 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x0b time=0x00e44cd0 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x0b time=0x00e44d31 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x0c time=0x00e44e0a root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x0c time=0x00e44e8a root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x0d time=0x00e44f44 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x0d time=0x00e44fc4 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x0e time=0x00e45271 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x0e time=0x00e45310 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x0f time=0x00e45408 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x0f time=0x00e454c6 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x10 time=0x00e455a0 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x10 time=0x00e45601 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x11 time=0x00e45756 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x11 time=0x00e457b7 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x12 time=0x00e4592c root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x12 time=0x00e4598d root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyPress(2) keycode=0x13 time=0x00e45b40 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
003:>:000a: Event KeyRelease(3) keycode=0x13 time=0x00e45ba1 root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=848 root-y=331 event-x=847 event-y=313 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonPress(4) button=left button(0x01) time=0x00e46b2b root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1905 root-y=43 event-x=1904 event-y=25 state=0 same-screen=true(0x01)
004:>:0015: Event ButtonRelease(5) button=left button(0x01) time=0x00e46b8b root=0x0000028e event=0x01800002 child=None(0x00000000) root-x=1905 root-y=43 event-x=1904 event-y=25 state=Button1 same-screen=true(0x01)
... (more stuff) ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment