public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-06-30 13:23 Dmitry Torokhov
  2004-07-01 12:34 ` Marc Waeckerlin
  2004-07-01 12:55 ` Marc Waeckerlin
  0 siblings, 2 replies; 23+ messages in thread
From: Dmitry Torokhov @ 2004-06-30 13:23 UTC (permalink / raw)
  To: Marc Waeckerlin; +Cc: laflipas, linux-kernel, t.hirsch, Vojtech Pavlik

> Am Mittwoch, 30. Juni 2004 08.02 schrieb Dmitry Torokhov unter "Re:
> Continue:
> psmouse.c - synaptics touchpad driver sync problem":
> > The mux got confused as to where the byte came from. They byte itself
> > seems to be in line with other data in the stream. At this moment your
> > mouse has probably started jumping around. The patch I send earlier
> > should help with this kind of problem.
> 
> Well, there are several things:
>  1) Cursor hangs on system load with internal mousepad
>     (no external mouse connected)

You mean when the system load is high? Yes, that can happen.. 

>  2) Cursor jumps a bit with internal mousepad
>     (no external mouse connected)
>  3) Cursor jumps like crazy when moving external mouse
>  4) Cursor randomly clicks when moving external mouse

Has the external mouse ever worked in 2.6? Or is it always
just randomly clickng stuff? Have you tried connecting another
mouse?

>  5) Hitting the mouse pad does not do a button1-click

I gather you do not have the X Synaptis driver installed?
Check out http://w1.894.telia.com/~u89404340/touchpad/index.html

>  6) Sometimes the keyboard does not work anymore or
>     sends neverending random events - even with no
>     external mouse/keyboard
> 
> I did not recognize that the previous patch helped in any of these
> problems, but No. 2 is the hardest to check, because I have to work
> for a while until it occurs.
> 
> The second patch does not help either.
> 
> The i8042.nodemux option only "resolved" No. 3 and No. 4, because the
> external mouse was no more available. Until now, nothing makes anything
> better.
>

Just to confirm - you are saying that the touchpad + external mouse
worked together fine in 2.4 but in 2.6 with i8042.nomux the external
mouse does not work, correct?
 
> 
> > > drivers/input/serio/i8042.c: fe <- i8042 (interrupt, aux3, 12)
> [181878]
> > > Jun 28 16:01:20 qingwa kernel: drivers/input/serio/i8042.c: 00 <-
> i8042
> > > (interrupt, aux3, 12) [181880]
> 
> > Not quite sure what all this is about... Did you plug external keyboard
> > here?
> 
> Possible.
> 
> 
> > > [184574] Jun 28 16:01:22 qingwa kernel: drivers/input/serio/i8042.c:
> 00
> > > <- i8042 (interrupt, aux3, 12) [184576] Jun 28 16:01:22 qingwa kernel:
> > > drivers/input/serio/i8042.c: 18 <- i8042 (interrupt, aux3, 12)
> [184585]
> 
> > It seems that we are missing a byte between ff and 18, delay between 2
> > bytes is about a second... Where did the byte go? Do you have DMA turned
> > on on your hard driver? Anything polling battery status? Can't do
> > anything here...
> 
> Do you mean hard disk DMA? Then Yes for DMA and yes for polling.
>

Ok, what program does the polling? What is the polling interval? Does
it help if you stop the program?

> 
> > Could you change drivers/input/mouse/psmouse-base.c - psmouse_interrupt()
> > in call to time time_after HZ/2 to HZ/4. You may see more "lost x bytes"
> > messages but I bet touchpad handling will feel much better.
> 
> I'll try if I can find out what you mean...
> ...ok, did the change.
> 
> As far as I understand, it has only effect on internal touchpad. I will
> therefore need some time for long time check. You'll hear from me later,
> but this surely won't resolve problems No. 2 - 6.
> 
> It is now together with your second patch, you first patch is no more in
> my sources. Is this good? (I understand that by "Vanilla" you mean the
> original source without your first patch?)

Yes.

--
Dmitry

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-07-01 13:54 Dmitry Torokhov
  2004-07-02 15:10 ` Marc Waeckerlin
  0 siblings, 1 reply; 23+ messages in thread
From: Dmitry Torokhov @ 2004-07-01 13:54 UTC (permalink / raw)
  To: Marc Waeckerlin; +Cc: laflipas, linux-kernel, t.hirsch, Vojtech Pavlik

Marc Waeckerlin wrote:
> 
> Ok, here's the /var/log/messages with your patch *and* DEBUG enabled. I
> gzipped it, otherwise it's too big.
> 

I see absolutely nothing wrong in the data stream from your external
mouse, so... how is it configured in X{Free86|org}? What type is it?
Does it work in text console (with GPM)? What is your GPM setup?

Try this - in the text console do:

gpm -k
gpm -m /dev/input/mice -t ps2

Try working the mouse, is it good?

--
Dmitry   

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-06-29 14:32 Dmitry Torokhov
       [not found] ` <200406291808.08186.Marc.Waeckerlin@siemens.com>
  0 siblings, 1 reply; 23+ messages in thread
From: Dmitry Torokhov @ 2004-06-29 14:32 UTC (permalink / raw)
  To: Marc Waeckerlin; +Cc: t.hirsch, laflipas, linux-kernel

Marc Waeckerlin wrote:
> Am Freitag, 25. Juni 2004 16.02 schrieb Dmitry Torokhov unter "Re:
> Continue:
> psmouse.c - synaptics touchpad driver sync problem":
> > Anyway, I also have a tiy patch to try out (attached, not tested/
> > not compiled). Please let me know how ifit makes any improvement.
> 
> Sorry for the delay.
> 
> No, unfortunately no improvement at all.
>
 
Yeah, I figure there would not be any. Still I have a nagging suspicion
that the mux gets confused and I would like to see the full dmesg with
this patch applied and DEBUG enabled. Is there any change of getting it?

Actually, if you could change the patch so it would print not only data
but also str, like this:

printk(KERN_INFO "i8042.c: MUX reports error condition %02x (%02x)\n",
       data, str);

it would be even better.

Thanks!

--
Dmitry 

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-06-25 14:02 Dmitry Torokhov
  2004-06-29 14:23 ` Marc Waeckerlin
  0 siblings, 1 reply; 23+ messages in thread
From: Dmitry Torokhov @ 2004-06-25 14:02 UTC (permalink / raw)
  To: Marc Waeckerlin; +Cc: t.hirsch, laflipas, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

Marc Waeckerlin wrote:
> Am Donnerstag, 24. Juni 2004 18.11 schrieb Dmitry Torokhov unter "RE:
> Continue: psmouse.c - synaptics touchpad driver sync problem":
> > You still need to use "dmesg -s 100000" even if you specifie logbuf_len.
> > Anyway, the data probably goes into /var/log/messages as well... If it
> is
> > there please send it my way (not on the list). I should be able to
> handle
> > 100K e-mail.
> 
> Of course, but there are still no other lines left...
> 
> I don't know how big I'd have to set the buffer, but I tried to set it to
> 2^25
> (~33E6), but then the buffer seems to be reset to default? What's the
> limit?
> 
> See the attachment for the 1E5 buffer.
> 

Still don't have the initialization part... Is there any way you could
make your /var/log/messages file accessible via ftp or http?

Anyway, I also have a tiy patch to try out (attached, not tested/
not compiled). Please let me know how ifit makes any improvement.

Thank you.

--
Dmitry

[-- Attachment #2: i8042-muxerr.patch --]
[-- Type: text/plain, Size: 653 bytes --]

diff -urN 2.6.7/drivers/input/serio/i8042.c linux-2.6.7/drivers/input/serio/i8042.c
--- 2.6.7/drivers/input/serio/i8042.c	2004-06-23 15:09:26.091494400 -0500
+++ linux-2.6.7/drivers/input/serio/i8042.c	2004-06-25 08:51:48.125136000 -0500
@@ -406,12 +406,12 @@
 	if (i8042_mux_values[0].exists && (str & I8042_STR_AUXDATA)) {
 
 		if (str & I8042_STR_MUXERR) {
+			printk(KERN_INFO "i8042.c: MUX reports error condition %02x\n", data);
 			switch (data) {
 				case 0xfd:
 				case 0xfe: dfl = SERIO_TIMEOUT; break;
 				case 0xff: dfl = SERIO_PARITY; break;
 			}
-			data = 0xfe;
 		} else dfl = 0;
 
 		dbg("%02x <- i8042 (interrupt, aux%d, %d%s%s)",

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-06-24 16:11 Dmitry Torokhov
  0 siblings, 0 replies; 23+ messages in thread
From: Dmitry Torokhov @ 2004-06-24 16:11 UTC (permalink / raw)
  To: Marc Waeckerlin; +Cc: t.hirsch, laflipas, linux-kernel

> Am Mittwoch, 23. Juni 2004 17.59 schrieb Dmitry Torokhov unter "RE:
> Continue:
> psmouse.c - synaptics touchpad driver sync problem":
> > Also, if you have time, please change #undef DEBUG to #define DEBUG in
> > drivers/input/serio/i8042.c, reboot, play a bit with touchpad; plug
> > external keyboard and send me output of "dmesg -s 100000".
> 
> dmesg looks like this, even with a log_buf_len=131072 boot-parameter,
> there's
> nothiung else left. These are the interesting parts:
> 
> [dmesg starts here, this is first line]
> erio/i8042.c: 80 <- i8042 (interrupt, aux1, 12) [158589]
<skip>

> All the other lines look similar to:
> drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux1, 12) [158654]
> 
> There is no more left from the boot process. That means, the trace is so
> frequent, that it overflows long before I can get the dmesg. I also tried
> with 33554432 Bytes, but there seem to be a size limit?
> 
> I don't think it makes sense to attach the full trace (>100kB), I don't
> want
> to send too large messages, what do you think?

You still need to use "dmesg -s 100000" even if you specifie logbuf_len.
Anyway, the data probably goes into /var/log/messages as well... If it is
there please send it my way (not on the list). I should be able to handle
100K e-mail.

Thanks,

Dmitry 

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-06-23 15:59 Dmitry Torokhov
  2004-06-24  9:35 ` Marc Waeckerlin
  2004-06-24 15:19 ` Marc Waeckerlin
  0 siblings, 2 replies; 23+ messages in thread
From: Dmitry Torokhov @ 2004-06-23 15:59 UTC (permalink / raw)
  To: Marc Waeckerlin; +Cc: t.hirsch, laflipas, linux-kernel

Marc Waeckerlin wrote:
> >
> > If your psmouse module is compiled it then use "psmouse.resetafter=3"
> > as a boot parameter. If psmouse is a module then put
> > "options psmouse resetafer=3" in your /etc/modprobe.conf
> 
> I am sorry, both options do not help at all - well, perhaps the jumping of
> the
> cursor when using the touchpad without external keyboard/mouse
> disconnected
> may be slightly better. But as soon as I plug in the external keyboard,
> the
> old problem occurs.
>

Hmm... OK, I see that you have an active multiplexing controller.
I wonder if it gets reset back to legacy mode when you plug your
external keyboard. (btw, it it just a keyboard or a docking station/
port replicator?). Try passing i8042.nomux to the kernel and try using
your touchpad/keyboard. If nomux does not help you may try to use
psmouse.proto=bare or psmouse.proto=imps to disable Synaptics-specific
extensions.

Also, if you have time, please change #undef DEBUG to #define DEBUG in
drivers/input/serio/i8042.c, reboot, play a bit with touchpad; plug
external keyboard and send me output of "dmesg -s 100000".
 
> Also I have a problem not yet mentioned, but it happened again this
> morning:
> Sometimes - without external keyboard/mouse, only using touchpad and
> internal
> keyboard -, sometimes the keyboard does not work anymore. If I hit any
> arbitrary key, nothing happens anymore. The mouse still works with the
> touchpad. Since I am often mobile, I can't acces the notebook through LAN
> and
> sice keynoard does not work anymore, I cant hit ctrl-alt-f1 or so to
> switch
> to a terminal or to watch the syslog on ctrl-alt-f10. The only thing I can
> do
> is to reboot using the mouse only.
> 

Ok, we were getting reports about this happening with Toshibas, no
resolution yet...

--
Dmitry


^ permalink raw reply	[flat|nested] 23+ messages in thread
* Continue: psmouse.c - synaptics touchpad driver sync problem
@ 2004-06-22  7:52 Marc Waeckerlin
  2004-06-22 13:07 ` Dmitry Torokhov
  0 siblings, 1 reply; 23+ messages in thread
From: Marc Waeckerlin @ 2004-06-22  7:52 UTC (permalink / raw)
  To: linux-kernel

In May there was a posting Thorsten Hirsch and a patch reply by Dmitry 
Torokhov that did not help Thorsten.

I have exactely the same problem, and other people too. There's a thread on 
this topic with a more detailed problem description at:
http://www.linuxquestions.org/questions/showthread.php?s=&postid=1004645#post1004645

The problem was pested regarding to Kernel 2.6.6, but an upgrade to Kernel 
2.6.7 did not help me. My problem is even much worse:
 - The touchpad sometimes hangs and jumps.
 - Hitting on the touchpad does no more click the first button.
 - When I connect an external keyboard, the cursor somtimes jumps
   around like crazy and clicks around like fool, even if I don't
   click anything, but only move. When I then touch the keyboard,
   the mouse becomes normal for a while - on SuSE kernel 2.6.5,
   since. Since upgrade to kernel 2.6.7, does not become normal
   any more.
 - Sometimes the keyboard fails too, that means the without touching
   any key, a character is continually written, e.g. hundreds of "5"
   appear on the xterm. If i hit a key, a completely other character
   is printed, but not once but endlessly repeated.
 - Killing and restarting the X Server does not resolve the problem,
   reboot is the only thing that works!

It's really bad, I can't work anymore since I upgraded to SuSE 9.1 and kernel 
2.6...

Kernel messages:

A lot of during use of touch pad:
- psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 1
- psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 4

When using the external mouse and the mouse jumps around (repeated 2-3 times):
- atkbd.c: Spurious ACK on isa0060/serio0. Some program like XFree86, might be 
trying access hardware directly
- psmoouse.c: bad data from KBC - timeout


I'm not subscribed to the kernel mailing list due to the heavy traffic. Please 
CC me in your reply (marc dot waeckerlin at siemens dot com). Thank's.

Regards
Marc Wäckerlin
marc.waeckerlin.org

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-07-06  7:28 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30 13:23 Continue: psmouse.c - synaptics touchpad driver sync problem Dmitry Torokhov
2004-07-01 12:34 ` Marc Waeckerlin
2004-07-01 13:03   ` Dmitry Torokhov
2004-07-01 15:38     ` Marc Waeckerlin
2004-07-06  7:27     ` Marc Waeckerlin
2004-07-01 12:55 ` Marc Waeckerlin
  -- strict thread matches above, loose matches on Subject: below --
2004-07-01 13:54 Dmitry Torokhov
2004-07-02 15:10 ` Marc Waeckerlin
2004-06-29 14:32 Dmitry Torokhov
     [not found] ` <200406291808.08186.Marc.Waeckerlin@siemens.com>
2004-06-29 17:53   ` Dmitry Torokhov
2004-06-30  6:02     ` Dmitry Torokhov
2004-06-30  8:25       ` Vojtech Pavlik
2004-06-30  8:45       ` Vojtech Pavlik
2004-06-30 12:58       ` Marc Waeckerlin
2004-06-25 14:02 Dmitry Torokhov
2004-06-29 14:23 ` Marc Waeckerlin
2004-06-24 16:11 Dmitry Torokhov
2004-06-23 15:59 Dmitry Torokhov
2004-06-24  9:35 ` Marc Waeckerlin
2004-06-24 15:19 ` Marc Waeckerlin
2004-06-22  7:52 Marc Waeckerlin
2004-06-22 13:07 ` Dmitry Torokhov
2004-06-23  9:34   ` Marc Waeckerlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox