Dan Streetman wrote:
I think the subject of the previous thread was causing some confusion.

The one and only thing I am asking is, can we patch mtouchusb.c to pass up hw-calibrated coordinates instead of raw coordinates?

This seems like a much more reasonable request than "So, I'd like to be able to initiate hardware calibration via evdev also.".


I read this as "evdev should be able to understand how to request hardware calibration to different TS brands", but now I see better what you meant.

The raw coordinate range is 0-0x4000 (16k), while the hw-calibrated range is 0-0xffff (64k). So no resolution is lost.

This will be even smoother if an uncalibrated touchscreen reports "default" hardware calibrated coordinates in a nice 16k or 64k range. This way, even if you don't hardware-calibrate the thing, it will work anyway.


If this is the case, then I see no problem in having the mtouch driver always report hw-calibrated coordinates.

When using one of the touchscreens in question for the first time:

-if hardware calibration is being used, a hardware calibration program would need to get run if and only if the touchscreen was not hardware calibrated. The mtouchusb driver _must_ report hw-calibrated coordinate data.

-if software calibration is being used, a software calibration program would need to get run, period. The mtouchusb driver can report raw or hw-calibrated coordinate data, it makes no difference to the software calibration program.

Sure. The only problem now is that you have 2 methods to calibrate touchscreens, the standard one and the one that only works with mtouch devices. Next thing you know, someone else makes a nice calibration software specific for ELO touchscreens, and another for <place your favorite TS brand here>, and so on.


We were trying to have a standard way to access touchscreens. I'm starting to work on a "libtouch" library that would handle calibration, filtering, etc., so that we could have a standard API that both X and non-X (framebuffer, directFB) applications could use.

Your approach isn't going to help that plan... :(

--
Paulo Marques - www.grupopie.com

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke (1729 - 1797)


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to