Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2009 21:20:16 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: run resume code only for S1-S4 states
Message-ID:  <20090427212016.43dd83d6@fabiankeil.de>
In-Reply-To: <49F5AAF0.9080607@freebsd.org>
References:  <49DB639A.4090504@icyb.net.ua> <49DCF5C2.60805@root.org> <49DDF906.8090400@icyb.net.ua> <49DF3CA4.1090309@freebsd.org> <49E4B2A7.3020302@freebsd.org> <49E61986.7040709@root.org> <49E8AED0.1090008@freebsd.org> <20090418125806.2a48b0a8@fabiankeil.de> <49E9FFB0.6090707@root.org> <49EC60C6.7000702@freebsd.org> <49EC9D2F.8080701@root.org> <49EDFBBA.1080504@freebsd.org> <20090422183214.1e3372c6@fabiankeil.de> <49F09A23.9080802@freebsd.org> <20090425102109.0520ce59@fabiankeil.de> <49F5AAF0.9080607@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/mnqm9zSn_LDfWpgvZdfAAOr
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Andriy Gapon <avg@freebsd.org> wrote:

> on 25/04/2009 11:21 Fabian Keil said the following:
> > Sure. It turns out that the problem is unrelated to your patch.
> > I can reproduce it with an unpatched kernel too, by once pressing
> > the power button before the second core is started.
> >=20
> > I probably did the same a few days ago, and forgot about it. Sorry.

> thank you very much for the testing and the insight, this is very useful =
and
> interesting.
> I think that it might be that 'init' process in pre-natal state loses a s=
ignal
> sent to it.
>=20
> I decided to follow Nate's advice and exempt S5 from timeout policy (afte=
r all it
> is possible to execute shutdown(8) multiple times and concurrently with a=
ny other
> sleep request). With previous version of the patch once shutdown_nice() f=
ailed
> once it was impossible to enter any sleep state ever. shutdown_nice failu=
re is
> quite exotic event, but as you have proven it is not impossible.
>=20
> So the new patch is attached.

Thanks. The patch works and pressing the power button early on
boot before it actually has any effect no longer prevents the
power button from working later on.

Fabian

--Sig_/mnqm9zSn_LDfWpgvZdfAAOr
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkn2BXUACgkQBYqIVf93VJ1P8ACguVbw8uRZG2FrHIqtIRQkHQem
xTEAoLcEzlvwOc2e1M9cTIonRHHmbIb+
=LOW1
-----END PGP SIGNATURE-----

--Sig_/mnqm9zSn_LDfWpgvZdfAAOr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090427212016.43dd83d6>