Messages in this thread | | | Date | Sat, 10 Jan 2004 14:05:36 +0100 (CET) | From | Gunter Königsmann <> | Subject | Re: [PATCH 2/2] Psmouse log and discard timed out bytes |
| |
Hmmm...
Needed me hours to apply the patches, don't know why, ---
No more bad clicks, no more keypress events --- but still loosing sync 2*n times at once, most of the times when changing the console, mostly at the 1st byte, the first of the two times occasionally at the 4th...
...New error message: bad data from KBC - timeout every about third sync loss.
Strange thing is: The sync losses mostly occour half a second after i have finished using the touchpad, and occasionally when I don't use it at all...
And they occour nearly everytime I switch consoles. (Not using framebuffer, X or something like this.)
Changing the data rate from the touchpad changes nothing.
Looked at all kernel options... If it is a timer problem --- ho can I find out this?
Yours,
Gunter.
On Today, Dmitry Torokhov wrote:
>From: Dmitry Torokhov <dtor_core@ameritech.net> >Date: Sat, 10 Jan 2004 03:46:03 -0500 >To: Gunter Königsmann <gunter.koenigsmann@gmx.de>, > Gunter Königsmann <gunter@peterpall.de> >Cc: linux-kernel@vger.kernel.org, Vojtech Pavlik <vojtech@suse.cz>, > Andrew Morton <akpm@osdl.org> >Subject: Re: [PATCH 2/2] Psmouse log and discard timed out bytes > >=================================================================== > > >ChangeSet@1.1513, 2004-01-10 02:52:04-05:00, dtor_core@ameritech.net > Input: psmouse - if keyboard controller reports a timeout or a parity error > do not try to process the byte, log the problem and drop it early. > > > psmouse-base.c | 7 +++++++ > 1 files changed, 7 insertions(+) > > >=================================================================== > > > >diff -Nru a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c >--- a/drivers/input/mouse/psmouse-base.c Sat Jan 10 03:23:08 2004 >+++ b/drivers/input/mouse/psmouse-base.c Sat Jan 10 03:23:08 2004 >@@ -121,6 +121,13 @@ > if (psmouse->state == PSMOUSE_IGNORE) > goto out; > >+ if (flags & (SERIO_PARITY|SERIO_TIMEOUT)) { >+ printk(KERN_WARNING "psmouse.c: bad data from KBC -%s%s\n", >+ flags & SERIO_TIMEOUT ? " timeout" : "", >+ flags & SERIO_PARITY ? " bad parity" : ""); >+ goto out; >+ } >+ > if (psmouse->acking) { > switch (data) { > case PSMOUSE_RET_ACK: >
-- The difference between common-sense and paranoia is that common-sense is thinking everyone is out to get you. That's normal -- they are. Paranoia is thinking that they're conspiring. -- J. Kegler - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |