Re: Save trackpad settings during sleep

2001-06-13 Thread Michael Schmitz
> >On the Lombard, the ADB devices are apparently reprobed and reset before > >pmud restores the device state. If BenH is doing something differently on > >the iBook that prevents pmud from finding the device after sleep we'd > >better save the device state in the kernel and restore it there to be

Re: Save trackpad settings during sleep

2001-06-13 Thread benh
- RFC822 Header Follows -- From: <[EMAIL PROTECTED]> To: Michael Schmitz <[EMAIL PROTECTED]>, Subject: Re: Save trackpad settings during sleep Date: Wed, 13 Jun 2001 20:15:22 +0200 Message-Id: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> Ref

Re: Save trackpad settings during sleep

2001-06-10 Thread Michael Schmitz
> > Bad assumption. But we can extend the error detection to reads and writes > > easily, right? I've stopped hacking on the ADB code long time ago so my > > memory is fuzzy there. > > Er, assuming ADB_{READ,WRITE}REG end up talking to /dev/adb and aren't just > trying to magically work, yes. Th

Re: Save trackpad settings during sleep

2001-06-10 Thread Tom Rini
On Sun, Jun 10, 2001 at 09:31:42PM +0200, Michael Schmitz wrote: > > > But we run pmud before the device wakeup has done. This is extremely bad, > > > opening /dev/adb should return -EAGAIN while the bus state isn't sane, as > > > after sleep (there isn't anything user space related to care about

Re: Save trackpad settings during sleep

2001-06-10 Thread Michael Schmitz
> > But we run pmud before the device wakeup has done. This is extremely bad, > > opening /dev/adb should return -EAGAIN while the bus state isn't sane, as > > after sleep (there isn't anything user space related to care about before > > ADB is initialized on boot). > > Er, quickly reading pmud.

Re: Save trackpad settings during sleep

2001-06-10 Thread Michael Schmitz
> > On my TiBook, BenH' 2.4.5-pre kernel reprobes all ADB devices after > > wakeup. This, I think, is not new; what's changed is the fact that the > > rescan is not done inline in the wakeup code path, but rather a kernel > > thread is started that does the probe. Wakeup is faster, since we don't >

Re: Save trackpad settings during sleep

2001-06-10 Thread Tom Rini
On Sun, Jun 10, 2001 at 05:10:53PM +0200, Michael Schmitz wrote: > > > > On my TiBook, BenH' 2.4.5-pre kernel reprobes all ADB devices after > > wakeup. This, I think, is not new; what's changed is the fact that the > > rescan is not done inline in the wakeup code path, but rather a kernel > > thr

Re: Save trackpad settings during sleep

2001-06-10 Thread Tom Rini
On Sun, Jun 10, 2001 at 11:56:25AM +0200, Michel Lanners wrote: > On my TiBook, BenH' 2.4.5-pre kernel reprobes all ADB devices after > wakeup. This, I think, is not new; what's changed is the fact that the > rescan is not done inline in the wakeup code path, but rather a kernel > thread is starte

Re: Save trackpad settings during sleep

2001-06-10 Thread Michael Schmitz
> > On my TiBook, BenH' 2.4.5-pre kernel reprobes all ADB devices after > wakeup. This, I think, is not new; what's changed is the fact that the > rescan is not done inline in the wakeup code path, but rather a kernel > thread is started that does the probe. Wakeup is faster, since we don't > bloc

Re: Save trackpad settings during sleep

2001-06-10 Thread Michel Lanners
On 9 Jun, this message from Michael Schmitz echoed through cyberspace: >> > On the Lombard, the ADB devices are apparently reprobed and reset before >> > pmud restores the device state. On my TiBook, BenH' 2.4.5-pre kernel reprobes all ADB devices after wakeup. This, I think, is not new; what's

Re: Save trackpad settings during sleep

2001-06-09 Thread Tom Rini
On Sun, Jun 10, 2001 at 12:58:31AM +0200, Michel Daenzer wrote: > Tom Rini wrote: > > > # Save the settings. > > /sbin/trackpad show | cut -d \ -f 5- > /var/run/trackpad > > # Make sure we write to disk > > sync > ^

Re: Save trackpad settings during sleep

2001-06-09 Thread Michel Daenzer
Tom Rini wrote: > # Save the settings. > /sbin/trackpad show | cut -d \ -f 5- > /var/run/trackpad > # Make sure we write to disk > sync Is this really necessary BTW? If we wake up normally, it should be there w

Re: Save trackpad settings during sleep

2001-06-09 Thread Tom Rini
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 ker

Re: Save trackpad settings during sleep

2001-06-09 Thread Michael Schmitz
> > On the Lombard, the ADB devices are apparently reprobed and reset before > > pmud restores the device state. If BenH is doing something differently on > > the iBook that prevents pmud from finding the device after sleep we'd > > better save the device state in the kernel and restore it there to

Re: Save trackpad settings during sleep

2001-06-09 Thread Tom Rini
On Sat, Jun 09, 2001 at 08:59:23PM +0200, Michael Schmitz wrote: > > > pmud 0.7 does save the trackpad state before sleep and restore it after > > > wakeup (the very same way the trackpad tool did). If that doesn't work on > > > the iBook it should be fixed. Can you send me the source for your trac

Re: Save trackpad settings during sleep

2001-06-09 Thread Michael Schmitz
> > pmud 0.7 does save the trackpad state before sleep and restore it after > > wakeup (the very same way the trackpad tool did). If that doesn't work on > > the iBook it should be fixed. Can you send me the source for your trackpad > > tool so I can check if anything iBook related was added there?

Re: Save trackpad settings during sleep

2001-06-09 Thread Tom Rini
On Sat, Jun 09, 2001 at 08:35:29PM +0200, Michael Schmitz wrote: > > Hey all. I got tired of accidently highting text 'cuz I touched the > > trackpad > > and forgot to re-run /sbin/trackpad after waking up the ibook, so I > > wrote the following for /etc/power/pwrct-local. I figured it might be

Re: Save trackpad settings during sleep

2001-06-09 Thread Michael Schmitz
> Hey all. I got tired of accidently highting text 'cuz I touched the trackpad > and forgot to re-run /sbin/trackpad after waking up the ibook, so I > wrote the following for /etc/power/pwrct-local. I figured it might be of > use to others, so here it is: pmud 0.7 does save the trackpad state be