Skip to contentSkip to conversation

KVM & mouse wheel

DISCUSSION Dmitry Torokhov 2 participants 2 messages Aug 4, 2004 Input drivers

lore
Share & tools
lore
#0 lore raw
Quoted 27 lines · Vojtech Pavlik
Quoted 7 lines · Dmitry Torokhov
Quoted 6 lines · Vojtech Pavlik
Quoted 4 lines · Dmitry Torokhov
Quoted 3 lines · Marko Macek
Quoted 1 line · Jesper Juhl

<>I also had problems with my KVM switch and mouse when I

initially

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

moved to
2.6, but adding this kernel boot parameter fixed it, meybe it

will help

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

you as well : psmouse.proto=imps

This doesn't help. Only the patch I sent helps me. The problem is

that the

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

even with psmouse.proto=imps or exps, the driver still probes for synaptics which I
consider a bug.

No it is not - Synaptics with a track-point on a passthrough port

will have

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

track-point disabled if it is not reset after probing for imps/exps.

Hmm, does the imps/exps probe succeed in this case?

Quoted 8 lines
Quoted 1 line

No, it does not, at least not mine. It either does bare PS/2 or native,

but

Quoted 1 line

there are other Synaptics touchpads that can also do imps.

Ok, so how about issuing a reset when the imps probe fails? That'd take care of all the cases, and I suppose a Synaptics pad that can do imps will not be confused by it.

Synaptics requires full reset, reset-disable alone is not enough. Plus, when synaptics is detected but left in emulation mode, the driver does synaptics-specific reset which initializes stuff that survives reset-disable (for example it enables gestures so tapping is guaranteed to work).

Additionally I think it's a good idea to detect hardware regardless of the protocol it is using so user can see what he has.

Anyway, I think that explicitely calling reset-disable after each failed probe is a good idea... or maybe not after each probe but just once, before probing for generic protocols (imps/exps), like in the attached patch.

--
Dmitry

drivers/input/mouse/psmouse-base.c renamed from drivers/input/mouse/psmouse-base.c.orig +6 -0
@@ -461,6 +461,12 @@
 			return type;
 	}
 
+/*
+ * Reset to defaults in case the device got confused by extended
+ * protocol probes.
+ */
+	psmouse_command(psmouse, NULL, PSMOUSE_CMD_RESET_DIS);
+
 	if (max_proto >= PSMOUSE_IMEX && im_explorer_detect(psmouse)) {
 
 		if (set_properties) {
#1 lore raw

Re: KVM & mouse wheel [PATCH]

Quoted 6 lines · Dmitry Torokhov

Anyway, I think that explicitely calling reset-disable after each failed probe is a good idea... or maybe not after each probe but just once, before probing for generic protocols (imps/exps), like in the attached patch.

Besides above, the attached patch moves setting the streaming mode above setting of resolution/rate/scaling. With that, the mouse works fine for me in 'imex' mode without any overrides.

Mark

input/mouse/psmouse-base.c renamed from input/mouse/psmouse-base.c.orig +12 -6
@@ -461,6 +461,12 @@
 			return type;
 	}
 
+/*
+ * Reset to defaults in case the device got confused by extended
+ * protocol probes.
+ */
+	psmouse_command(psmouse, NULL, PSMOUSE_CMD_RESET_DIS);
+
 	if (max_proto >= PSMOUSE_IMEX && im_explorer_detect(psmouse)) {
 
 		if (set_properties) {
@@ -581,6 +587,12 @@
 	unsigned char param[2];
 
 /*
+ * We set the mouse into streaming mode.
+ */
+
+	psmouse_command(psmouse, param, PSMOUSE_CMD_SETSTREAM);
+
+/*
  * We set the mouse report rate, resolution and scaling.
  */
 
@@ -589,12 +601,6 @@
 		psmouse_set_resolution(psmouse);
 		psmouse_command(psmouse,  NULL, PSMOUSE_CMD_SETSCALE11);
 	}
-
-/*
- * We set the mouse into streaming mode.
- */
-
-	psmouse_command(psmouse, param, PSMOUSE_CMD_SETSTREAM);
 }
 
 /*