Mailing List Archive

2.2.0-pre8 fails to detect my PS/2 mouse
Hi!
After the changes to pc_keyb.c in 2.2.0-pre8, the kernel fails to
detect my PS/2 mouse. The problem seems to be in
detect_auxiliary_port(), but I am not sure.
I backed out the changes to pc_keyb.c in 2.2.0-pre8 and then the
kernel was able to detect my mouse.
More information (like system information) is available on request.
Thanks,
peloy.-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: 2.2.0-pre8 fails to detect my PS/2 mouse [ In reply to ]
"Eloy A. Paris" wrote:
> After the changes to pc_keyb.c in 2.2.0-pre8, the kernel fails to
> detect my PS/2 mouse. The problem seems to be in
> detect_auxiliary_port(), but I am not sure.
Dang.
Could you please try the following debugging printks and send
me the results? (Please add the lines beginning with '+' by hand,
removing the plus signs.)
What kind of machine is this?
Any others with problems with the PS/2 mouse on pre-8?
Johan Myréen
jem@iki.fi
kb_wait();
outb(KBD_CCMD_WRITE_AUX_OBUF, KBD_CNTL_REG);
kb_wait();
outb(0x5a, KBD_DATA_REG); /* 0x5a is a random dummy value. */
status = inb(KBD_STATUS_REG);
while (!(status & KBD_STAT_OBF) && loops--) {
mdelay(1);
status = inb(KBD_STATUS_REG);
}
if (status & KBD_STAT_OBF) {
+ printk("kbd status reg: 0x%02x\n", status);
val = inb(KBD_DATA_REG);
+ printk("got 0x%02x from kbd data reg.\n", val);
if (val == 0x5a && (status & KBD_STAT_MOUSE_OBF)) {
printk(KERN_INFO "Detected PS/2 Mouse Port.\n");
retval = 1;
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: 2.2.0-pre8 fails to detect my PS/2 mouse [ In reply to ]
Eloy A. Paris (eparis@ven.ra.rockwell.com) wrote:
> Hi!
>
> After the changes to pc_keyb.c in 2.2.0-pre8, the kernel fails to
> detect my PS/2 mouse. The problem seems to be in
> detect_auxiliary_port(), but I am not sure.
This works for me.
Jon
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/