Re: 2.6.0-test3-mm2

From: Peter Osterlund
Date: Sun Aug 17 2003 - 15:43:02 EST


(I'm resending this because I previously had sendmail configuration
problems. Sorry if you receive this message twice.)

Andrew Morton <akpm@xxxxxxxx> writes:

> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test3/2.6.0-test3-mm2/

Here is a fix for synaptics touchpads with "multi buttons". The patch
comes from Hartwig Felger, who wrote the original multi button support
patch (p00003_synaptics-multi-button.patch). The same bug fix has been
included in the XFree86 driver for a few weeks, and seems to work
fine. (That part of the X driver is only used for 2.4 kernels.)


linux-petero/drivers/input/mouse/synaptics.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/input/mouse/synaptics.c~syn-multi-btn-fix drivers/input/mouse/synaptics.c
--- linux/drivers/input/mouse/synaptics.c~syn-multi-btn-fix 2003-08-13 22:48:49.000000000 +0200
+++ linux-petero/drivers/input/mouse/synaptics.c 2003-08-13 22:48:49.000000000 +0200
@@ -433,7 +433,8 @@ static void synaptics_parse_hw_state(uns
if (hw->right)
hw->down = !hw->down;
}
- if (buf[3] == 0xC2 && SYN_CAP_MULTI_BUTTON_NO(priv->ext_cap)) {
+ if (SYN_CAP_MULTI_BUTTON_NO(priv->ext_cap) &&
+ ((buf[3] & 2) ? !hw->right : hw->right)) {
switch (SYN_CAP_MULTI_BUTTON_NO(priv->ext_cap) & ~0x01) {
default:
; /* we did comment while initialising... */

_

--
Peter Osterlund - petero2@xxxxxxxxx
http://w1.894.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/