Commit Graph

94 Commits

Author SHA1 Message Date
Peter Hutterer
9fc73c9d03 elographics 1.4.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-elographics-1.4.1
2012-08-20 11:11:41 +10:00
Søren Holm
3f5e814114 Added correct scaling of axes.
Signed-off-by: Søren Holm <sh@sgh.dk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-08-17 15:12:11 +10:00
Peter Hutterer
948e472fb1 Don't force pInfo->flags to 0 (#40870)
The server uses the flags to decide if a device comes up as attached or
floating slave. Overwriting the flag after the server has processed the
CorePointer/AlwaysCore/Floating/etc options results in the device always
coming up as floating slave. This again makes the device appear
unresponsive.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-08-17 15:12:08 +10:00
Peter Hutterer
c65d8e4c33 elographics 1.4.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-elographics-1.4.0
2012-07-30 14:03:43 +10:00
Peter Hutterer
ad74c47b0a Constify a few strings
xf86Elo.c:74:5: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]

several of:
xf86Elo.c:915:3: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
(input ABI 18 only)

xf86Elo.c:1012:9: warning: assignment discards 'const' qualifier from
pointer target type [enabled by default]

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-30 13:56:12 +10:00
Peter Hutterer
461d74ba17 Swap calls to Error() to ErrorF
Error doesn't exist anymore, removed in xorg-server-1.11.0-182-g09dbfcb

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-30 13:43:39 +10:00
Peter Hutterer
1bdc3c58e7 Test the device in PreInit and fail if it cannot be opened.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19 11:32:27 +10:00
Peter Hutterer
de753ac308 Don't free on init failure, let UnInit take care of it.
Avoid double-frees when the server calls Uninit.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19 11:32:27 +10:00
Peter Hutterer
d743407c0e Use xf86SetStrOption for Option Device
Let the device be printed in the logs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19 11:32:24 +10:00
Terry Lambert
38bcc4322a Return proper default for unknown values in pInfo->device_control.
Signed-off-by: Terry Lambert <tlambert@chromium.org>
Reviewed-by: Stephane Marchesin <marcheu@chromium.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-18 11:49:27 +10:00
Peter Hutterer
55f337f61f Fix name and type_name for elographics
Don't overwrite the user-assigned name and use XI_TOUCHSCREEN for type_name.
Don't allow Option "DeviceName", use Identifier instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-08 15:04:03 +10:00
Peter Hutterer
7c324ede65 elographics 1.3.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-elographics-1.3.0
2011-06-27 14:48:11 +10:00
Peter Hutterer
6c9a801a5c Require server 1.10
And remove the manual input ABI check.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-06-27 14:47:32 +10:00
Peter Hutterer
6fd22a9d64 Support input ABI 12
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-06 10:18:52 +10:00
Peter Hutterer
3dac6ffa77 Remove refcount field, dropped from the server
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03 09:35:15 +10:00
Peter Hutterer
447f547fbb Drop close_proc, conversion_proc, reverse_conversion_proc
All three are not called by the server anymore.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03 09:35:15 +10:00
Peter Hutterer
61b249e75e Drop driver-specific motion history size handling.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03 09:35:15 +10:00
Peter Hutterer
8d90c97158 Require server 1.9, drop earlier ABI support
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03 09:35:15 +10:00
Peter Hutterer
7f35fe7d26 Replace LocalDevicePtr with InputInfoPtr
Both describe the same struct, LocalDevicePtr has been removed from the
server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03 09:35:15 +10:00
Peter Hutterer
0f3df8923d unifdef XFree86LOADER
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-03 09:35:15 +10:00
Peter Hutterer
787c1a94de Bump to 1.2.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-12-03 09:35:15 +10:00
Peter Hutterer
607aed7602 elographics 1.2.4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-elographics-1.2.4
2010-06-09 12:18:14 +10:00
Peter Hutterer
ac31d3e2d1 Remove libcwrappers for malloc and free.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-09 12:17:16 +10:00
Peter Hutterer
ac5366d6e1 Added support for GeneralTouch serial touchscreens.
Signed-off-by: Ivan Afonichev <ivan.afonichev@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-12-18 08:43:11 +10:00
Michael Smith
b9531248d1 xf86EloReadInput(): fix xserver unresponsiveness during touch
The fix for bug #14109 ensures all bytes are emptied from the OS buffer
by looping until xf86WaitForInput returns 0.  This patch just changes
the timeout from 1 millisecond to 0: we don't want the X server to block
if there's no more serial data.

It also removes the Vmin and Vtime options, which were making the calls
to read() block until a complete 10-byte packet buffer could be filled.
At 9600 bps, this could pause the X server for up to 9 ms. The code can
already handle partial buffers, so all we have to do is get rid of the
Vmin.

Also, if xf86EloGetPacket() returns !Success, we should continue rather
than break so the xf86WaitForInput call can decide whether to exit, in
case there's more data in the buffer.

Before the fix, glxgears was giving me about 390 FPS normally and down
to 140 FPS when dragging an empty area of the touchscreen. Now it's
basically unchanged when the touchscreen is in use (390 -> 385 FPS).

X.Org Bug 14109 <https://bugs.freedesktop.org/show_bug.cgi?id=14109>

Signed-off-by: Michael Smith <msmith@cbnco.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-12-16 08:53:55 +10:00
Peter Hutterer
60927fee86 Remove unused bits from configure.ac
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-11-20 09:12:22 +10:00
Peter Hutterer
36d6b8efe2 Reset local->private to NULL to avoid double-frees. (#23239)
X.Org Bug 23239 <http://bugs.freedesktop.org/show_bug.cgi?id=23239>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-24 16:17:14 +10:00
Peter Hutterer
a18af14b1d Cope with XINPUT ABI 7.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-17 14:45:01 +10:00
Paulo Cesar Pereira de Andrade
c97c9f4706 Janitor: make distcheck, .gitignore. 2009-02-02 19:06:55 -02:00
Alan Coopersmith
8230f8bb1f Add README with pointers to mailing list, bugzilla & git repos 2009-01-30 20:18:17 -08:00
Matthieu Herrb
e98045e810 Fix InputDriverRec allocation and freeing.
This caused X server to access free()'d memory on exit path.
Thanks to msys.ch for providing a test machine.
2009-01-29 17:19:42 +01:00
Alan Coopersmith
6f3ca866c8 Remove xorgconfig & xorgcfg from See Also list in man page 2009-01-09 16:12:34 -08:00
Peter Hutterer
37cd09e99c elographics 1.2.3 xf86-input-elographics-1.2.3 2008-10-21 15:33:43 +10:30
Peter Hutterer
117a545980 Add special handling for Sunit dSeries. RH #445193
This model does not reply to queries about touchscreen identification. After
opening the fd, we can skip right to enabling the device.

Red Hat Bug <https://bugzilla.redhat.com/show_bug.cgi?id=445193>
2008-10-14 10:22:29 +10:30
Peter Hutterer
d0aa1083c0 Add Option "Model" to supported list of options.
Some touchscreens supported by this driver need  special handling, hence the
explicit specification of the model. Note that this commit does not actually
do anything with the information, it just sets some internal state.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-14 10:11:11 +10:30
Peter Hutterer
bf0e1bf915 Fix build, xf86Version.h -> xorgVersion.h 2008-08-14 15:34:51 +09:30
William Brack
0387989314 Don't convert coordinates for servers 1.4 and above.
These servers do the coordinate conversion themselves, so no need to do it in
the driver.

Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-06-18 13:42:44 +09:30
Peter Hutterer
c73c44d8f6 Remove RCS tags. 2008-06-17 14:22:35 +09:30
Peter Hutterer
a932fd4174 Remove XFREE_V4 define and all code that expects it to be unset.
If you're still not running something more recent than X11 3, then you have
other issues anyway.
2008-06-17 14:21:48 +09:30
Peter Hutterer
b489fb3c17 Remove trailing whitespaces. 2008-06-17 14:21:41 +09:30
William M. Brack
086e9d2056 WaitForInput before trying to xf86EloGetPacket. #14109
Followup to 72408c2404.

This patch isn't perfect yet, usage of O_NONBLOCK would be preferred and some
better error handling for incomplete packages, but at least it's less broken
than without this patch.

Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>

X.Org Bug 14109 <http://bugs.freedesktop.org/show_bug.cgi?id=14109>
2008-06-17 09:02:01 +09:30
Julien Cristau
929b723521 elographics 1.2.2 xf86-input-elographics-1.2.2 2008-06-10 22:01:08 +02:00
Julien Cristau
e95226c25f remove ChangeLog, add dist hook
Remove ChangeLog from the tree, and add a git dist hook to generate
it automatically.
2008-06-10 21:57:11 +02:00
Peter Hutterer
5b62ac1efe Check for XINPUT ABI 3. 2008-05-27 11:50:35 +09:30
Adam Jackson
174a043bba elographics 1.2.1 xf86-input-elographics-1.2.1 2008-05-21 15:00:50 -04:00
Peter Hutterer
0133d754c1 Don't divide by zero. #14902
X.Org Bug 14902 <http://bugs.freedesktop.org/show_bug.cgi?id=14902>
2008-05-01 12:04:26 +09:30
Adam Jackson
d639f87a52 elographics 1.2.0 xf86-input-elographics-1.2.0 2008-03-20 15:30:00 -04:00
Matthieu Herrb
6726525b14 Makefile.am: nuke RCS Id 2008-03-08 22:55:12 +01:00
Peter Hutterer
72408c2404 Wrap the content of ReadInput into a loop. Bug #14109
There may be more than one packet waiting for us at a time, so loop until we
don't get one anymore.

This patch is untested for lack of a device, but should fix
X.Org Bug 14109 <http:/bugs.freedesktop.org/show_bug.cgi?id=14109>
2008-02-28 09:30:24 +10:30
Benjamin Close
ed8626d307 Remove reliance on xf86_ansic.h
xf86_ansic.h is no longer part of the xorg hence this causes
compilations failures on some architectures

Found by: Tinderbox
2008-01-09 11:44:26 +10:30