Jan Harkes <[email protected]> writes:
> On Sun, Sep 29, 2002 at 05:38:17PM +0200, Jens Axboe wrote:
> > On Sun, Sep 29 2002, Alan Cox wrote:
> > > Most of my boxes won't even run a 2.5 tree yet. I'm sure its hardly
> > > unique. Middle of November we may begin to find out how solid the core
> > > code actually is, as drivers get fixed up and also in the other
> > > direction as we eliminate numerous crashes caused by "fixed in 2.4" bugs
> >
> > Well why don't they run with 2.5?
> >
> > Alan, I think you are a pessimist painting a much bleaker picture of 2.5
> > than it deserves. Sure lots of drivers may be broken still, I would be
> > naive if I thought that this is all changed in time for oct 31. Most of
> > these will not be fixed until people actually _use_ 2.5 (or 3.0-pre, or
> > whatever it will be called), and that will not happen until Linus
> > actually releases a -rc or similar. And so the fsck what? Noone expects
> > 2.6-pre/3.0-pre to be perfect.
>
> Ok, after losing a disk in the early 2.5 series, and not being able to
> compile pretty much any kernel since 2.5.33, I decided to give 2.5.39 a
> try last weekend.
>
> Built kernel, rebooted, almost seems to get stuch during the ide-probing
> (10 seconds wait is a conservative estimate), but it came up in single
> user. Checking for errors in /proc/kmsg, nothing. Great reboot
> multiuser start X open a window lose all access to my keyboard. Completely
> log in remotely with ssh, hmm kernel errors about unknown scancodes.
I have a similar problem. The 2.5 keyboard/psmouse driver does not work
at all with my KVM. It's a bit unusual combination in that I run an
Intellimouse on it and the KVM doesn't let all Intellimouse extensions
through, but it is still autodetected as that. Normally (xfree86, 2.4 gpm,
other OS) it works fine when just setting PS/2 mouse maually. Even when I
hack the kernel to force PS/2 instead of the IMPS/2 then I just get
endless "psmouse: lost synchronization .." messages.
When I don't use the mouse and just use the keyboard it usually
works fine some time, but then eventually when doing more keyboard work
(e.g. editing a file on the console) the keyboard locks up
again with the mouse driver complaining about 'lost sychronization'
I guess it's needed now to use USB keyboard/mouse with 2.5 :-(
-Andi
This is the patch to force a particular mouse type, also adds some debugging
for this case. The lost byte is always a '0'
--- linux/drivers/input/mouse/psmouse.c-o 2002-09-01 00:14:40.000000000 +0200
+++ linux/drivers/input/mouse/psmouse.c 2002-09-27 03:45:55.000000000 +0200
@@ -65,6 +65,8 @@
#define PSMOUSE_IMPS 5
#define PSMOUSE_IMEX 6
+static int mousetype = -1;
+
static char *psmouse_protocols[] = { "None", "PS/2", "PS2++", "PS2T++", "GenPS/2", "ImPS/2", "ImExPS/2" };
/*
@@ -191,7 +193,11 @@
}
if (psmouse->pktcnt && time_after(jiffies, psmouse->last + HZ/20)) {
+ int i;
+
printk(KERN_WARNING "psmouse.c: Lost synchronization, throwing %d bytes away.\n", psmouse->pktcnt);
+ for (i = 0; i < psmouse->pktcnt; i++)
+ printk("%02x ", psmouse->cmdbuf[i]);
psmouse->pktcnt = 0;
}
@@ -459,6 +465,8 @@
{
unsigned char param[2];
+ if (mousetype != -1)
+ return mousetype;
/*
* First, we check if it's a mouse. It should send 0x00 or 0x03
* in case of an IntelliMouse in 4-byte mode or 0x04 for IM Explorer.
@@ -604,6 +612,15 @@
psmouse_initialize(psmouse);
}
+static int set_mousetype(char *opt)
+{
+ int arg;
+ if (get_option(&opt,&arg))
+ mousetype = arg;
+}
+
+__setup("mouse=", set_mousetype);
+
static struct serio_dev psmouse_dev = {
.interrupt = psmouse_interrupt,
.connect = psmouse_connect,
On 30 Sep 2002, Andi Kleen wrote:
> I have a similar problem. The 2.5 keyboard/psmouse driver does not work
> at all with my KVM. It's a bit unusual combination in that I run an
> Intellimouse on it and the KVM doesn't let all Intellimouse extensions
> through, but it is still autodetected as that. Normally (xfree86, 2.4 gpm,
> other OS) it works fine when just setting PS/2 mouse maually. Even when I
> hack the kernel to force PS/2 instead of the IMPS/2 then I just get
> endless "psmouse: lost synchronization .." messages.
I have some other reports on my status page showing problems with the KVM
and mice/keyboards. What is the last kernel version you've seen this with?
On Mon, Sep 30, 2002 at 02:19:38PM -0500, Thomas Molina wrote:
> On 30 Sep 2002, Andi Kleen wrote:
>
> > I have a similar problem. The 2.5 keyboard/psmouse driver does not work
> > at all with my KVM. It's a bit unusual combination in that I run an
> > Intellimouse on it and the KVM doesn't let all Intellimouse extensions
> > through, but it is still autodetected as that. Normally (xfree86, 2.4 gpm,
> > other OS) it works fine when just setting PS/2 mouse maually. Even when I
> > hack the kernel to force PS/2 instead of the IMPS/2 then I just get
> > endless "psmouse: lost synchronization .." messages.
>
> I have some other reports on my status page showing problems with the KVM
> and mice/keyboards. What is the last kernel version you've seen this with?
2.5.39
-Andi