Hi, I'm working with Qt 4.8.0, on a BeagleBoard with Angstrom, with a fullscreen framebuffer app.

I'm using a Zytronic BTC_ZXY100-U-OFF-32-A USB touch panel, which doesn't have official drivers for Linux/ARM, but is recognized as a HID device

Qt Code:
  1. [ 1540.102661] usb 1-2.7: new full speed USB device number 12 using ehci-omap
  2. [ 1540.231018] usb 1-2.7: New USB device found, idVendor=14c8, idProduct=0005
  3. [ 1540.242492] usb 1-2.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  4. [ 1540.253906] usb 1-2.7: Product: Zytronic Touchscreen Controller
  5. [ 1540.265319] usb 1-2.7: Manufacturer: Zytronic Displays Limited
  6. [ 1540.298248] input: Zytronic Displays Limited Zytronic Touchscreen Controller as /devices/platform/usbhs-omap.0/ehci-omap.0/usb1/1-2/1-2.7/1-2.7:1.0/input/input9
  7. [ 1540.322875] generic-usb 0003:14C8:0005.0008: input: USB HID v1.01 Mouse [Zytronic Displays Limited Zytronic Touchscreen Controller] on usb-ehci-omap.0-2.7/input0
  8.  
  9. root@beagleboard:~# ls -l /dev/input/by-id
  10. ...
  11. lrwxrwxrwx 1 root root 9 Nov 19 11:30 usb-Zytronic_Displays_Limited_Zytronic_Touchscreen_Controller-event-mouse -> ../event6
  12. lrwxrwxrwx 1 root root 9 Nov 19 11:30 usb-Zytronic_Displays_Limited_Zytronic_Touchscreen_Controller-mouse -> ../mouse2
To copy to clipboard, switch view to plain text mode 

When I launch my Qt application, both my touchscreen and my USB mouse work, but the touchscreen is badly miscalibrated. Trying different QWS_MOUSE_PROTO drivers, MouseMan seems the only protocol that works. Does anyone know how to calibrate a MouseMan touchscreen?

I tried to use ts_calibrate, but it says it doesn't understand the APP, and exits right away
Qt Code:
  1. root@beagleboard:~# export TSLIB_TSDEVICE=/dev/input/mouse2
  2. root@beagleboard:~# ts_calibrate
  3. xres = 1280, yres = 800
  4. selected device is not a touchscreen I understand
  5. Took 2 samples...
  6. Top left : X = -546217868 Y = -546217749
  7. Took 2 samples...
  8. Top right : X = -546217868 Y = -546217749
  9. Took 2 samples...
  10. Bot right : X = -546217868 Y = -546217749
  11. Took 2 samples...
  12. Bot left : X = -546217868 Y = -546217749
  13. Took 2 samples...
  14. Center : X = -546217868 Y = -546217749
  15. -2.632812 -5.445312 5.429688
  16. -1.445312 -3.398438 3.390625
  17. Calibration constants: -172544 -356864 355840 -94720 -222720 222208 65536
To copy to clipboard, switch view to plain text mode 

Regarding those "Took 2 samples...", I don't know what samples it's talking about, I can't even touch the screen at all before the program quits.

I tried ts_calibrate because it's the only calibration utility I know for the framebuffer, but tslib doesn't seem to have future for me, because running the application with QWS_MOUSE_PROTO=tslib:/dev/input/mouse2 doesn't recognice any touch at all, while with MouseMan at least it recognizes touch, although it's miscalibrated.