[ltp] t60 suspend2 working?

Florian Manschwetus linux-thinkpad@linux-thinkpad.org
Fri, 16 Jun 2006 07:58:17 +0200


This is a cryptographically signed message in MIME format.

--------------ms050002090102000409020103
Content-Type: multipart/mixed;
 boundary="------------000003090601000404080309"

This is a multi-part message in MIME format.
--------------000003090601000404080309
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

WSR wrote:
> Hi :)
> 
> Anyone who has suspend2 working with their t60 care to post their 
> /etc/hibernate settings?
> 
> I have added ipw3945 to the blacklisted modules, and modified it so that 
> it uses modprobe -r, vs rmmod (ipw3945 needs this).
> The main problem is when resuming from disk it hard freezes before it 
> even starts loading the image.   (" atomic preparation ").
> 
> I have set compatibility mode for the SATA in the bios.
> 
> I have emerged vbetools, but I do not believe the vberestore is enabled 
> currently. (not commented out in /etc/hibernate/common.conf)
> 
> I am now using a configuration similar to the one Florian posted a few 
> days ago. (thanks very much!).
> 
> cheers
> 
> -scott
no need of force just kill ipw3945deamon before removing module
the rest is as normal, works nice with gentoo patches libata hsw and fglrx
the rest to do is sata resume from susoend to ram but it should be 
solved with 2.6.17.

florian

--------------000003090601000404080309
Content-Type: text/plain;
 name="blacklisted-modules"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="blacklisted-modules"

# 
# WARNING: No attempt is made to preserve this file upon upgrades.
#          The file format may also change between hibernate script versions.
#          It is recommended that you enter any modules you wish to unload
#          into hibernate.conf.
# 
# The syntax of each line in this file is "module name [...]" where [...] is
# a sequence of minimum/maximum kernel version pairs that the module is
# incompatible with. For example:
#     usb-ehci 2.4.0 2.4.25 2.6.0 2.6.2
# (would indicate that usb-ehci was incompatible in 2.4 until 2.4.25, and in
# 2.6 until 2.6.2 - example only!)
#
# A module without any versions is always considered unsuspendable.
#
# If a line is prefixed with an '@' sign, then the versions are interpreted
# as the module version (as reported by modinfo) instead of the kernel version.
# Unversioned modules (modules with no version: line shown in modinfo) are
# always unloaded if listed, regardless of the version range.
#
# This format has some limitations - it does not take into account Software
# Suspend 2 versions (which may include driver updates).
#

nvidia
acx100
acx_pci
hsfmodem
prism54
ipw3945

bcm4400		2.6.0	2.6.99
emu10k1		2.4.0	2.4.99	2.6.0	2.6.99
forcedeth	2.4.0	2.4.99	2.6.0	2.6.99
@ipw2100	0.0	1.0.2
@ipw2200	0.0	0.20
natsemi		2.6.0	2.6.99
psmouse		2.6.0	2.6.99
rt2400		2.4.0	2.4.99	2.6.0	2.6.99
ehci_hcd	2.6.0	2.6.14
ohci_hcd	2.6.0	2.6.14
uhci_hcd	2.6.0	2.6.14
ehci-hcd	2.4.0	2.4.99
usb-ohci	2.4.0	2.4.99
usb-uhci	2.4.0	2.4.99
snd_ens1370	2.6.0	2.6.99
snd_ens1371	2.6.0	2.6.99
snd_maestro3	2.6.0	2.6.99
snd_bt_sco	2.6.0	2.6.99
en1370		2.6.0	2.6.99
en1371		2.6.0	2.6.99
via_agp		2.6.0	2.6.8
via_rhine	2.6.0	2.6.99
i8042		2.6.10	2.6.99
intel_mch_agp	2.6.0	2.6.99
rt2500		2.6.0	2.6.99

button		2.6.9	2.6.99
speedstep_smi	2.6.12	2.6.99

@ndiswrapper    0.10    0.11

--------------000003090601000404080309
Content-Type: text/plain;
 name="common.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="common.conf"

# Configuration options common for suspending to disk or RAM.
# Options are not case sensitive.
# 
# man hibernate.conf for help on the configuration items.

##############################################################################
### Some global settings
##############################################################################

Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
# LogTimestamp yes
# AlwaysForce yes
# AlwaysKill yes
# HibernateVT 15
Distribution gentoo
# XDisplay :0

##############################################################################
### Scriptlets
###   Scriptlets provide support for doing all sorts of things before and after
###   suspending. The defaults settings here should work for most people, but
###   you may wish to edit these to taste. Consult "hibernate -h" for help on
###   the configuration settings.
##############################################################################

### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg

### clock
SaveClock restore-only

### devices
# IncompatibleDevices /dev/dsp /dev/video*

### diskcache
# DisableWriteCacheOn /dev/hda

### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2

### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
# Mount /windows

### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak

### hardware_tweaks
 IbmAcpi yes
# Runi915resolution yes

### lilo
# EnsureLILOResumes yes

### lock (generally you only want one of the following options)
# LockConsoleAs root
# LockXScreenSaver yes
# LockGnomeScreenSaver yes
# LockKDE yes
# LockXLock yes
# LockXAutoLock yes

### misclaunch
# OnSuspend 20 echo "Good night!"
# OnResume 20 echo "Good morning!"

### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules

### modules-gentoo
# GentooModulesAutoload yes

### network
# DownInterfaces eth0
# UpInterfaces auto

### pause_audio
# PauseAudio yes

### pcmcia
# EjectCards yes

### programs
# IncompatiblePrograms xmms

### services
RestartServices net.eth1
# StopServices alsasound
# StartServices aumix

### vbetool
# EnableVbetool yes
# RestoreVbeStateFrom /var/lib/vbetool/vbestate
# VbetoolPost yes
# RestoreVCSAData yes

### xhacks
SwitchToTextMode yes
# UseDummyXServer yes
# DummyXServerConfig xorg-dummy.conf

### xstatus
## This can be set to gnome, kde or x:
# XStatus gnome
# XmessageDisable yes
# XSuspendText Preparing to suspend...
# XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
# XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50

--------------000003090601000404080309
Content-Type: text/plain;
 name="disk.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="disk.conf"

# This file is used when suspending to disk using the swsusp functionality in
# the vanilla kernel. Add any configuration options specific to suspend-to-disk
# to this file. Ordering is not crucial, and options are not case-sensitive.
# 
# man hibernate.conf for help on the configuration items.

UseSysfsPowerState disk

Include common.conf

--------------000003090601000404080309
Content-Type: text/plain;
 name="hibernate.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="hibernate.conf"

# hibernate.conf is split into separate configuration files.
# 
# Each file is tried in the order below, until an available suspend
# method is found.

TryMethod suspend2.conf
TryMethod disk.conf
TryMethod ram.conf

--------------000003090601000404080309
Content-Type: text/plain;
 name="ram.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ram.conf"

# This file is used when suspending to RAM. Add any configuration options
# specific to suspend-to-RAM to this file. Ordering is not crucial, and options
# are not case-sensitive.
# 
# man hibernate.conf for help on the configuration items.

UseSysfsPowerState mem

# The following vbetool settings help with > 50% of laptops.
EnableVbetool yes
VbetoolPost yes

# Users with a Radeon graphics card may need to enable this line for
# suspend-to-ram, and install the radeontool program available from
# http://fdd.com/software/radeon/ or your distribution's package.
# 
# RadeonTool yes

Include common.conf

--------------000003090601000404080309
Content-Type: text/plain;
 name="suspend2.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="suspend2.conf"

# Example suspend2.conf file.
#
# NOTE: Suspend2 is an improved version of suspend-to-disk which currently
#       requires patching your kernel. For more information, see www.suspend2.net
# 
#       If you do not wish to patch your kernel but still be able to suspend to
#       disk, see disk.conf instead.

### suspend2 (for Software Suspend 2)
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
# ImageSizeLimit 200

ProcSetting extra_pages_allowance 7500
## useful for initrd usage:
# SuspendDevice swap:/dev/hda2

## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
# PowerdownMethod 5

## Any other /proc/software_suspend setting can be set like so:
# ProcSetting expected_compression 50

## Or traditionally like this:
# Suspend2AllSettings 0 0 2056 65535 5

## Or even from the results of hibernate --save-settings with this:
# Suspend2AllSettingsFile /etc/hibernate/suspend-settings.conf

## For filewriter:
# FilewriterLocation /suspend_file 1000
# VerifyFilewriterResume2 yes

## Specify a userui like this:
# ProcSetting userui_program /sbin/suspend2ui_text

Include common.conf

--------------000003090601000404080309--

--------------ms050002090102000409020103
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKDDCC
BQIwggLqoAMCAQICAwFAHTANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290IENBMR4w
HAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmlu
ZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNTA2
MjgxMTU3NDFaFw0wNjA2MjgxMTU3NDFaMEgxHDAaBgNVBAMTE0Zsb3JpYW4gTWFuc2Nod2V0
dXMxKDAmBgkqhkiG9w0BCQEWGUZsb3JpYW5NYW5zY2h3ZXR1c0BnbXguZGUwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQC2GnTI54ujEGPHu7/5L3UePHT6bydUQAWsck9f44wc
hURmyPxNMb228wpkIEaWOpsnxCYbKfxW7nIi0zP7eSAhGhXiI9jyLPgJ4NpG1OFT2Eyzjkkf
25CtC1NO9ZbMacVieXjDw4ezPkuJvSyhsDcFAUERCWG9DT74tMdP9ADdMzI8h/eXjv6j4flz
TD2WAsDe1hfdSTkzB7G3SMBtBu6J46CY6p93epais/x1CzFkzDJsh0r7d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