From: Vojtech Pavlik <vojtech@suse.cz>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [patch] Input - Probe for Synaptics Touchpads so that other probes don't confuse them [5/13]
Date: Fri, 15 Nov 2002 09:12:14 +0100 [thread overview]
Message-ID: <20021115091214.D16779@ucw.cz> (raw)
In-Reply-To: <20021115091119.C16779@ucw.cz>; from vojtech@suse.cz on Fri, Nov 15, 2002 at 09:11:19AM +0100
You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
'bk pull bk://linux-input.bkbits.net/linux-input' should work as well.
===================================================================
ChangeSet@1.786.54.2, 2002-10-23 10:41:21+02:00, dwmw2@infradead.org
psmouse.c: First check for a Synaptics touchpad, other probes confuse
it enough to disable the trackpoint.
psmouse.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+)
===================================================================
diff -Nru a/drivers/input/mouse/psmouse.c b/drivers/input/mouse/psmouse.c
--- a/drivers/input/mouse/psmouse.c Fri Nov 15 08:31:33 2002
+++ b/drivers/input/mouse/psmouse.c Fri Nov 15 08:31:33 2002
@@ -312,6 +312,26 @@
return PSMOUSE_PS2;
/*
+ * Try Synaptics TouchPad magic ID
+ */
+
+ param[0] = 0;
+ psmouse_command(psmouse, param, PSMOUSE_CMD_SETRES);
+ psmouse_command(psmouse, param, PSMOUSE_CMD_SETRES);
+ psmouse_command(psmouse, param, PSMOUSE_CMD_SETRES);
+ psmouse_command(psmouse, param, PSMOUSE_CMD_SETRES);
+ psmouse_command(psmouse, param, PSMOUSE_CMD_GETINFO);
+
+ if (param[1] == 0x47) {
+ /* We could do more here. But it's sufficient just
+ to stop the subsequent probes from screwing the
+ thing up. */
+ psmouse->vendor = "Synaptics";
+ psmouse->name = "TouchPad";
+ return PSMOUSE_PS2;
+ }
+
+/*
* Try Genius NetMouse magic init.
*/
===================================================================
This BitKeeper patch contains the following changesets:
1.786.54.2
## Wrapped with gzip_uu ##
begin 664 b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[~2002-11-15 8:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-15 8:08 [patch] Input - Rescan serio only if valid reason [1/13] Vojtech Pavlik
2002-11-15 8:09 ` [patch] Input - Add a missing \n [2/13] Vojtech Pavlik
2002-11-15 8:10 ` [patch] Input - Add a wheel to Logitech Wheel Mouse [3/13] Vojtech Pavlik
2002-11-15 8:11 ` [patch] Input - Only check for SET_LEDS in atkbd.c when really needed [4/13] Vojtech Pavlik
2002-11-15 8:12 ` Vojtech Pavlik [this message]
2002-11-15 8:12 ` [patch] Input - Remove dead logibusmouse.h [6/13] Vojtech Pavlik
2002-11-15 8:13 ` [patch] Input - Back out bad 'fix' in hid-input.c [7/13] Vojtech Pavlik
2002-11-15 8:14 ` [patch] Input - fix open counting in usbmouse/usbkbd [8/13] Vojtech Pavlik
2002-11-15 8:14 ` [patch] Input - fix typo in amikbd.c [9/13] Vojtech Pavlik
2002-11-15 8:15 ` [patch] Input - handle return values from interface_register() [10/13] Vojtech Pavlik
2002-11-15 8:16 ` [patch] Input - Add defaults for ATKBD et al [11/13] Vojtech Pavlik
2002-11-15 8:17 ` [patch] Input - Add more descriptive comments to input/serio [12/13] Vojtech Pavlik
2002-11-15 8:18 ` [patch] Input - Add "PS/2 keyboard" to ATKBD help [13/13] Vojtech Pavlik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021115091214.D16779@ucw.cz \
--to=vojtech@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox