1) DEB_BUILD_OPTIONS="nostrip debug noopt" apt-get --build source xf86-input-tslib 2) DEB_BUILD_OPTIONS="nostrip debug noopt" apt-get --build source xserver-xorg-video-fbdev 3) gdb --args X :0 vt4 4) break ReadInput 5) break FBDevPointerMoved 6) touch the corner nearest to the "n" of "neo" $6 = {x = 63, y = 581, pressure = 1, tv = {tv_sec = 1218899749, tv_usec = 202602}} $7 = {x = 581, y = 417, pressure = 1, tv = {tv_sec = 1218899749, tv_usec = 202602}} x = 639 y = 312 newX = 167 newY = 639 (hardware) [rotate CW output of tslib] (0,0) (480,0) [0,480] [0,0] <0,480> [640,480] [640,0] (0,640) (480, 640) "neo" fbdev: in the corner we get 640,357