Re: ALPS psmouse_reset on reconnect confusing Tecra M2

From: Micheal Marineau
Date: Sun Jul 10 2005 - 02:18:28 EST


Dmitry Torokhov wrote:
> On Tuesday 05 July 2005 23:53, Micheal Marineau wrote:
>
>>Dmitry Torokhov wrote:
>>
>>>On Monday 04 July 2005 16:14, Mike Waychison wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>I just upgrade my Tecra M2 this weekend to the latest GIT tree and
>>>>noticed that my mouse pointer/touchpad is now broken on resume.
>>>>
>>>>Investigating, it appears that mouse device gets confused due to the
>>>>introduced psmouse_reset(psmouse) during reconnect:
>>>>
>>>>http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f3a5c73d5ecb40909db662c4d2ace497b25c5940
>>>
>>>
>>>Hi,
>>>
>>>Please try the following patch:
>>>
>>> http://www.ucw.cz/~vojtech/input/alps-suspend-typo
>>>
>>
>>This fixed the problem for mylaptop, but ONLY if I had #define DEBUG in
>>alps.c, switch it back to the usual #undef and the exact same problem
>>happens. I've got no idea what's going on, I'll poke at it more when
>>I'm awake....
>>
>
>
> Hi,
>
> Sorry, any update on this topic? Does it still only work with DEBUG?
>
> Thanks!

I have no clue why DEBUG helped, but it seems to have been simply dumb
luck as the issue came up again with DEBUG still on. An easy workaround
was to compile psmouse as a module and unload/load it during the suspend
cycle (automatic with the hibernate script, it has psmouse in it's
blacklist). I haven't dug into it to see what exactly doesn't get
initilized during resume that should.


--
Michael Marineau
marineam@xxxxxxxxxxxxx
Oregon State University

Attachment: signature.asc
Description: OpenPGP digital signature