Re: PROBLEM: PS/2 mouse wart does not work, while scratch pad does.

From: Vojtech Pavlik (vojtech@suse.cz)
Date: Wed Oct 23 2002 - 03:42:22 EST


On Wed, Oct 23, 2002 at 12:46:31AM +0100, David Woodhouse wrote:

> 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...

Thanks, applied.

> --- 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.
> */

-- 
Vojtech Pavlik
SuSE Labs
-
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/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:01:02 EST