Re: [PATCH xorg-server] adds nouveau as standard driver for linux systems

2011-03-20 Thread Julien Cristau
On Sat, Mar 19, 2011 at 18:58:12 +0100, Thomas Schneider wrote: 2011/3/19 Julien Cristau jcris...@debian.org: nv should probably still be added as a fallback on linux.  Also, does this mean the nouveau people will start doing proper ABI management for libdrm_nouveau (i.e. bump SONAME when

Rename evdev internal functions

2011-03-20 Thread Simon Thum
The function names refer to different device classes which, in fact, are all implmented using the same device class. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info:

[PATCH] rename valuator init functions

2011-03-20 Thread Simon Thum
Since the mode of valuators (no longer?) bears a relation to the device class actually initialized, this naming was quite misleading. Signed-off-by: Simon Thum simon.t...@gmx.de --- src/evdev.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git

Remove absolute device class

2011-03-20 Thread Simon Thum
I made an attempt to remove the absolute device class from the server. It was, to the best of my knowledge, unused and quite misleading since all is there except for real useage. The actual removal (patch 5+6) is split up so the API is kept (more or less) for the benefit of out-of-tree drivers.

[PATCH 1/6] xquartz: simplify ChangeDeviceControl

2011-03-20 Thread Simon Thum
Signed-off-by: Simon Thum simon.t...@gmx.de --- hw/xquartz/darwinXinput.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/hw/xquartz/darwinXinput.c b/hw/xquartz/darwinXinput.c index 8bb83ca..3ef34fe 100644 --- a/hw/xquartz/darwinXinput.c +++

[PATCH xserver] remove absolute class (resent)

2011-03-20 Thread Simon Thum
Hi all, somehow I'm out of luck with send-email and my overly spam-alert email provider. Sorry for double-posting! Here's the original mail (without greeting, which somehow got suppressed): I made an attempt to remove the absolute device class from the server. It was, to the best of my

Re: [PATCH inputproto] Add minimal asciidoc syntax

2011-03-20 Thread Peter Hutterer
On Fri, Mar 18, 2011 at 11:45:17AM -0400, Gaetan Nadon wrote: On Fri, 2011-03-18 at 10:07 +1000, Peter Hutterer wrote: I don't disagree and I certainly haven't use asciidoc in anything more complex than a man page. just one comment that I found from a quick search, suggesting that olink

Re: [PATCH] [xorg/xserver] config: handle device change event properly

2011-03-20 Thread Peter Hutterer
On Fri, Mar 18, 2011 at 04:35:36PM +0200, Erkki Seppälä wrote: wakeup_handler in udev.c wasn't dealing with udev change events. There are situations when a device can gain its input capabilities after it has been added to the system and therefore the change events must be handled as well.

Re: [PATCH 0/6] GLX cleanup, round three

2011-03-20 Thread Dave Airlie
I'll push a mesa patch to remove glapi.c, glapitemp.h glapi.h from the files that get copied into the X server. Reviewed-by: Dave Airlie airl...@redhat.com for the series. I know patch 1 is just a workaround, it would be nice to know the actual fix is in the works as well. Dave. On Tue, Mar

[PATCH synaptics 01/17] eventcomm: add a missing break statement

2011-03-20 Thread Peter Hutterer
If the EV_SYN wasn't SYN_REPORT, we'd fall through to key event processing, which almost certainly won't do what we want and/or need. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH synaptics 02/17] eventcomm: factor out finger counting.

2011-03-20 Thread Peter Hutterer
one, two, three, many. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 32 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index 15f9d2d..f55c88f 100644 --- a/src/eventcomm.c +++

[PATCH synaptics 03/17] eventcomm: extern EventReadHwState to allow for testing.

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c |2 +- src/eventcomm.h |6 ++ 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index f55c88f..c32ceba 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -337,7

[PATCH synaptics 04/17] eventcomm: replace synaptics-custom TEST_BIT with server's BitIsOn.

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 41 +++-- 1 files changed, 19 insertions(+), 22 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index c32ceba..98db111 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c

[PATCH synaptics 05/17] eventcomm: rename parameter name grab to test_grab

2011-03-20 Thread Peter Hutterer
We don't permanently grab the device here, we just check whether a grab is possible. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index 98db111..eeebafb

[PATCH synaptics 06/17] eventcomm: document event_query_is_touchpad

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index eeebafb..30146af 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -76,6 +76,20 @@

[PATCH synaptics 07/17] eventcomm: rewrite event_query_info to something more sane

2011-03-20 Thread Peter Hutterer
Instead of passing in a magic struct and set fields in that struct, pass in the fd that we query and return the queried value. Let the caller deal with the information accordingly. And document the lot. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 25

[PATCH synaptics 08/17] eventcomm: streamline absinfo retrieval.

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 104 --- 1 files changed, 61 insertions(+), 43 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index 287f9de..3f06484 100644 --- a/src/eventcomm.c +++

[PATCH synaptics 09/17] eventcomm: print an error when axis range failed.

2011-03-20 Thread Peter Hutterer
Judging by a quick google search, this isn't a common error that the user will see, it's a bug. So print out information useful for those triaging/debugging. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 11 --- 1 files changed, 4 insertions(+), 7

[PATCH synaptics 10/17] eventcomm: untangle state setting from printing device info

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 97 -- 1 files changed, 50 insertions(+), 47 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index f92347a..50b6083 100644 --- a/src/eventcomm.c +++

[PATCH synaptics 11/17] eventcomm: move need_grab into a proto-specific struct.

2011-03-20 Thread Peter Hutterer
Don't just assign a BOOL to proto_data, use a struct for readability. This changes nothing in the code, especially since need_grab is always false. The current code assumes that if a proto_data field is present, we respect the need_grab from this field. Otherwise, we always try to grab. need_grab

[PATCH synaptics 12/17] eventcomm: fix indentation in EventAutoDevProbe

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/eventcomm.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index 3d69566..41dd669 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -545,12 +545,14 @@

[PATCH synaptics 13/17] Don't autoprobe for devices when Option Device is set.

2011-03-20 Thread Peter Hutterer
If only Option Device is set but no protocol, the code calls into AutoDevProbe. eventcomm (the only backend with an AutoDevProbe) then runs through all /dev/input/event devices and takes the first one it can find. If two touchpads are connected on a system, this may cause the same touchpad to be

[PATCH synaptics 14/17] Require macros 1.13 for unit testing

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 95c64de..fd2d0c3 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ AC_PROG_LIBTOOL # Initialize X.Org

[PATCH synaptics 15/17] Add basic framework for unit-testing.

2011-03-20 Thread Peter Hutterer
Also adds a bunch of fake symbols so we can link. Note that any of these symbols will return false, 0 or whatever the zero value for the symbol is. Care must be taken when writing test that this doesn't screw up the test. Tests are always built but only run on make check. Signed-off-by: Peter

[PATCH synaptics 16/17] test: Add some tests for HW state changes.

2011-03-20 Thread Peter Hutterer
Includes basic finger counting test, some button tests and axis tests. These tests simply check that the HW state changes reflect the events pumped in. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/Makefile.am |1 + test/eventcomm-test.c | 153

[PATCH synaptics 17/17] test: add another test to ensure HW state changes on known values only.

2011-03-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/eventcomm-test.c | 95 + 1 files changed, 95 insertions(+), 0 deletions(-) diff --git a/test/eventcomm-test.c b/test/eventcomm-test.c index 7faf638..60fd0ef 100644 ---

Re: [PATCH] [xorg/xserver] config: handle device change event properly

2011-03-20 Thread Dan Nicholson
2011/3/18 Erkki Seppälä erkki.sepp...@vincit.fi: wakeup_handler in udev.c wasn't dealing with udev change events. There are situations when a device can gain its input capabilities after it has been added to the system and therefore the change events must be handled as well. The change is