Re: S3 suspend code

Pavel Machek
2003-07-30T12:25:25Z

Hi!

> > > > Like I said, the suspend returns immediately, but it does succeed.
> > > > It seems that it gets a wakeup signal immediately though.
> > >
> > > Like it turns into sleep mode then wakes up? You probably have some
> > > device that is enabled to wake the machine up, which should not really
> > > do that... Check 2.6.0-t1.
> >
> > I've put a different disk in my laptop and installed Linux on it.
> > With 2.6.0-t1 it does the right thing. Also 2.5.75 works.
> > I'm going do to a binary search to find the specific change that fixed it.
>
> It looks like I had confused my earlier tests with something else, because
> also old Linux kernels do it "correctly".
>
> My machine suspends as early as with 2.5.6 (the first kernel with
> /proc/acpi/sleep), note that it doesn't resume correctly up until 2.5.30 or
> so, but that doesn't really matter.
>
> Do you know if there is any way to find out what device or bus triggers
> the wakeup? A state stored somewhere or so.
>

I do not know how to tell which device is that. Older kernels simply disabled all wakeups
altogether (that change should be easy to spot, it is somewhere really close to entering sleep),
which is wrong but worked for a lot of people. This change was taken/reverted few times, iirc.
--
Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...