On 02/09/13(Mon) 11:44, Stefan Sperling wrote: > I've got a synaptics touchpad which is taking a relatively large > amount of time to respond to the synaptics magic query during resume. > > pms0 at pckbc0 (aux slot) > wsmouse0 at pms0 mux 0 > wsmouse1 at pms0 mux 0 > pms0: Synaptics clickpad, firmware 8.0 > > The pms(4) driver gives up on it quickly, and then I end up with no > mouse in X after resume. I have to restart X to get the mouse back, > which works because at that time the touchpad has become responsive again. > > This diff fixes that issue by making the pms driver wait longer. > But I don't want it to wait this long during usual touchpad detection, > since that would get in the way when no synaptics touchpad is present.
Did you consider checking for the value of 'cold' instead? You might also rely on the fact that if you have a "sc->synaptics" already allocated to try harder. Because in this case you know that you have a synaptic touchpad. More generically I don't think that we need to resend the magic sequence at every resume because the device should not change ;) Martin
