[ltp] X60s: Suspend to RAM/Disk?

Martin Lorenz linux-thinkpad@linux-thinkpad.org
Thu, 5 Oct 2006 20:24:59 +0200


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Oct 05, 2006 at 08:02:54PM +0200, Martin Aumueller wrote:
> Both works quite fine for me with (wrt suspending) plain 2.6.18. I have the 
> kernel booted with the options acpi_sleep=s3_bios,s3_mode, but I don't know 
> if that is necessary. Userspace is ubuntu edgy. I 
> have 'DOUBLE_CONSOLE_SWITCH' enabled. And I think it's important to have the 
> vbetools stuff disabled.

I have a 1702-55G X60s and needed the ahci patches by Forrest Zhao. But they
are included in the latest kernel (2.6.19-rc1)

I have some other issues which I discuss on this list (Subject: Java
Zombies) but suspend/resume works fine now

find attached my suspend script

gruss
  mlo
--
Dipl.-Ing. Martin Lorenz

            They that can give up essential liberty 
	    to obtain a little temporary safety 
	    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=get&search=0xF1AAD37D

ICQ UIN: 33588107

--ZPt4rx8FFjLCG7dd
Content-Type: application/x-sh
Content-Disposition: attachment; filename="sleepbtn.sh"
Content-Transfer-Encoding: quoted-printable

#!/bin/bash=0A#. /usr/share/acpi-support/key-constants=0A##acpi_fakekey $KE=
Y_SLEEP =0A#/etc/acpi/sleep.sh sleep=0A=0A# make sure the governor is NOT p=
owersave or performance because those two =0A# will cause system crash on w=
akeup=0ACPU0GOV=3D`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governo=
r`=0ACPU1GOV=3D`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor`=
=0A=0Aif [ x$CPU0GOV =3D=3D xpowersave -o x$CPU0GOV =3D=3D xperformance ] ;=
 then=0A   echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_gov=
ernor=0Afi=0A=0Aif [ x$CPU1GOV =3D=3D xpowersave -o x$CPU1GOV =3D=3D xperfo=
rmance ] ; then=0A   echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/s=
caling_governor=0Afi=0A=0A# change to text console=0Achvt 1=0A=0A# sleep=0A=
echo -n mem > /sys/power/state=0A=0A#vbetool dpms on=0A=0A# do a post on th=
e graphics hardware to reinitialize it=0Avbetool post=0A=0A# wait a sec=0As=
leep 1=0A=0A# switch back to X=0Achvt 7=0A
--ZPt4rx8FFjLCG7dd--