[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Save trackpad settings during sleep



On Sat, Jun 09, 2001 at 09:24:44PM +0200, Michael Schmitz wrote:
 
> > to check for PowerBook4,1 before PowerBook2,2 (since this one should be able
> > to have the powersave nap stuff going..).  pmud is finding the device I
> > believe, it's just that it's writing settings to it just before the kernel
> > gets a chance to reprobe and so when that happens, it's reset again..
> 
> I don't think the kernel 'resets' the device, it justs initiates a bus
> reset and that brings all devices to the powerup defaults. If pmud looks
> for the trackpad before the bus reset is done the device probably isn't
> there yet. Anyway, if that happens while user space is already running
> again we've got a race. pmud used to run only after device wakeup in 2.2.

pmud (in debug mode) implies it's setting things back to the way they
were, but yes there dpes seem to be a race and this is being called prior
to device wakeup.  I'm hoping just tossing in a sleep(2) or so will 'fix'
it..

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/



Reply to: