Messages in this thread Patch in this message | | | From | David Woodhouse <> | Subject | Re: PROBLEM: PS/2 mouse wart does not work, while scratch pad does. | Date | Wed, 23 Oct 2002 00:46:31 +0100 |
| |
Take.Vos@binary-magic.com said: > hardware:DELL Inspiron 8100
> The internal scratch pad works, but the internal wart mouse doesn't, > in the BIOS it is set to use both devices for input. This is tested > with both Xfree86 and running cat on /dev/input/mice and /dev/input/ > mouse0 and /dev/input/event0.
Probing for various other PS/2 extensions appears to confuse the thing such that the clitmouse no longer works. If we probe for it first and then abort the other probes, it seems happier...
--- 1.16/drivers/input/mouse/psmouse.c Tue Oct 8 11:51:30 2002 +++ edited/drivers/input/mouse/psmouse.c Wed Oct 23 00:39:06 2002 @@ -311,6 +311,26 @@ if (psmouse_noext) 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. */
-- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |