[ltp] Re: strange resume behaviour

Martin Lorenz linux-thinkpad@linux-thinkpad.org
Fri, 8 Sep 2006 09:48:09 +0200


--rS8CxjVDS/+yyDmU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 08, 2006 at 09:06:35AM +0200, Dipl.-Ing. Martin Lorenz wrote:
> On Thu, Sep 07, 2006 at 03:38:39PM +0200, Dipl.-Ing. Martin Lorenz wrote:
> >=20
> > ah!
> > got it
> > this will be the intelfb driver
> > but I compiled it into the kernel...
> > so will try and bake another kernel with intelfb as a module
>=20
> that one diden't do the trick
>=20
> to give it a try I added 'vbetool post' to my /etc/acpi/sleepbtn.sh script
> and see: the video comes back on.
>=20
> unfortunately 'vbetool post' kills X, so there is no much use in this
> hack but maybe there is someone here who can make sense out of this
> information ^^

another hack success:

adding chvt 1 before suspend

and

chvt 7 after vbetool post

did the trick and preserves X

it's a hack, but it works

so here's my script:


---

#!/bin/bash
#. /usr/share/acpi-support/key-constants
##acpi_fakekey $KEY_SLEEP=20
#/etc/acpi/sleep.sh sleep

CPU0GOV=3D`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
CPU1GOV=3D`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor`

if [ x$CPU0GOV =3D=3D xpowersave -o x$CPU0GOV =3D=3D xperformance ] ; then
   echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi

if [ x$CPU1GOV =3D=3D xpowersave -o x$CPU1GOV =3D=3D xperformance ] ; then
   echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
fi

chvt 1

echo -n mem > /sys/power/state

#vbetool dpms on
vbetool post
sleep 1

chvt 7

---

gruss
  mlo
--
Dipl.-Ing. Martin Lorenz

            They that can give up essential liberty=20
	    to obtain a little temporary safety=20
	    deserve neither liberty nor safety.
                                   Benjamin Franklin

please encrypt your mail to me
GnuPG key-ID: F1AAD37D
get it here:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=3Dget&search=3D0xF1AAD37D

ICQ UIN: 33588107

--rS8CxjVDS/+yyDmU
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFFASA5R1ITOvGq030RAiJWAJsEhlZhHw/iEIPt7AOhMiIw3rJ2yQCeJ8aj
sgimr7HPDIu+kR+p3UDXI2w=
=hNLb
-----END PGP SIGNATURE-----

--rS8CxjVDS/+yyDmU--