Re: 2.6.9-rc2-mm4 + alps locks input in X (alps not identifying correctly)

From: Dmitry Torokhov
Date: Tue Sep 28 2004 - 01:26:33 EST


On Monday 27 September 2004 10:46 pm, Micha Feigin wrote:
> > Or better yet, use the auto-dev feature, which should work if you have
> > a new enough X driver and kernel patch.
> >
>
> auto-dev doesn't work for me and I don't have time to check it
> out.

Addition of Kensington ThinkingMouse / ExpertMouse support caused Synaptics
and ALPS protocol numbers to move to 8 and 9 respectively which broke Peter's
auto-dev detection.

Vojtech, we need to keep protcol numbers stable, I propose something like this:

enum psmouse_type {
PSMOUSE_PS2 = 0,
PSMOUSE_PS2PP,
PSMOUSE_THINKPS,
PSMOUSE_GENPS = 64, /* 4 byte protocol start */
PSMOUSE_IMPS,
PSMOUSE_IMEX,
PSMOUSE_SYNAPTICS = 128, /* 5+ byte protocols start */
PSMOUSE_ALPS,
};


Peter, if we adopt the scheme above you will have to check both for old and
new protocol numbers; in addition you need to BTN_TOOL_FINGER device bit to
make sure you are dealing with a touchpad.

Any holes here?

--
Dmitry
-
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/