1 2006-08-16 Chris Larson <clarson@kergoth.com>
3 * plugins/collie.c,plugins/corgi.c: Apply patch from Richard Purdie to
4 fix the microseconds field of the timeval struct, as it was
5 inadvertantly holding milliseconds.
7 2005-03-01 Chris Larson <kergoth@handhelds.org>
9 * src/tslib-filter.h: BUGFIX: make the symbol used by the plugins,
10 tslib_parse_vars, visible.
12 2005-02-28 Chris Larson <kergoth@handhelds.org>
14 * tslib.pc.in: Add pkg-config file for tslib.
15 * configure.ac, Makefile.am: Create tslib-$LT_RELEASE.pc, and install
16 it into the correct place. Also change the AC_INIT 'PACKAGE' from
17 libts to tslib. Bump the LT_REVISION, since libts has changed a fair
18 bit now, in preparation for the 1.0.0 release.
19 * .cvsignore: Add *.pc to CVS ignore.
21 * m4/internal/visibility.m4, src/Makefile.am, plugins/Makefile.am:
22 Fixup the visibility macros to set VIS_CFLAGS and VIS_CXXFLAGS, so
23 we can choose to use the visibility flags for the core lib and
24 plugins, but not the test apps, as the gains would be nonexistant
27 2005-02-25 Chris Larson <kergoth@handhelds.org>
29 * AUTHORS: Add self to AUTHORS file.
30 * configure.in: Deleted.
31 * configure.ac: Bump version passed to AC_INIT, set my email address
32 as the contact point for the time being.
34 2005-02-16 Michael Opdenacker <michaelo@handhelds.org>
36 * configure.ac, plugins/Makefile.am, plugins/linear-h2200.c: Add
37 tslib plugin to linearly scale touchscreen values for the HP iPAQ
40 2004-12-14 Chris Larson <kergoth@handhelds.org>
42 * Files all over the tree: Apply patch to add support for using
43 the new gcc symbol visibility features that are available
44 in gcc 4.0 (and patched 3.4.x). Also import a few m4 macros
45 and general buildsystem updates to facilitate automatic use of
46 gcc visibility if it's supported.
48 2004-11-22 Holger Freyther <zecke@handhelds.org>
50 * plugins/dejitter.c: Sometimes after ts_open/ts_close/ts_open on
51 the first sample(s) dejitter will crash. memset the tslib_dejitter
52 structure with zeros so djt->nr's value isn't undefined.
54 2004-10-19 Chris Larson <kergoth@handhelds.org>
56 * Files all over the tree: Fixed up a bunch of compile warnings,
57 at least some of which actually did cause breakage for the user.
59 2004-07-08 Chris Larson <kergoth@handhelds.org>
61 * plugins/input-raw.c: As EV_SYN can be checked for at runtime rather
62 than build time, #define it when compiling against kernel headers
63 that do not define it (2.4).
65 2004-01-26 Andrew Zabolotny <zap@homelink.ru>
67 * README: Updated documentation on module parameters.
68 * plugins/linear.c: Removed the bogus noxyswap parameter.
70 2004-06-14 Chris Larson <kergoth@handhelds.org>
72 * src/ts_read_raw.c: Fix bug hit by me and identified by Phil
73 related to the way we call the raw read functions.
74 * src/input-raw.c (ts_input_read): Rename function, call out
75 check_fd to confirm sanity of this inputdevice, make EV_SYN
77 * src/input-raw.c (check_fd): Rework a bit, and check for EV_SYN
79 * src/input-raw.c (mod_init): Switch from static to vars in our
80 malloced tslib_module_info based structure.
81 * src/input-raw.c (ts_input_fini): New function. Free malloced structure.
82 * etc/ts.conf: Add commented module_raw entry for 'input'.
83 * src/ts_config.c: Abort and warn when no raw modules were loaded.
84 * plugins/*.c: Use C99 initializers.
86 2004-06-11 Philip Blundell <philb@gnu.org>
88 * plugins/variance.c (variance_read): Also clear VAR_LASTVALID on
91 2004-06-09 Chris Larson <kergoth@handhelds.org>
93 * plugins/Makefile.am: Ensure plugins get installed.
94 * plugins/input-raw.c: Watch for a BTN_TOUCH input key event,
95 to use it as an indication of pen release.
97 2004-06-09 Glenn McGrath <glennm@hydrix.com>
99 - Rewrite !EV_SYN section.
100 - Never return -1, causes cursor flicker in kdrive xserver.
101 - Handle partial reads without throwing out data.
102 - Run through indent.
105 - Optimize to save some space.
106 - Fix long line check, they dont always end '\n'.
107 - Report the name of modules that wont load.
109 - Allow default plugindir to be set by configure.
111 2004-06-08 Philip Blundell <philb@gnu.org>
113 Patch from Glenn McGrath <bug1@iinet.net.au>
114 * configure.in: Renamed to ...
115 * configure.ac: ... this. Use AM_CONDITIONAL to enable plugins.
116 Fix confusion between input and arctic2 drivers. Install plugins
117 into ${libdir}/ts, not ${libdir}/ts/plugins.
118 * plugins/Makefile.am: Keep in step with AM_CONDITIONAL changes.
120 2004-06-07 Philip Blundell <philb@gnu.org>
122 * plugins/input-raw.c: Fix compilation errors.
123 * src/tslib-private.h: Remove #ifdef USE_INPUT_API block.
124 * configure.in: Enable input plugin if requested.
126 2004-06-06 Philip Blundell <philb@gnu.org>
128 * tests/Makefile.am (ts_test_SOURCES, ts_calibrate_SOURCES,
129 ts_harvest_SOURCES): Add fbutils.h and font.h.
130 (ts_calibrate_SOURCES, ts_harvest_SOURCES): Add testutils.h as
133 * src/ts_open.c (ts_open): Remove INPUT_API stuff.
134 * src/ts_read_raw_module.c: Deleted.
135 * src/Makefile.am (libts_la_SOURCES): Remove ts_read_raw_module.c.
136 * plugins/input-raw.c: New file.
137 * plugins/Makefile.am (EXTRA_LTLIBRARIES): Add input.la.
138 * configure.in: Remove --enable-input-api option.
139 (PLUGIN_DIR): Place under ${libdir}, not ${datadir}.
141 2004-06-04 Philip Blundell <philb@gnu.org>
143 * src/ts_config.c (ts_config): Increase size of line buffer.
145 * plugins/variance.c (variance_read): Correct test of return value
148 2004-05-10 Michael Opdenacker <michaelo@handhelds.org>
150 * src/tslib.h: removed the obsolete comment that ts_fd is not implemented yet
152 * tests/testutils.c: new file, containing the getxy function,
153 previously in tests/ts_calibrate.c
155 * tests/testutils.h: corresponding include file
157 * tests/ts_calibrate.c: moved getxy, sort_by_x and sort_by_y functions
160 * tests/ts_harvest.c: new program to harvest hundreds
161 of raw coordinates for non linear touchscreens
162 (as found in the h2200 devices, for example)
164 * tests/Makefile.am: added ts_harvest.c and testutils.c
166 * tests/ts_test.c: now tells the name of the touchscreen device file
167 when it fails to open it.
169 * src/ts_config.c: added missing \n at the end of
170 "option `%s' not recognised" and "line too long" error messages.
171 Also made the error message clearer by giving the config file
172 name and telling that the number is a line number.
174 * src/ts_config.c: fixed the code testing blank lines
175 which didn't work for me.
177 2004-01-29 Chris Larson <kergoth@handhelds.org>
179 * Make all the actual hardware access methods (minus input) individual
180 module_raw tslib modules. Remove reference to TSLIB_TSEVENTTYPE from
181 README, and update etc/ts.conf to include commented out entries for
182 the various module_raw modules.
184 2004-01-26 Andrew Zabolotny <zap@homelink.ru>
186 * src/ts_read_raw_module.c: Added EV_SYN support for kernels >2.5.x.
187 This makes the touchscreen event boundary detection 100% correct
188 and removes the need for tricky assumptions tslib had to do until
189 now. If the EV_SYN macro is not defined, the old algorithm is
192 * plugins/variance.c: Rewrote almost from scratch the variance filter.
193 The old variance filter made the input very sluggish because it
194 lets out only one of every four input samples. Now it generates
195 approximatively 1:1 output, except that it filters out what it
196 thinks are "noise" samples.
198 * plugins/dejitter.c: Rewrote almost from scratch the dejitter filter.
199 Now it just applies a weighted smoothing algorithm with most weight
200 in most recent samples; this leaves touchscreen input responsive and
201 still smooths out jitter.
203 * tests/fbutilc.c: Improved a lot; added line drawing, rectangle
204 drawing and filled rectangle drawing, support for up to 256
207 * tests/ts_test.c, tests/ts_calibrate.c: Update to take advantage of
208 the improved functionality of fbutils.c. The ts_test tool now has
209 a "drag" (old behaviour) and "draw" mode (the pen leaves a trace on
212 2003-11-01 Chris Larson <kergoth@handhelds.org>
214 * plugins/pthres.c, plugins/Makefile.am, configure.in: Added pressure
215 threshold tslib plugin, which is used to ensure that the release
216 event's pressure is 0.
218 * plugins/variance.c, plugins/dejitter.c: Removed pressure threshold
219 handling from plugins, now that pthres is handling it.
221 * etc/ts.conf: Updated default ts.conf per changes due to pthres.
223 2003-08-05 Chris Larson <kergoth@handhelds.org>
225 * Updated README documentation. Added information on what the various
226 TSLIB environment variables do, and information on a guideline for
227 tslib filter module creators.
229 2003-07-31 Chris Larson <kergoth@handhelds.org>
231 * Corrected some issues with automake usage, which included changing
232 references of CFLAGS to AM_CFLAGS where necessary.
234 2003-03-12 Chris Larson <kergoth@handhelds.org>
236 * Add a raw module linked list, connected to the primary list, to
237 facilitate tslib modules affecting ts_read_raw behavior.
239 2003-03-04 Douglas Lowder <dlowder@earthlink.net>
241 * Added support for COLLIE and CORGI event types (thanks to Chris Larson
242 of the OpenZaurus project)
244 2003-03-03 Douglas Lowder <dlowder@earthlink.net>
246 * Fixed segfault bug in src/ts_parse_args.c
248 2002-11-08 Douglas Lowder <dlowder@earthlink.net>
250 * Added patch from Scott Anderson to improve tests/ts_calibrate.c by taking
251 median of multiple samples for each point.
253 2002-08-29 Douglas Lowder <dlowder@earthlink.net>
255 * Added tests/ts_print_raw.c to print raw uncalibrated touchscreen events
256 (useful for debugging)
258 2002-07-11 Douglas Lowder <dlowder@earthlink.net>
260 * Added code in src/ts_read_raw.c to handle reading events from the mk712
261 touchscreen driver on the Hitachi Webpad.
263 * Fixed a bug in plugins/linear.c (incorrect default calibration in
264 absence of /etc/pointercal)
266 2002-07-10 Douglas Lowder <dlowder@earthlink.net>
268 * Added a patch by Holger Schurig <h.schurig@mn-logistik.de> to fix
269 issues encountered on an Accelent PXA250 board. The patch is against
270 tests/ts_calibrate.c. Among other things, it removes the extra event
271 that was being read before the first crosshair is painted.
273 * Modified the code in plugins/dejitter.c to guarantee that the "release"
274 touchscreen event (event with pressure=0 that occurs when the pointer is
275 lifted from the screen) has the same xy position as the preceding event.
276 This eliminates the cursor "jumping" that can occur otherwise.
278 * Fixed a bug in src/ts_read_raw.c that caused segfaults if TSLIB_TSEVENTTYPE
279 was not defined in the environment.
281 2002-07-05 Douglas Lowder <dlowder@earthlink.net>
283 * libts.so now handles both UCB1x00 and H3600 type touchscreen events. Default
284 is UCB1x00; H3600 is selected by setting environment variable
285 TSLIB_TSEVENTTYPE to the value "H3600".
287 * With the above change, generation of libtsipaq.so is no longer required,
288 and it has been removed.
290 2002-07-03 Douglas Lowder <dlowder@earthlink.net>
292 * Added back the code to open the virtual console (works if device file chosen
295 * Made the console device and framebuffer device configurable for ts_calibrate
296 and ts_test: new environment variables defined.
297 TSLIB_FBDEVICE (defaults to /dev/fb0)
298 TSLIB_CONSOLEDEVICE (defaults to /dev/tty)
300 On a system using devfs, the above should be set to /dev/fb/0 and /dev/vc/,
303 2002-07-01 Douglas Lowder <dlowder@earthlink.net>
305 * Fixes to make this code work better on targets with framebuffers that have
306 more than 8 bits per pixel (changes to tests/fbutils.c):
307 * Removed the code that attempts to change colormap
308 * Temporarily commented out the code that opens /dev/tty1 (does not work on all targets)
310 * Fixed the test program so that the crosshair is drawn XORed with the text on the screen,
311 so the text is not corrupted when the crosshair moves over it. (tests/fbutils.c)
313 * Made the code much more configurable by adding checks for environment variables:
314 TSLIB_CALIBFILE -- location of calibration file for linear plugin (default: /etc/pointercal)
315 TSLIB_CONFFILE -- location of configuration file (default: /usr/local/etc/ts.conf)
316 TSLIB_PLUGINDIR -- location of plugins (default: /usr/local/share/ts/plugins)
317 TSLIB_TSDEVICE -- Name of touchscreen device file if not using input API (default: /dev/touchscreen/ucb1x00)
319 * Added new file, src/ts_read_raw_ipaq.c, to make code work with the h3600_ts driver
320 on the Compaq iPAQ. This creates a new library, libtsipaq.so, that should replace
321 the default libts.so if using this code on an iPAQ.
323 2002-06-19 Douglas Lowder <dlowder@earthlink.net>
325 * Fixed a problem that caused tslib_parse_vars() (src/ts_parse_vars.c) to not
326 read parameters correctly from the ts.conf file.
328 * Made modifications to simplify and improve the performance of the dejitter filter
329 (plugins/dejitter.c).
331 * Added the configure script and Makefile.in files, plus other files generated by
332 autogen.sh, so that only "configure" needs to be run before running "make".
333 If a user wishes to rerun the automake and autoconf steps, run "autogen-clean.sh"
334 and then "autogen.sh".
336 2002-06-17 Douglas Lowder <dlowder@earthlink.net>
338 * I added a simple script, autogen-clean.sh, to make it easier to change configure.in
339 and regenerate configure scripts and Makefiles.
341 * I made modifications so that npitre's new input API code is now wrapped in
342 #ifdef USE_INPUT_API. Added a new configure flag, --enable-inputapi, which
343 is turned on by default, and which adds -DUSE_INPUT_API to CFLAGS in all the
344 Makefiles. --disable-inputapi will return the code to its original behavior
345 of opening /dev/touchscreen/ucb1x00 and reading events directly.
347 * I modified plugins/linear.c so that it determines the full linear transformation
348 between touchscreen and framebuffer coordinate systems. This method not only
349 rescales and offsets the coordinates correctly, but also automatically takes care
350 of rotation or tilt between the coordinate systems, and automatically takes care
351 of cases where X and Y are interchanged. Therefore, the xyswap parameter is
352 no longer required or used.
354 * I found the framebuffer code in tests/ts_calibrate.c and tests/ts_test.c to be
355 broken, and fixed it so it works correctly (used ADS GraphicsClient+ and an Intel
356 DBPXA250 (Lubbock) Xscale target for testing).
357 Since there was a lot of duplication, I extracted all the framebuffer specific stuff
358 to new files fbutils.c and fbutils.h, so it will be easier to add more framebuffer
359 tests in future if desired. I also extract a couple of fonts and wrote simple text
360 printing code so text messages can be displayed in ts_test and ts_calibrate.
362 * I added a new configure flag, --enable-debug, which is turned off by default. When
363 enabled, it adds -g -ggdb -DDEBUG to CFLAGS in all the Makefiles. I have debug
364 print statements in ts_read_raw and in the plugins that are wrapped with #ifdef DEBUG --
365 this way I can see how many events are being filtered away and get a better idea
366 of what the filters are doing.
368 * Joanne Woo <jwoo@mvista.com> added C++ wrappers to the header files so this library
369 can be safely used with C++ code.