kpowersave-suspend to disk/ram does not work

I tried suspend to disk, all went ok then as soon as it was suspended it powered back on??
I try suspend to ram and I received “error 127”, the error log is below.
Wed Aug 6 10:19:40 EDT 2008: running suspend hooks.
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
suspend initiated: Wed Aug 6 10:19:40 EDT 2008

Module Size Used by
lp 27852 0
parport_pc 55100 1
ip6t_LOG 23428 7
xt_tcpudp 19584 2
xt_pkttype 18304 3
ipt_LOG 22788 8
xt_limit 19076 15
i915 46592 3
drm 98200 4 i915
af_packet 38656 0
microcode 30608 0
firmware_class 25984 1 microcode
binfmt_misc 28040 1
snd_pcm_oss 64256 0
snd_mixer_oss 33408 1 snd_pcm_oss
snd_seq 73664 0
snd_seq_device 25100 1 snd_seq
ip6t_REJECT 21376 3
nf_conntrack_ipv6 33528 4
ipt_REJECT 20352 3
xt_state 18944 8
iptable_mangle 19712 0
iptable_nat 23688 0
nf_nat 35736 1 iptable_nat
iptable_filter 19840 1
ip6table_mangle 19584 0
nf_conntrack_netbios_ns 19200 0
nf_conntrack_ipv4 27652 7 iptable_nat,nf_nat
nf_conntrack 79188 6 nf_conntrack_ipv6,xt_state,iptable_nat,nf_nat,nf_conntrack_netbios_ns,nf_conntrack_ipv4
ip_tables 30224 3 iptable_mangle,iptable_nat,iptable_filter
ip6table_filter 19712 1
ip6_tables 31376 3 ip6t_LOG,ip6table_mangle,ip6table_filter
x_tables 33668 11 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables
ipv6 281064 17 ip6t_REJECT,nf_conntrack_ipv6,ip6table_mangle
fuse 66332 1
loop 35332 0
dm_mod 78676 0
ppdev 25348 0
joydev 28224 0
parport 52948 3 lp,parport_pc,ppdev
rtc_cmos 27168 0
rtc_core 37148 1 rtc_cmos
rtc_lib 19328 1 rtc_core
serio_raw 23428 0
i2c_i801 26128 0
sr_mod 33320 0
cdrom 50588 1 sr_mod
i2c_core 41108 1 i2c_i801
snd_hda_intel 386588 3
snd_pcm 100100 3 snd_pcm_oss,snd_hda_intel
container 21504 0
snd_timer 40712 3 snd_seq,snd_pcm
iTCO_wdt 28580 0
usbhid 60260 0
intel_agp 43460 1
snd_page_alloc 27400 2 snd_hda_intel,snd_pcm
sg 52020 0
hid 53708 1 usbhid
snd_hwdep 26372 1 snd_hda_intel
button 25360 0
iTCO_vendor_support 20228 1 iTCO_wdt
agpgart 50868 3 drm,intel_agp
snd 79544 12 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
usblp 30848 0
tg3 128516 0
soundcore 24264 1 snd
ff_memless 21896 1 usbhid
sd_mod 45208 4
ehci_hcd 52492 0
uhci_hcd 40848 0
usbcore 164812 5 usbhid,usblp,ehci_hcd,uhci_hcd
edd 26440 0
ext3 155912 2
mbcache 25348 1 ext3
jbd 73504 1 ext3
fan 22660 0
ata_piix 38532 3
libata 176604 1 ata_piix
scsi_mod 168436 4 sr_mod,sg,sd_mod,libata
dock 27536 1 libata
thermal 40348 0
processor 67504 1 thermal

         total       used       free     shared    buffers     cached

Mem: 2065948 859552 1206396 0 44864 347788
-/+ buffers/cache: 466900 1599048
Swap: 2104472 36 2104436

===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== Wed Aug 6 10:19:40 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/99info =====
Wed Aug 6 10:19:40 EDT 2008: done running suspend hooks.

  • /usr/sbin/s2ram
    Machine is unknown.
    This machine can be identified by:
    sys_vendor = “LENOVO”
    sys_product = “8808W7T”
    sys_version = “ThinkCentre M55”
    bios_version = “2JKT43AUS”
    See Suspend to RAM - openSUSE for details.

If you report a problem, please include the complete output above.
If you report success, please make sure you tested it from both X and
the text console and preferably without proprietary drivers.

  • RET=127
  • set +x
    Wed Aug 6 10:19:41 EDT 2008: running resume hooks.
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/99info =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
    ===== Wed Aug 6 10:19:41 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
    ===== Wed Aug 6 10:19:42 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
    ===== Wed Aug 6 10:19:42 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
    ===== Wed Aug 6 10:19:42 EDT 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
    Wed Aug 6 10:19:42 EDT 2008: done running resume hooks.

I switched to gnome desktop and it works fine.

Hi, the desktop shouldn’t have anything to do with this, don’t use kpowersave then, try the options in the kmenu and see what happens and for s2disk make sure your swap space is twice your ram :slight_smile:

It quit working with gnome also. How would I change my swap file size?
I’m new to linux.

Go to Yast>System>Partitioner

Make your changes but be careful or u can download the gparted live cd from here and use that to change partition sizes

GParted – Welcome

i looked at the s2ram page and if
i’m logged in as root in a terminal and enter" s2ram -f" the pc suspends ok, then I press the main power button and it resumes fine.

alright then do this

press ctrl + f2 and type in for

kde

kdesu kwrite

gnome

gnomesu gedit

copy and paste this

S2RAM_OPTS="-f"

and save file in “/etc/pm/config.d” and name the file “config”

reboot :slight_smile:

ctrl+f2 did not do anything. I assumed it was to open a terminal so that is what I did. Followed your instructions for gnome and rebooted.The first time I tried after rebooting it froze up on startup.I had to press the power button to shutdown, then restarted and it seems to be working ok now.
Is there anyway to get the computer to wake up using my usb keyboard spacebar??
Thanks for your help-

Now each time I log out the computer freezes up when I try to log back in?

sorry, my misktake, its supposed to be alt+f2, its the run command, as long as u did this perfectly it shouldn’t be causing any lock ups at all, try deleting this file and see if it helps.

in case if your machine ever has a hard lock up, other than rebooting manually causing a data loss do this, press Alt+PrintScreeen(SysRq)+RSEIUB
simultaneously and watch it magically reboot :slight_smile:

I could not delete the file but I was able to erase the contents and save it as an empty file.
How do I log in as root and delete the file?
I can now log out and log back in OK.

did u save it in the right directory and can u post the contents of the file.

to log in as root, log out and type root as user name and password, please disconnect from the internet while doing this.

It works ok keeping it as an empty file so I will let it be.I can log out and log in fine now, but suspend quit working again.
I guess I’m not going to get it working right without problems.

alright try one more thing, open the file

/usr/lib/pm-utils/defaults

using kdesu and your favorite text editor

u should see this

S2RAM_OPTS="" turn this in to this S2RAM_OPTS="-f"

save file and restart and see if it causes problems

I think I will wait and see if they add my model onto the whitelist for power management, I emailed them my info.
Thanks

Any update on this problem?