Force mouse detection as imps/2 (and fix my KVM switch)
Subsystems (2)
PATCH RESEND 1/1 Force mouse detection as imps/2 (and fix my KVM switch)
After working out the symptoms of a problem I was having using my
scroll mouse with my KVM switch when running 2.6 kernels, I made this patch which fixes the problem for me. I think it would be useful to have this in the kernel, especially since it has other uses too.
I have a Logitech mouse with a scroll wheel that 2.6 kernels
detect as supporting the Logitech ps2++ protocol, and enable it as such. My KVM switch supports only the Microsoft imps2 protocol for using the scroll wheel, so after switching away from a box running a 2.6 kernel and back again, my scroll wheel no longer works; evbug doesn't see any mouse events at all when I turn the scroll wheel.
2.4 (and Windows) don't have this problem because they use imps2
drivers, which my mouse is compatible with. So the appended patch creates a new module/boot parameter, psmouse_imps2, largely copied from psmouse_noext. With the option, the mouse detection is limited to only the base ps2 protocol and the imps2 extensions, my mouse is detected as a generic imps/2 device, and the scroll wheel works properly again.
I've been using this patch for about a month. I've since seen
another use for this parameter; with it it is possible to disable the synaptics touchpad driver and still use an external imps2 mouse.
I'm not sure if short-circuiting the mouse detection this way
might leave some mice wedged, or cause them to be improperly detected though. Do the tests for imps/2 mice depend on any of the commands in the detection this patch skips to initialize the mouse somehow?
This patch is against -test4; it applies to -test4-mm4 with
offsets (I'm running -mm4). More than half the length of the patch is indentation. Is there a possibility of getting this applied?
Documentation/kernel-parameters.txt +2 -0
@@ -785,6 +785,8 @@ psmouse_noext [HW,MOUSE] Disable probing for PS2 mouse protocol extensions + psmouse_imps2 [HW,MOUSE] Probe only for Intellimouse PS2 mouse protocol extensions + pss= [HW,OSS] Personal Sound System (ECHO ESC614) Format: <io>,<mss_io>,<mss_irq>,<mss_dma>,<mpu_io>,<mpu_irq>
drivers/input/mouse/psmouse-base.c +62 -50
152 lines not on this page · raw message
Signature · 4 lines
Joseph Fannin [email protected] "Linus, please apply. Breaks everything. But is cool." -- Rusty Russell.
Dear diary, on Sun, Aug 31, 2003 at 03:06:19PM CEST, I got a letter, where [email protected] told me, that...
Documentation/kernel-parameters.txt line 791
Quoted 11 lines
diff -urN
linux-2.6.0-test4/Documentation/kernel-parameters.txtlinux-2.6.0-test4_changed/Documentation/kernel-parameters.txtDocumentation/kernel-parameters.txt +2
-0@@ -785,6 +785,8 @@ psmouse_noext [HW,MOUSE] Disable probing for PS2 mouse protocol extensions + psmouse_imps2 [HW,MOUSE] Probe only for Intellimouse PS2 mouse protocol extensions + pss= [HW,OSS] Personal Sound System (ECHO ESC614) Format: <io>,<mss_io>,<mss_irq>,<mss_dma>,<mpu_io>,<mpu_irq>
Just a trivial remark - please try to keep this file in more-or-less alphabetical order, thanks.
Kind regards,
Signature · 7 lines
Petr "Pasky" Baudis . Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away. -- Antoine de Saint-Exupery . Stuff: http://pasky.ji.cz/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Andrew Morton
Quoted 4 lines · <[email protected]> wrote:
This patch is against -test4; it applies to -test4-mm4 with
offsets (I'm running -mm4). More than half the length of the patch is indentation. Is there a possibility of getting this applied?Please resend as an attachment. I was unable to de-mime it.
Okay, I'm attaching a slightly changed patch that puts things back
in the roughly alphabetical order I found them in. It compiles and tests okay.
Signature · 5 lines
Joseph Fannin [email protected] "Bull in pure form is rare; there is usually some contamination by data." -- William Graves Perry Jr.
Documentation/kernel-parameters.txt +2 -0
@@ -783,6 +783,8 @@ before loading. See Documentation/ramdisk.txt. + psmouse_imps2 [HW,MOUSE] Probe only for Intellimouse PS2 mouse protocol extensions + psmouse_noext [HW,MOUSE] Disable probing for PS2 mouse protocol extensions pss= [HW,OSS] Personal Sound System (ECHO ESC614)
drivers/input/mouse/psmouse-base.c +62 -50
152 lines not on this page · raw message