Skip to contentSkip to conversation

Continue: psmouse.c - synaptics touchpad driver sync problem

DISCUSSION Dmitry Torokhov 2 participants 6 messages Jun 30, 2004 – Jul 6, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines

Am Mittwoch, 30. Juni 2004 08.02 schrieb Dmitry Torokhov unter "Re:
Continue:
psmouse.c - synaptics touchpad driver sync problem":

Quoted 4 lines

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..

Quoted 4 lines

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?

Quoted 1 line

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

Quoted 8 lines

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.

Quoted 6 lines

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?

Quoted 17 lines
Quoted 2 lines
Quoted 2 lines

drivers/input/serio/i8042.c: fe <- i8042 (interrupt, aux3, 12)

[181878]

Quoted 1 line
Quoted 1 line
Jun 28 16:01:20 qingwa kernel: drivers/input/serio/i8042.c: 00 <-

i8042

Quoted 4 lines
Quoted 1 line

(interrupt, aux3, 12) [181880]

Not quite sure what all this is about... Did you plug external keyboard here?

Possible.

Quoted 1 line
Quoted 1 line

[184574] Jun 28 16:01:22 qingwa kernel: drivers/input/serio/i8042.c:

00

Quoted 2 lines
Quoted 2 lines

<- i8042 (interrupt, aux3, 12) [184576] Jun 28 16:01:22 qingwa kernel:
drivers/input/serio/i8042.c: 18 <- i8042 (interrupt, aux3, 12)

Quoted 9 lines

[184585]

Quoted 4 lines

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?

Quoted 8 lines
Quoted 4 lines

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.

Quoted 7 lines

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

#1 lore raw

Dmitry: On synaptics page, I've seen that you've got tons of bugfixes for 2.6.7 on http://www.geocities.com/dt_or/input/2_6_7. Do I need something from there and is there a patch that contains all patches?

Sorry, I was in a hurry and forgot to attach the new kernel log file in my last mail. It is in the attachment, a log with the second patch you sent me. The patch is installed in messages-noacpi and ACPI disabled.
-> Why is the trace now so small? Did you disable DEBUG in your patch?
...oh yes! Then I'll have to recompile and retry...

Also I deinstalled the Powermanagement and ACPI in kernel configuration, as suggested by Pavlik. Result is:
No, it still does not work, problem No. 3/4 reproduced, the powermanagement is not the problem (see messages-noacpi)!

Am Mittwoch, 30. Juni 2004 15.23 schrieb Dmitry Torokhov unter "RE: Continue:
psmouse.c - synaptics touchpad driver sync problem":

Quoted 9 lines
Quoted 9 lines

Am Mittwoch, 30. Juni 2004 08.02 schrieb Dmitry Torokhov unter "Re:
Continue:

psmouse.c - synaptics touchpad driver sync problem":

Quoted 4 lines

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.

Quoted 5 lines
Quoted 3 lines

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..

System load does not have to be really high, so it happens quite often. This is very disturbing, like in MacOS 15 years ago! (That was one of the main reasons for me not to use Mac, besides the fact that an application could crash the whole system!) I think we now have a multitasking OS, haven't we?!? :-(

It is sometimes better, sometimes worse, but not really depending on system load, it seems. Just a minute ago it was really bad. Strange.

Quoted 8 lines
Quoted 4 lines

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?

No and yes. At home I have a wheel mouse, at work a normal PS/2 mouse, both with diffrent keyboards and both with the same problem. I never successfully used an external mouse since I upgraded to SuSE 9.1 (Kernel 2.6). I had no problems with kernel 2.4 and the same hardware.

Quoted 4 lines
Quoted 1 line

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

I see. I'll try the tool. In kernel 2.4, no addidional driver was necessary, it always worked out of the box.

Isn't there an apt4rpm repository for SuSE 9.1 with these tools anywhere? Obviously not in the repositories of my sources.list. :-(

Pavlik: You work for SuSE? If synaptics is so vital for a touchpad to work, why aren't tools and driver installed and configured by SuSE 9.1 per default? It is even not part of the distribution!?!

Quoted 10 lines
Quoted 10 lines

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.

Quoted 7 lines
Quoted 3 lines

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?

Yes, I had none of all six problems in 2.4.

For i8042.nomux, I check it again, just to be sure... ...yes, the external keyboard works, but not the external mouse

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

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?

I don't really know how many daemons are polling. On the desktop, I run kpowersave and I configured powersaving so that it should shotdown before battery is ampty, so there must be a daemon polling. It's just configure with normal KDE/YaST powersaving controls.

Regards
Marc

Jul  1 12:36:24 qingwa syslogd 1.4.1: restart.
Jul  1 12:36:24 qingwa hcid[1994]: HCI daemon ver 2.4 started
Jul  1 12:36:25 qingwa sdpd[2005]: sdpd v1.5 started 
Jul  1 12:36:27 qingwa rcpowersaved: INFO: Your system does neither support ACPI nor APM. the powersave service does not provide any features for this machine, therefore the service is skipped.
Jul  1 12:36:28 qingwa rcpowersaved: CPU frequency scaling is not supported by your processor.
Jul  1 12:36:28 qingwa rcpowersaved: enter 'POWERSAVE_CPUFREQD_MODULE=off' in /etc/sysconfig/powersave/common to avoid this warning.
Jul  1 12:36:28 qingwa [powersaved][2145]: ERROR in Function checkACPI; line 30: Neither APM nor ACPI is supported!
Jul  1 12:36:28 qingwa sshd[2202]: Server listening on :: port 22.
Jul  1 12:36:29 qingwa kernel: klogd 1.4.1, log source = /proc/kmsg started.
Jul  1 12:36:29 qingwa kernel: Inspecting /boot/System.map-2.6.7
Jul  1 12:36:29 qingwa kernel: Loaded 27761 symbols from /boot/System.map-2.6.7.
Jul  1 12:36:29 qingwa kernel: Symbols match kernel version 2.6.7.
Jul  1 12:36:29 qingwa kernel: No module symbols loaded - kernel modules not enabled. 
Jul  1 12:36:29 qingwa kernel: XFS mounting filesystem loop0
Jul  1 12:36:29 qingwa kernel: Ending clean XFS mount for filesystem: loop0
Jul  1 12:36:29 qingwa kernel: Linux Kernel Card Services
Jul  1 12:36:29 qingwa kernel:   options:  [pci] [cardbus]
Jul  1 12:36:29 qingwa kernel: PCI: Found IRQ 11 for device 0000:00:03.0
Jul  1 12:36:29 qingwa kernel: PCI: Sharing IRQ 11 with 0000:00:01.4
Jul  1 12:36:29 qingwa kernel: Yenta: CardBus bridge found at 0000:00:03.0 [1584:3000]
Jul  1 12:36:29 qingwa kernel: Yenta: ISA IRQ mask 0x00b8, PCI irq 11
Jul  1 12:36:29 qingwa kernel: Socket status: 30000821
Jul  1 12:36:29 qingwa kernel: Bluetooth: Core ver 2.5
Jul  1 12:36:29 qingwa kernel: NET: Registered protocol family 31
Jul  1 12:36:29 qingwa kernel: Bluetooth: HCI device and connection manager initialized
Jul  1 12:36:29 qingwa kernel: Bluetooth: HCI socket layer initialized
Jul  1 12:36:29 qingwa kernel: Bluetooth: HCI USB driver ver 2.6
Jul  1 12:36:29 qingwa kernel: usbcore: registered new driver hci_usb
Jul  1 12:36:29 qingwa kernel: Bluetooth: HCI UART driver ver 2.1
Jul  1 12:36:29 qingwa kernel: Bluetooth: HCI H4 protocol initialized
Jul  1 12:36:29 qingwa kernel: Bluetooth: HCI BCSP protocol initialized
Jul  1 12:36:29 qingwa kernel: Bluetooth: VHCI driver ver 1.1
Jul  1 12:36:29 qingwa kernel: Bluetooth: L2CAP ver 2.2
Jul  1 12:36:29 qingwa kernel: Bluetooth: L2CAP socket layer initialized
Jul  1 12:36:29 qingwa kernel: NET: Registered protocol family 10
Jul  1 12:36:29 qingwa kernel: Disabled Privacy Extensions on device c0343c40(lo)
Jul  1 12:36:29 qingwa kernel: IPv6 over IPv4 tunneling driver
Jul  1 12:36:29 qingwa kernel: Disabled Privacy Extensions on device c9f65000(sit0)
Jul  1 12:36:33 qingwa ifup: No configuration found for sit0
Jul  1 12:36:49 qingwa kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
Jul  1 12:36:49 qingwa kernel: usbcore: registered new driver usbserial
Jul  1 12:36:49 qingwa kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
Jul  1 12:36:58 qingwa /usr/sbin/cron[7758]: (CRON) STARTUP (fork ok) 
Jul  1 12:36:59 qingwa kernel: Non-volatile memory driver v1.2
Jul  1 12:37:00 qingwa kernel: end_request: I/O error, dev fd0, sector 0
Jul  1 12:37:00 qingwa kernel: end_request: I/O error, dev fd0, sector 0
Jul  1 12:37:00 qingwa kernel: hdc: ATAPI 24X DVD-ROM drive, 512kB Cache
Jul  1 12:37:00 qingwa kernel: Uniform CD-ROM driver Revision: 3.20
Jul  1 12:37:00 qingwa /etc/hotplug/block.agent[7835]: grep: /sys/class/scsi_host/ide1/proc_name: No such file or directory
Jul  1 12:37:00 qingwa /etc/hotplug/block.agent[7835]: grep: /sys/class/scsi_host/ide1/proc_name: No such file or directory
Jul  1 12:37:00 qingwa kernel: st: Version 20040403, fixed bufsize 32768, s/g segs 256
Jul  1 12:37:00 qingwa kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Jul  1 12:37:00 qingwa /etc/hotplug/block.agent[7835]: new block device /block/hdc
Jul  1 12:37:01 qingwa kernel: BIOS EDD facility v0.15 2004-May-17, 1 devices found
Jul  1 12:37:12 qingwa kernel: agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
Jul  1 12:37:12 qingwa kernel: agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
Jul  1 12:37:12 qingwa kernel: agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
Jul  1 12:37:14 qingwa kdm: :0[8104]: pam_unix2: session started for user marc, service xdm-np 
Jul  1 12:38:10 qingwa gconfd (marc-8863): (Version 2.4.0.1) wird gestartet, Prozesskennung 8863, Benutzer »marc«
Jul  1 12:38:10 qingwa gconfd (marc-8863): Die Adresse »xml:readonly:/etc/opt/gnome/gconf/gconf.xml.mandatory« wurde an der Position 0 zu einer nur lesbaren Konfigurationsquelle aufgelöst
Jul  1 12:38:10 qingwa gconfd (marc-8863): Die Adresse »xml:readwrite:/home/marc/.gconf« wurde an der Position 1 zu einer schreibbaren Konfigurationsquelle aufgelöst
Jul  1 12:38:10 qingwa gconfd (marc-8863): Die Adresse »xml:readonly:/etc/opt/gnome/gconf/gconf.xml.defaults« wurde an der Position 2 zu einer nur lesbaren Konfigurationsquelle aufgelöst
Jul  1 12:38:46 qingwa kernel: atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
Jul  1 12:38:46 qingwa kernel: input: PS/2 Logitech Mouse on isa0060/serio4
Jul  1 12:39:03 qingwa kernel: psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 1 bytes away.
Jul  1 12:39:06 qingwa kernel: psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 1 bytes away.
Jul  1 12:39:29 qingwa kernel: psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 2 bytes away.
#2 lore raw
In reply to Marc Waeckerlin
Quoted 4 lines · Marc Waeckerlin

Dmitry: On synaptics page, I've seen that you've got tons of bugfixes for 2.6.7 on http://www.geocities.com/dt_or/input/2_6_7. Do I need something from there and is there a patch that contains all patches?

These are serio sysfs integration patches, they should not change the behavior of the system.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

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..

Quoted 8 lines

System load does not have to be really high, so it happens quite often. This is very disturbing, like in MacOS 15 years ago! (That was one of the main reasons for me not to use Mac, besides the fact that an application could crash the whole system!) I think we now have a multitasking OS, haven't we?!? :-(

It is sometimes better, sometimes worse, but not really depending on system load, it seems. Just a minute ago it was really bad. Strange.

I usually feel some hesitation in cursor movement under high disk load - do you experience something like that? Although, now that I think about it, it's usually not the cursor itself but KDE is lagging to redraw...

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

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

Quoted 9 lines
Quoted 3 lines

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

No and yes. At home I have a wheel mouse, at work a normal PS/2 mouse, both with diffrent keyboards and both with the same problem. I never successfully used an external mouse since I upgraded to SuSE 9.1 (Kernel 2.6). I had no problems with kernel 2.4 and the same hardware.

Just out of curiosity, what happens when you pass psmouse.proto=bare to the kernel as a boot option (or put "options psmouse proto=bare" in your /etc/modprobe.conf file if psmouse is compiled as a module)?

Signature · 1 line
Dmitry
#3 lore raw

Am Donnerstag, 1. Juli 2004 15.03 schrieb Dmitry Torokhov unter "Re: Continue:
psmouse.c - synaptics touchpad driver sync problem":

Quoted 5 lines · Marc Waeckerlin

I usually feel some hesitation in cursor movement under high disk load - do you experience something like that? Although, now that I think about it, it's usually not the cursor itself but KDE is lagging to redraw...

No, definitely the cursor. And not only if the HD usage is high, sometimes if the CPU load is high, the problem starts, and if CPU and HD usage are low again, the problem is still remaining. I cannot really see a clear correlation between system load and mouse waiting, but there seems to be some sort of weak correlation.

Quoted 3 lines

Just out of curiosity, what happens when you pass psmouse.proto=bare to the kernel as a boot option (or put "options psmouse proto=bare" in your /etc/modprobe.conf file if psmouse is compiled as a module)?

I'll try later, but what should habben, what should I look for?

Regards
Marc

#4 lore raw
In reply to Dmitry Torokhov

Am Donnerstag, 1. Juli 2004 15.03 schrieb Dmitry Torokhov unter "Re: Continue:
psmouse.c - synaptics touchpad driver sync problem":

Quoted 3 lines

Just out of curiosity, what happens when you pass psmouse.proto=bare to the kernel as a boot option (or put "options psmouse proto=bare" in your /etc/modprobe.conf file if psmouse is compiled as a module)?

I tested again with psmouse.proto=bare and psmouse.resetafter=3 and *internal* touchpad/keyboard *only*. Last time, I told you, there's no ovious effect and it still does not work. That might be correct for the external equipment, but with internal mouse, the effects are much more subtile:

psmouse.proto=bare

-> Now the internal mouse behaves as bad as the external one! It jumps around
like crazy and clicks everywhere. That means, problems No. 3 and No.4 now also apply to the internal mouse!

-> But problem No. 5 is resolved! Clicking on the touchpad does a button-1
click.

psmouse.resetafter=3

-> Problems No. 1 and No. 2 now become much worse! That means when moving the
mouse cursor, cursor often stops/blocks. Then I have to keep the fingers off the touchpad for several seconds, before I can continue to move the mouse. Either regardless of the system load, or the lowest system load can start this effect, that's not so clear.

-> Also the cursor now jumps much more than ever before.

So, that might be a way for a workaround: Can "reset" be disabled, e.g. secifying "psmouse.resetafter=0"?

Regards
Marc