You are not logged in.
My laptop uses ethernet hardware supported by the sky2 module, which must be unloaded before suspend. Network has to be restarted after the module is reloaded or ethernet stays kaput. So, I edited my /etc/powersave/sleep like this:
## Path: System/Powermanagement/Powersave/Sleep_Modes
### Type: string
## Default: "nvsound acx100 acx_pci hsfmodem prism54 bcm4400 emu10k1 forcedeth ipw2100 ipw2200 natsemi psmouse rt2400 ehci_hcd ohci_hcd uhci_hcd ehci-hcd usb-ohci usb-uhci snd_ens1370 snd_ens1371 en1370 en1371 via_agp via_rhine i8042 intel_mch_agp rt2500 button speedstep_smi ndiswrapper"
## ServiceRestart: "network,alsa,netfs"
#
# 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="prism54 sky2 ath_pci"
## Path: System/Powermanagement/Powersave/Sleep_Modes
### Type: string
## Default: "nvsound acx100 acx_pci hsfmodem prism54 bcm4400 emu10k1 forcedeth ipw2100 ipw2200 natsemi psmouse rt2400 ehci_hcd ohci_hcd uhci_hcd ehci-hcd usb-ohci usb-uhci snd_ens1370 snd_ens1371 en1370 en1371 via_agp via_rhine i8042 intel_mch_agp rt2500 button speedstep_smi ndiswrapper"
## ServiceRestart: "network,alsa,netfs"
#
# 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="prism54 sky2 ath_pci"
## Path: System/Powermanagement/Powersave/Sleep_Modes
### Type: string
## Default: "nvsound acx100 acx_pci hsfmodem prism54 bcm4400 emu10k1 forcedeth ipw2100 ipw2200 natsemi psmouse rt2400 ehci_hcd ohci_hcd uhci_hcd ehci-hcd usb-ohci usb-uhci snd_ens1370 snd_ens1371 en1370 en1371 via_agp via_rhine i8042 intel_mch_agp rt2500 button speedstep_smi ndiswrapper"
## ServiceRestart: "network,alsa,netfs"
#
# 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="prism54 sky2 ath_pci"
## Path: System/Powermanagement/Powersave/Sleep_Modes
## Type: string
## Default: "slmodemd irda"
#
# 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="network"
SUSPEND2RAM_RESTART_SERVICES="network"
STANDBY_RESTART_SERVICES="network"
Problem is, powersaved doesn't restart the network like it ought to. The log gives me this:
suspend2ram initiated: 2007-06-05 07:05:46 PM
Debug info follows here, please include in your bug reports. Thanks.
--------------------------------------------------------------------
Loaded modules:
Module Size Used by
sky2 37896 0
rtc_sysfs 3840 0
rtc_proc 3844 0
snd_seq_oss 29056 0
snd_seq_midi_event 6528 1 snd_seq_oss
snd_seq 46800 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6796 2 snd_seq_oss,snd_seq
joydev 8384 0
usbhid 36256 0
hid 24448 1 usbhid
ff_memless 5256 1 usbhid
snd_pcm_oss 38816 0
rtc_dev 6792 0
snd_mixer_oss 14336 1 snd_pcm_oss
pcmcia 31404 0
rtc_cmos 7188 0
i2c_i801 7952 0
i2c_core 17664 1 i2c_i801
rtc_core 7684 4 rtc_sysfs,rtc_proc,rtc_dev,rtc_cmos
rtc_lib 3456 2 rtc_sysfs,rtc_core
tifm_7xx1 6912 0
tifm_core 6784 1 tifm_7xx1
ath_pci 88224 0
wlan 188868 1 ath_pci
pcspkr 2944 0
psmouse 35080 0
serio_raw 5636 0
ath_hal 190032 1 ath_pci
snd_hda_intel 254104 1
snd_pcm 68484 2 snd_pcm_oss,snd_hda_intel
snd_timer 19076 2 snd_seq,snd_pcm
snd 44388 10 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer
soundcore 6496 1 snd
yenta_socket 23180 1
rsrc_nonstatic 11136 1 yenta_socket
pcmcia_core 32920 3 pcmcia,yenta_socket,rsrc_nonstatic
sg 26780 0
snd_page_alloc 7816 2 snd_hda_intel,snd_pcm
ehci_hcd 31116 0
uhci_hcd 22032 0
tsdev 6464 0
evdev 8192 6
thermal 11656 0
processor 24788 1 thermal
fan 3972 0
button 6288 0
battery 8580 0
ac 4100 0
i915 21376 2
drm 70548 3 i915
intel_agp 21404 1
agpgart 27608 3 drm,intel_agp
usbcore 111752 4 usbhid,ehci_hcd,uhci_hcd
ext3 118536 2
jbd 54952 1 ext3
mbcache 6916 1 ext3
sr_mod 14372 0
cdrom 34080 1 sr_mod
sd_mod 17668 3
ata_generic 5636 0
ata_piix 11780 2
libata 102164 2 ata_generic,ata_piix
Memory info:
total used free shared buffers cached
Mem: 506356 370360 135996 0 7444 87180
-/+ buffers/cache: 275736 230620
Swap: 0 0 0
/proc/cmdline: root=/dev/sda1 ro idle=halt acpi_sleep=s3_mode
------------------------------------------------------------------------------
========we are going to sleep, preparing.========
== checking runlevel ==
no shutdown/reboot in progress, good.
== Unmounting FAT/NTFS filesystems: ==
none found in /etc/mtab
== FAT/NTFS filesystems unmounted ==
Stopping services: ('network' configured)
none running.
ejecting PCMCIA cards...
------------------------------------------------------------------------------
Unloading modules: ('prism54 sky2' configured)
checking prism54
checking sky2
# trying to unload: sky2
unloaded: sky2
------------------------------------------------------------------------------
prepare_sleep finished for suspend2ram
------------------------------------------------------------------------------
/usr/sbin/s2ram not found, falling back to echo.
==== finished, return code 0 ====
========we are back from suspend, cleaning up.========
== restore_after_sleep: restart and reload everything ==
Resuming:
---------
switched back to console: ' 7'
Reloading modules:
sky2
inserting PCMCIA cards...
Restarting services:
Remounting filesystems:
not necessary.
======================================
restore_after_suspend_to_ram: finished
Apparently network is considered already accounted for, but it isn't. I have to restart the script manually. What's up with this?
Offline
powersaved _might_ be too quick about bringing networking up. Try editing the /etc/rc.d/networking and add "sleep 5" at the beginning of the file or something...
Worth a shot anyway.
"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."
SETH / Jane Roberts
Offline
Umm... OP? Log doesn't say that network fails, but appears to indicate that powersaved does not try to restart it. I'll give it a shot but it looks completely irrelevant.
Edit: Well I'll be damned, it worked. Just a second, I'm going to do a bit more messing around...
Edit again: Hmm, strange, works without the 5-second wait now. Damned if I know what was up with that.
Last edited by Gullible Jones (2007-06-06 01:35:48)
Offline
Sherlock Holmes and I, we know what's up!
Glad it worked.
"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."
SETH / Jane Roberts
Offline