From: minyard@bnr.ca (Corey Minyard) Subject: Logitech busmouse fix for 0.98 Date: 30 Sep 1992 04:05:32 GMT
I retreived 0.98 and tried it out, and it failed when I started X.
It turns out the failure to detect a MS busmouse turned off the
logitech busmouse. The following is a quick hack to fix it. I
could not think of a more elegant way without changing the include
file. Apply this patch in linux/kernel/chr_drv.
Corey
minayrd@bnr.ca
========================================================================
*** mouse.c Thu Sep 10 19:10:50 1992
--- /usr/src/linux/kernel/chr_drv/mouse.c Tue Sep 29 22:46:41 1992
***************
*** 20,25 ****
--- 20,26 ----
extern long bus_mouse_init(long);
extern long psaux_init(long);
extern long ms_bus_mouse_init(long);
+ extern void bus_mouse_preinit(void);
int mse_busmouse_type;
***************
*** 50,55 ****
--- 51,57 ----
long mouse_init(long kmem_start)
{
+ bus_mouse_preinit();
kmem_start = bus_mouse_init(kmem_start);
kmem_start = psaux_init(kmem_start);
kmem_start = ms_bus_mouse_init(kmem_start);
*** busmouse.c Tue Sep 29 01:40:37 1992
--- /usr/src/linux/kernel/chr_drv/busmouse.c Tue Sep 29 22:47:14 1992
***************
*** 242,248 ****
for (i = 0; i < 100000; i++); /* busy loop */
if (inb(MSE_SIGNATURE_PORT) != MSE_SIGNATURE_BYTE) {
printk("No Logitech bus mouse detected.\n");
- mouse.present = 0;
return kmem_start;
}
outb(MSE_DEFAULT_MODE, MSE_CONFIG_PORT);
--- 242,247 ----
***************
*** 289,295 ****
if (msfound == 1) {
printk("No Microsoft bus mouse detected.\n");
- mouse.present = 0;
return kmem_start;
}
--- 288,293 ----
***************
*** 301,304 ****
--- 299,308 ----
mouse.dx = mouse.dy = 0;
printk("Microsoft Bus mouse detected and installed.\n");
return kmem_start;
+ }
+
+ void
+ bus_mouse_preinit(void)
+ {
+ mouse.present = 0;
}
-- ======================================================================Corey Minyard