Setup An X Debug Session

  1. enable tcp connections on gdm:

    • gdmsetup -> security -> uncheck Deny Tcp Connections
    • or...
    • /etc/gdm/gdm.conf -> DisallowTCP=false
  2. on a terminal:

  • export DISPLAY=:0
  • xauth list :0
    copy the whole line with the hostname (the localhost one doesn't work, and */unix doesn't either)
  • xmonui | xmond
  1. on another terminal
  • export DISPLAY=:1
  • xauth add :1
  • run any app. output should appear on terminal 1

Other useful stuff

xwininfo - gets the info about a window

xev -id windowid (0x????????)

opcodes: /usr/include/X11/Xproto.h

http://tronche.com/gui/x/xlib/window/XConfigureWindow.html

http://www.jwz.org/xscreensaver/faq.html#root-lock

changed April 28, 2014