[ltp] R51 doesn't resume from Suspend to ram properly

Henrik Brix Andersen linux-thinkpad@linux-thinkpad.org
Sun, 24 Oct 2004 13:00:12 +0200


--=-10RsVoNztVqnl4IDUAht
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sun, 2004-10-24 at 02:08, Jan Girlich wrote:
> Hmmm. Is there any variable holding the number of my actual vt? So I can=20
> do a little script like:
>=20
> #!/bin/bash
> MY_VT_TMP=3D$MY_VT
> echo -n "mem" > /sys/power/state
> chvt 7 # switch to X
> chvt MY_VT_TMP # switch back to vt where I started

MY_VT_TMP=3D`/usr/bin/fgconsole`

The 'fgconsole' binary is included in the 'kbd' package from
http://freshmeat.net/projects/kbd/ - but you likely already have it
installed.

You might want to check out my X31 ACPI event handler script for
inspiration: http://dev.gentoo.org/~brix/files/x31.sh

Sincerely,
Brix
--=20
Henrik Brix Andersen <brix@gentoo.org>
Gentoo Linux

--=-10RsVoNztVqnl4IDUAht
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBe4s8v+Q4flTiePgRAtfdAJ9beeb1U7+aLuu52PUife2zTRZhkACbBRoO
1mjuBCvYOae3Vk4qnGcly8U=
=lHh2
-----END PGP SIGNATURE-----

--=-10RsVoNztVqnl4IDUAht--