Skip to contentSkip to conversation

2.6.0-test11 ps2 mouse giving corrupt data?

DISCUSSION Andrew Walrond 3 participants 4 messages Dec 12, 2003 – Dec 15, 2003

lore
Share & tools
lore
#0 lore raw

I have just switched from l2.4 to 2.6 on my thinkpad, and the mouse does something wierd when I boot into x (kde)

startx, then wait for everything to load, then move mouse. Mouse goes crazy, menus pop up everywhere as though I were pressing buttons, and after about 3 seconds, it all settles down and works perfectly.

So whats causing this? I 've read about the mouse detection stuff in recent 2.6 giving incorrect resolutions and stuff, but thats doesn't apply here. Its getting a load of bad data.

A buffer_len load of crud is being provided before the real stuff arrives perhaps?

Andrew Walrond

PS For 'mouse' read 'Little Red Nipple' which AFAIK is just a ps2 mouse as far as linux is concerned. Worked for 2.4 anyway.

#1 lore raw
Quoted 11 lines · Andrew Walrond

I have just switched from l2.4 to 2.6 on my thinkpad, and the mouse does something wierd when I boot into x (kde)

startx, then wait for everything to load, then move mouse. Mouse goes crazy, menus pop up everywhere as though I were pressing buttons, and after about 3 seconds, it all settles down and works perfectly.

So whats causing this? I 've read about the mouse detection stuff in recent 2.6 giving incorrect resolutions and stuff, but thats doesn't apply here. Its getting a load of bad data.

Quoted 7 lines

A buffer_len load of crud is being provided before the real stuff arrives perhaps?

Andrew Walrond

PS For 'mouse' read 'Little Red Nipple' which AFAIK is just a ps2 mouse as far as linux is concerned. Worked for 2.4 anyway.

Most likely X does something nasty to the keyboard controller while it is starting up. The psmouse kernel driver has an autosync feature which can get it out of trouble if you don't move the mouse for two seconds.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR
#2 lore raw
Quoted 5 lines · Vojtech Pavlik
Quoted 2 lines · Andrew Walrond

I have just switched from l2.4 to 2.6 on my thinkpad, and the mouse does something wierd when I boot into x (kde)

Quoted 9 lines
Quoted 3 lines

startx, then wait for everything to load, then move mouse. Mouse goes crazy, menus pop up everywhere as though I were pressing buttons, and after about 3 seconds, it all settles down and works perfectly.

Most likely X does something nasty to the keyboard controller while it is starting up. The psmouse kernel driver has an autosync feature which can get it out of trouble if you don't move the mouse for two seconds.

When did the autosync feature arrive? It doesn't work for me(k2.6.11 with MSI K7N2 Delta nforce2 mboard
and k2.6.11 with Shuttle Xpc SK41G FX41 mboard with VIA fsb) if ps2 kvm switch(Belkin) is switched away.

When sync is lost on my pc's I have to reboot. Symptoms are the same, on X or text term--any mouse movement triggers selects and buttons down but the correct events do not occur.

With a kvm switch k-2.6.? loses psmouse sync on the off pc. Rebooting is the only solution. I got tired of this and moved the mouse(logitech trackman fx) to one pc, so the other only has to boot with the mouse attached either to kvm or ps2 port on pc. That's fine until moving the mouse back and forth for rebooting causes the pc with X running to lose sync. Then it can't regain sync.

-Bob

#3 lore raw
Quoted 19 lines · Bob
Quoted 12 lines · Vojtech Pavlik
Quoted 8 lines · Andrew Walrond

I have just switched from l2.4 to 2.6 on my thinkpad, and the mouse does something wierd when I boot into x (kde)

startx, then wait for everything to load, then move mouse. Mouse goes crazy, menus pop up everywhere as though I were pressing buttons, and after about 3 seconds, it all settles down and works perfectly.

Quoted 5 lines

Most likely X does something nasty to the keyboard controller while it is starting up. The psmouse kernel driver has an autosync feature which can get it out of trouble if you don't move the mouse for two seconds.

Quoted 6 lines

When did the autosync feature arrive?
It doesn't work for me(k2.6.11 with
MSI K7N2 Delta nforce2 mboard
and k2.6.11 with Shuttle Xpc SK41G
FX41 mboard with VIA fsb) if ps2
kvm switch(Belkin) is switched away.

2.5.something.

Now when your Belkin switch resets the mouse, the autosync will not work, as it only compensates for lost bytes, not a complete protocol change. Use 'psmouse_noext" on the kernel command line to disable wheel handling and it'll work OK.

(Automatic mouse reinitialization is on the planned feature list.)

Quoted 23 lines

When sync is lost on my pc's I have to
reboot. Symptoms are the same, on X or
text term--any mouse movement triggers
selects and buttons down but the correct
events do not occur.

With a kvm switch k-2.6.? loses psmouse
sync on the off pc. Rebooting is the only
solution. I got tired of this and moved the
mouse(logitech trackman fx) to one pc,
so the other only has to boot with the
mouse attached either to kvm or ps2
port on pc. That's fine until moving the
mouse back and forth for rebooting
causes the pc with X running to lose
sync. Then it can't regain sync.

(quoted diff) +0 -2
-Bob
-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR