[ltp] Detecting lid close
Daniel Maier
linux-thinkpad@linux-thinkpad.org
Fri, 31 Aug 2007 11:10:28 +0200
--WhfpMioaduB5tiZL
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Aug 31, 2007 at 08:59:28AM +0200, Alex Polite wrote:
> 2007/8/30, Daniel Maier <nusse@teamidiot.de>:
> >
> > What is acpitool supposed to do? echo mem >/sys/power/state is
> > sufficient.
>=20
> echo mem >/sys/power/state and acpitool -s
> both result in the exact same behavior. Everything works on resume,
> but the xserver is restarted. I guess that the suspend command in the
> ubuntu/gnome interface runs some script before actually suspending.
>=20
> I guess that there's a Right Way of managing suspend resume without
> using the GUI, probably something involving some daemon. But what is
> it?
>=20
gnome-power-manager tells the hal to suspend. hal itself runs the
script /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux (at
least in Debian) which tries several methods of suspend. The last
one is echo mem >/sys/power/state.
Regards, Daniel.
--WhfpMioaduB5tiZL
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG19sEjcCaBV47tD0RAgUVAJ9W6eFiypPrOMAeStTnJnFz6pBIWACdEbKr
C38OMa2kZWcOtrXlFxHLKFM=
=RzCL
-----END PGP SIGNATURE-----
--WhfpMioaduB5tiZL--