Am Montag, 23. Oktober 2006 13:36 schrieb Michael Biebl:
Hi,
> There is a default list of modules that are unloaded on suspend/resume
> (see /etc/powersave/sleep:UNLOAD_MODULES_BEFORE_SUSPEND2DISK).
I set this to NONE. I don't want to unload any module.
> powersaved writes a logfile (/var/log/suspend2disk.log) on
> suspend_to_disk. You can take a look there, if you notice something
> suspicious. Please also attach this file to this bug report.
OK, attached. Currently I'm using my old script again, but with s2disk. This
works without any problems, too. Maybe powersaved is dong something strange
after resume. Maybe something with the graphics card? I didn't take a look at
the sourcecode. Or can powersaved be configured to use s2disk?
regards,
Jörg
--- Begin Message ---
## Path: System/Powermanagement/Powersave/Sleep_Modes
### Type: string
## Default: "usb_storage sbp2 ohci_hcd uhci_hcd stir4200 ohci1394
ipw2200 rt2500 prism54 ath_pci r8169 lt_modem Intel536 Intel537 ndiswrapper"
## ServiceRestart:
#
# These modules will be unloaded before entering suspend to disk
# See README.unload-modules for more information.
# "NONE" means don't unload any modules.
UNLOAD_MODULES_BEFORE_SUSPEND2DISK="NONE"
## Path: System/Powermanagement/Powersave/Sleep_Modes
### Type: string
## Default: "usb_storage sbp2 ohci_hcd uhci_hcd stir4200 ohci1394
ipw2200 rt2500 prism54 ath_pci r8169 lt_modem Intel536 Intel537 ndiswrapper"
## ServiceRestart:
#
# These modules will be unloaded before entering the corresponding
# sleep state. See README.unload-modules for more information.
# "NONE" means don't unload any modules.
UNLOAD_MODULES_BEFORE_SUSPEND2RAM="NONE"
## Path: System/Powermanagement/Powersave/Sleep_Modes
### Type: string
## Default: "usb_storage sbp2 ohci_hcd uhci_hcd stir4200 ohci1394
ipw2200 rt2500 prism54 ath_pci r8169 lt_modem Intel536 Intel537 ndiswrapper"
## ServiceRestart:
#
# These modules will be unloaded before entering the corresponding
# sleep state. See README.unload-modules for more information.
# "NONE" means don't unload any modules.
UNLOAD_MODULES_BEFORE_STANDBY="NONE"
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: string
## Default: "slmodemd irda upsd apcupsd"
#
# All services that have to be stopped before entering a sleep mode
# and restarted after the machine resumes.
# If you notice problems of some services that may be related to
# suspend/standby, restarting the service may solve the problem.
# The names to enter here are simply the filenames of the init scripts
# in /etc/init.d. The services are stopped in the order entered here.
# They are restarted after resume in the reverse order.
# Entering "NONE" disables restarting of services ("" means default).
SUSPEND2DISK_RESTART_SERVICES="ifplugd wpasupplicant"
SUSPEND2RAM_RESTART_SERVICES="ifplugd wpasupplicant"
STANDBY_RESTART_SERVICES="ifplugd wpasupplicant"
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "yes"
#
# Should FAT and NTFS filesystems be unmounted before entering
# a sleep mode and remounted after the machine resumed?
# You should do this for suspend to disk if you want to boot
# Windows while Linux is suspended to avoid severe data corruption
# on the Windows filesystems.
# Note that suspend will fail if the partitions cannot be unmounted.
# This may cause problems with external storage media connected during
# suspend.
# Defaults to yes for suspend to disk, no for suspend to RAM / standby.
SUSPEND2DISK_UNMOUNT_FATFS=""
SUSPEND2RAM_UNMOUNT_FATFS=""
STANDBY_UNMOUNT_FATFS=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
#
# Should PCMCIA cards (CardBus and PC-Card) be ejected before entering
# a sleep mode and reinserted after the machine resumed?
# This should not be necessary for most CardBus cards, PC-Cards seem to
# need this more often.
#SUSPEND2DISK_EJECT_PCMCIA=""
#SUSPEND2RAM_EJECT_PCMCIA=""
#STANDBY_EJECT_PCMCIA=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
## ServiceRestart: powersaved
#
# Set this variable to yes to disable suspend to disk.
#DISABLE_USER_SUSPEND2DISK=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
## ServiceRestart: powersaved
#
# Set this variable to no to enable suspend to RAM.
# If the /usr/sbin/s2ram binary is available, it will be used to detect
# if the machine is capable of suspend to RAM. You can override this
# detection with SUSPEND2RAM_FORCE below.
#DISABLE_USER_SUSPEND2RAM=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
## ServiceRestart: powersaved
#
# If /usr/sbin/s2ram is installed but does not know about your machine,
# you can force suspend to RAM for unknown machines by setting this
# variable to yes.
# Be careful, this might crash your machine.
# See also the SUSPEND2RAM_ACPI_SLEEP, SUSPEND2RAM_VBE_POST and
# SUSPEND2RAM_VBE_SAVE variables.
#SUSPEND2RAM_FORCE=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: integer(0:3)
## Default: "0"
## ServiceRestart: powersaved
#
# If SUSPEND2RAM_FORCE is set to yes and s2ram is installed, you can set
# the acpi_sleep parameter here. This is a number, 1 means "s3_bios",
# 2 means "s3_mode" 3 means "s3bios,s3mode".
# These parameters are explained in the kernel sources under
# Documentation/power/video.txt
# Leaving this empty or setting it to 0 means "don't touch this setting",
# you might still have one of the options set from the kernel commandline.
# Be careful, this might crash your machine.
#SUSPEND2RAM_ACPI_SLEEP=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
## ServiceRestart: powersaved
#
# if SUSPEND2RAM_FORCE is set to yes and s2ram is installed, you can enable
# the equivalent of "vbetool vbestate save/restore" before/after suspend to
# RAM with this variable. This does restore the state of the graphics chip
# on many machines.
# Be careful, this might crash your machine.
#SUSPEND2RAM_VBE_SAVE=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
## ServiceRestart: powersaved
#
# if SUSPEND2RAM_FORCE is set to yes and s2ram is installed, you can enable
# the equivalent of "vbetool post" after suspend to RAM. This reinitializes
# the graphics chip on many machines.
# Be careful, this might crash your machine.
#SUSPEND2RAM_VBE_POST=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "yes"
## ServiceRestart: powersaved
#
# Set this variable to no to enable standby (also needs BIOS support!)
DISABLE_USER_STANDBY="no"
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: string(platform,firmware,shutdown,reboot)
## Default: "platform"
#
# Specify the shutdown method the kernel uses after suspend-to-disk.
# "shutdown" is known to work on most machines, "platform" may work,
# too. "firmware" will most likely not work, "reboot" is for
# debugging only. Use only if you know what this is for.
#
SUSPEND2DISK_SHUTDOWN_MODE="shutdown"
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
#
# Should the system clock be reset from the hardware clock after
# suspend-to-disk or suspend-to-RAM? This may be unneccessary depending
# on kernel version and SUSPEND2DISK_SHUTDOWN_MODE, but will not hurt.
#SUSPEND2DISK_RESTORE_CLOCK=""
#SUSPEND2RAM_RESTORE_CLOCK=""
#STANDBY_RESTORE_CLOCK=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
#
# Should we suspend to disk even if it seems the kernel in /boot
# is not matching the running kernel? This is very dangerous, if
# the kernels don't match, resume will not work. Use only if you
# absolutely need to (e.g. you are compiling a custom kernel).
#
#SUSPEND2DISK_IGNORE_KERNEL_MISMATCH=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: yesno
## Default: "no"
#
# Should we switch to a text console _in userspace_ before entering
# a sleep mode? The kernel usually does this anyway, but if you need
# to run some initialization code before switching back to X, this
# might be handy. Also on ppc, the kernel does not switch, so this needs
# to be "yes" there.
SUSPEND2DISK_SWITCH_VT="yes"
#SUSPEND2RAM_SWITCH_VT=""
#STANDBY_SWITCH_VT=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: integer
## Default: 500
#
# The size of the image in MB that will be written to disk upon suspend.
# A bigger image will make your system feel more responsive after resume,
# but take additional time for writing and reading your data.
# This value specifies the maximum image size to use. The image can be
# smaller if not enough swap is available or memory usage is low, it also
# can be bigger if the size is not enough for suspending the machine.
# setting it to "0" will restore the old behaviour and always create the
# smallest possible image.
#SUSPEND2DISK_IMAGE_SIZE=""
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: string
## Default: ""
#
# to make sure that there is enough swap available, you can configure an
# additional swap partition, which will only be used for suspend. This
# partition should not be in /etc/fstab and should not normally be used.
# Its size should be the amount of physical RAM the machine has, or at
# least SUSPEND2DISK_IMAGE_SIZE.
# Enter the device node of this partition here to have it activated before
# suspend and deactivated after resume.
# You also need to make sure that the resume= boot parameter points to
# this partition.
#SUSPEND2DISK_RESUME_DEVICE=""
--- End Message ---
suspend2disk initiated: 2006-10-17 20:15:24
Debug info follows here, please include in your bug reports. Thanks.
--------------------------------------------------------------------
Loaded modules:
Module Size Used by
radeon 99552 2
drm 61204 3 radeon
vmnet 26924 16
vmmon 165388 0
binfmt_misc 10568 1
ieee80211_crypt_ccmp 6784 3
cpufreq_userspace 3860 0
cpufreq_powersave 1792 0
rfcomm 33884 1
l2cap 21380 5 rfcomm
bluetooth 45220 4 rfcomm,l2cap
nfs 192904 0
nfsd 191728 17
exportfs 5376 1 nfsd
lockd 53640 3 nfs,nfsd
sunrpc 138172 12 nfs,nfsd,lockd
nsc_ircc 17232 0
uinput 8064 1
af_packet 19720 6
autofs4 19524 2
video 14916 0
sbs 14176 0
i2c_ec 4928 1 sbs
dock 7176 0
button 6544 0
container 4288 0
ac 5060 0
battery 9476 0
ipt_MASQUERADE 3328 3
iptable_nat 6852 1
ip_nat 16428 2 ipt_MASQUERADE,iptable_nat
xt_state 2112 9
ipt_LOG 5760 8
xt_limit 2560 8
ipt_REJECT 5056 2
xt_mark 1856 2
xt_tcpudp 3008 11
xt_mac 1856 29
iptable_filter 2944 1
xt_MARK 2304 3
xt_multiport 3136 8
iptable_mangle 2752 1
ip_tables 12488 3 iptable_nat,iptable_filter,iptable_mangle
x_tables 12996 12 ipt_MASQUERADE,iptable_nat,xt_state,ipt_LOG,xt_limit,ipt_REJECT,xt_mark,xt_tcpudp,xt_mac,xt_MARK,xt_multiport,ip_tables
ip_conntrack_ftp 7280 0
ip_conntrack 47988 5 ipt_MASQUERADE,iptable_nat,ip_nat,xt_state,ip_conntrack_ftp
nfnetlink 6488 2 ip_nat,ip_conntrack
deflate 3712 0
zlib_deflate 18072 1 deflate
zlib_inflate 13568 1 deflate
twofish 43008 0
serpent 18880 0
aes 28032 3
blowfish 9280 0
des 17408 0
sha256 10944 0
sha1 2496 0
crypto_null 2496 0
af_key 31056 2
nls_utf8 2048 1
ntfs 88436 1
nls_base 7168 2 nls_utf8,ntfs
ext2 58440 1
deadline_iosched 7300 6
as_iosched 14284 1
cfq_iosched 17620 0
cdc_acm 13728 0
capability 4744 0
commoncap 6848 1 capability
ircomm_tty 22216 0
ircomm 12804 1 ircomm_tty
tun 10240 1
nvram 7944 1
ibm_acpi 24320 0
intel_rng 2752 0
snd_intel8x0 30044 2
snd_seq_oss 28224 0
8250_pci 19776 0
joydev 8960 0
snd_seq_midi 8032 0
snd_rawmidi 22560 1 snd_seq_midi
snd_seq_midi_event 6784 2 snd_seq_oss,snd_seq_midi
snd_seq 44048 5 snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_intel8x0m 15756 5
snd_ac97_codec 82912 2 snd_intel8x0,snd_intel8x0m
snd_ac97_bus 2240 1 snd_ac97_codec
snd_pcm_oss 38112 0
snd_mixer_oss 15168 3 snd_pcm_oss
irtty_sir 6016 0
sir_dev 13956 1 irtty_sir
8250_pnp 8704 0
tsdev 7360 0
i2c_i801 7244 0
snd_pcm 68552 6 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss
snd_timer 20868 2 snd_seq,snd_pcm
snd_seq_device 7692 4 snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
evdev 8896 3
ipw2200 98116 0
snd 46564 19 snd_intel8x0,snd_seq_oss,snd_rawmidi,snd_seq,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_seq_device
soundcore 9248 3 snd
ieee80211 29192 1 ipw2200
ieee80211_crypt 5824 2 ieee80211_crypt_ccmp,ieee80211
irda 103928 4 nsc_ircc,ircomm_tty,ircomm,sir_dev
snd_page_alloc 9480 3 snd_intel8x0,snd_intel8x0m,snd_pcm
intel_agp 20956 1
agpgart 29424 2 drm,intel_agp
8250 19876 2 8250_pci,8250_pnp
serial_core 19328 1 8250
yenta_socket 24268 2
rsrc_nonstatic 11712 1 yenta_socket
pcmcia 33828 0
firmware_class 9536 2 ipw2200,pcmcia
pcmcia_core 36816 3 yenta_socket,rsrc_nonstatic,pcmcia
psmouse 34568 0
serio_raw 6404 0
crc_ccitt 2112 1 irda
pcspkr 2816 0
rtc 12276 0
parport_pc 35300 0
parport 32904 1 parport_pc
sd_mod 17808 0
ext3 116616 2
jbd 52008 1 ext3
mbcache 8260 2 ext2,ext3
ide_cd 35552 0
cdrom 32416 1 ide_cd
ide_disk 14464 6
usb_storage 53952 0
scsi_mod 123720 2 sd_mod,usb_storage
usbhid 43552 0
libusual 15696 1 usb_storage
piix 9220 0 [permanent]
uhci_hcd 20744 0
ehci_hcd 27848 0
usbcore 111172 7 cdc_acm,usb_storage,usbhid,libusual,uhci_hcd,ehci_hcd
generic 4868 0 [permanent]
ide_core 107844 5 ide_cd,ide_disk,usb_storage,piix,generic
e1000 106432 0
thermal 13384 0
fan 4676 0
unix 25136 1106
cpufreq_conservative 6240 0
cpufreq_ondemand 5744 1
speedstep_centrino 7120 1
freq_table 4292 1 speedstep_centrino
processor 23724 2 thermal,speedstep_centrino
fbcon 37280 72
tileblit 2496 1 fbcon
crc32 4288 3 tun,pcmcia,fbcon
font 8256 1 fbcon
bitblit 5120 1 fbcon
softcursor 2176 1 bitblit
radeonfb 94272 1
fb 43240 5 fbcon,tileblit,bitblit,softcursor,radeonfb
i2c_algo_bit 8264 1 radeonfb
cfbcopyarea 3520 1 radeonfb
cfbimgblt 2816 1 radeonfb
cfbfillrect 3520 1 radeonfb
i2c_core 19792 4 i2c_ec,i2c_i801,radeonfb,i2c_algo_bit
Memory info:
total used free shared buffers cached
Mem: 1556760 1429212 127548 0 229612 446032
-/+ buffers/cache: 753568 803192
Swap: 1951856 0 1951856
/proc/cmdline: root=LABEL=ROOT ro resume=LABEL=SWAP panic=10
------------------------------------------------------------------------------
========we are going to sleep, preparing.========
running kernel is grub menu entry 0 (vmlinuz-2.6.18.1)
== checking runlevel ==
no shutdown/reboot in progress, good.
== Unmounting FAT/NTFS filesystems: ==
device /dev/hda1 mounted on '/winxp'
trying to umount device: '/dev/hda1' '/winxp' -t 'ntfs' -o 'rw,umask=002,gid=10000,nls=utf8'
success.
== FAT/NTFS filesystems unmounted ==
Stopping services: ('ifplugd wpasupplicant' configured)
stopping ifplugd:
## Stopping Network Interface Plugging Daemon: eth0 wlan0 eth1.
stopping wpasupplicant:
## Stopping wpa_supplicant: done.
------------------------------------------------------------------------------
Unloading modules: ('NONE' configured)
------------------------------------------------------------------------------
prepare_sleep finished for suspend2disk
------------------------------------------------------------------------------
preparing boot-loader: selecting entry 0, kernel /boot/2.6.18.1
/usr/sbin/grubonce not found, not preparing bootloader
time needed for sync: 0.0 seconds, time needed for grub: 0.0 seconds.
calculated image_size: 500