You are not logged in.

#1 2007-03-15 09:15:08

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Suspend to Ram doesn't work

Hello,

I tried to get Suspend to Ram, but whatever way I use. Nothing worked.

First try was with

echo -n "mem" > /sys/power/state

I then got only a blinking cursor on a black screen for 20 seconds and then I see my console back with the error message

write error: Resource temporarily unavailable

Next thing the hibernate-scripts.

I changed hibernate.conf to

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

After a run I have the same behaviour like in the first method.

cat /var/log/hibernate.log outputs

Starting suspend at Thu Mar 15 09:54:41 CET 2007
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing VbetoolSaveState ...
'vbetool' utility not found. Vbetool disabled.
hibernate: [98] Executing CheckRunlevel ...
hibernate: [99] Executing DoSysfsPowerStateSuspend ...
hibernate: Activating sysfs power state mem ...
hibernate: [97] Executing VbetoolRestoreState ...
hibernate: [90] Executing ModulesLoad ...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
hibernate: [70] Executing ClockRestore ...
hibernate: [59] Executing RemountXFSBootRW ...
hibernate: [11] Executing XHacksResumeHook1 ...
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
Resumed at Thu Mar 15 09:55:04 CET 2007

Ok for the last attempt I installed powersave, run the powersaved daemon and typed "powersave -u" into my console.
My machine switched to text and I could read

Disabling non-boot CPUs
Stoppings Tasks

But then again I returned to my Desktop.

cat /var/log/suspend2ram.log

suspend2ram initiated: 2007-03-15 10:03:52 AM
Debug info follows here, please include in your bug reports. Thanks.
--------------------------------------------------------------------
Loaded modules:
Module                  Size  Used by
forcedeth              40200  0
ipv6                  252480  10
it87                   16784  0
hwmon_vid               3072  1 it87
eeprom                  5904  0
i2c_isa                 4096  1 it87
usbhid                 34592  0
hid                    25088  1 usbhid
snd_bt87x              12004  1
bt878                   9208  0
ff_memless              5256  1 usbhid
rtc                    10416  0
ppp_generic            23444  0
slhc                    6272  1 ppp_generic
snd_mpu401              6376  0
snd_mpu401_uart         7040  1 snd_mpu401
shpchp                 29588  0
ehci_hcd               30092  0
pci_hotplug            27976  1 shpchp
nvidia_agp              6556  1
agpgart                26200  1 nvidia_agp
pcspkr                  2816  0
i2c_nforce2             5120  0
ohci_hcd               18948  0
tsdev                   6336  0
evdev                   8192  4
joydev                  8384  0
sidewinder             11264  0
emu10k1_gp              3200  0
gameport               11784  3 sidewinder,emu10k1_gp
cx8800                 29324  0
cx88xx                 60452  1 cx8800
tuner                  59816  0
tvaudio                21788  0
msp3400                28960  0
bttv                  166004  2 bt878
video_buf              20356  3 cx8800,cx88xx,bttv
ir_common              26628  2 cx88xx,bttv
compat_ioctl32          1536  2 cx8800,bttv
i2c_algo_bit            7304  2 cx88xx,bttv
btcx_risc               4360  3 cx8800,cx88xx,bttv
tveeprom               13840  2 cx88xx,bttv
videodev               25216  3 cx8800,cx88xx,bttv
v4l2_common            22656  5 cx8800,tuner,msp3400,bttv,videodev
v4l1_compat            13956  2 cx8800,videodev
lirc_i2c                8964  2
i2c_core               17792  12 it87,eeprom,i2c_isa,i2c_nforce2,cx88xx,tuner,tvaudio,msp3400,bttv,i2c_algo_bit,tveeprom,lirc_i2c
lirc_dev               12532  1 lirc_i2c
capability              3592  0
commoncap               5632  1 capability
snd_seq_oss            29184  0
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                46672  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            39072  0
snd_mixer_oss          14464  1 snd_pcm_oss
snd_intel8x0           28828  1
snd_emu10k1           112448  3
snd_rawmidi            19104  2 snd_mpu401_uart,snd_emu10k1
snd_ac97_codec         91940  2 snd_intel8x0,snd_emu10k1
ac97_bus                2432  1 snd_ac97_codec
snd_pcm                68484  6 snd_bt87x,snd_pcm_oss,snd_intel8x0,snd_emu10k1,snd_ac97_codec
snd_seq_device          6796  4 snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_timer              18820  3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc          7816  4 snd_bt87x,snd_intel8x0,snd_emu10k1,snd_pcm
snd_util_mem            3840  1 snd_emu10k1
snd_hwdep               7044  1 snd_emu10k1
snd                    43492  24 snd_bt87x,snd_mpu401,snd_mpu401_uart,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
soundcore               6496  1 snd
usbcore               115464  4 usbhid,ehci_hcd,ohci_hcd
ext3                  119688  3
jbd                    55336  1 ext3
mbcache                 7044  1 ext3
ide_cd                 35744  0
cdrom                  34464  1 ide_cd
ide_disk               13312  5
amd74xx                13852  0 [permanent]
generic                 4740  0 [permanent]
ide_core              108616  4 ide_cd,ide_disk,amd74xx,generic
sata_nv                14980  0
libata                 94100  1 sata_nv

Memory info:
             total       used       free     shared    buffers     cached
Mem:        775600     675048     100552          0      44228     313144
-/+ buffers/cache:     317676     457924
Swap:      1004020          0    1004020

/proc/cmdline: root=/dev/hdb8 acpi_sleep=s3_bios ro vga=773
------------------------------------------------------------------------------
========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: ('netfs network cups alsa' configured)
stopping netfs:
##  stty: standard input: Inappropriate ioctl for device
##  :: Unmounting Network Filesystems 9G   [BUSY] 9G   [DONE]
stopping network:
##  stty: standard input: Inappropriate ioctl for device
##  stty: standard input: Inappropriate ioctl for device
##  :: Stopping Network 9G   [BUSY] 9G   [DONE]
stopping cups:
##  stty: standard input: Inappropriate ioctl for device
##  :: Stopping CUPS Daemon 9G   [BUSY] 9G   [DONE]
ejecting PCMCIA cards...

------------------------------------------------------------------------------
Unloading modules: ('prism54 ' configured)
checking prism54
------------------------------------------------------------------------------
prepare_sleep finished for suspend2ram
------------------------------------------------------------------------------
/usr/sbin/s2ram not found, falling back to echo.
==== finished, return code 11 ====
========we are back from suspend, cleaning up.========

== restore_after_sleep: restart and reload everything ==

Resuming:
---------
switched back to console: ' 7'
reactivating ACPI fan FAN

Reloading modules:
inserting PCMCIA cards...

Restarting services:
starting cups:
##  stty: standard input: Inappropriate ioctl for device
##  :: Starting CUPS Daemon 9G   [BUSY] 9G   [DONE]
starting network:
##  stty: standard input: Inappropriate ioctl for device
##  :: Starting Network 9G   [BUSY] 9G   [DONE]
starting netfs:
##  stty: standard input: Inappropriate ioctl for device
##  :: Mounting Network Filesystems 9G   [BUSY] 9G   [DONE]

Remounting filesystems:
  not necessary.

======================================
restore_after_suspend_to_ram: finished

Btw after installing powersave I get an

Enabling non-boot CPUs

when "echo -n "mem > /sys/power/state".

And the hibernate-script crashed at the vbetool-line, leaving me with a black screen.
But I don't think thats the main problem, because my machine even don't goes to the S3-sleep.

Offline

#2 2007-03-15 10:27:25

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: Suspend to Ram doesn't work

Is this a laptop? Can you give us more details?


Have you tried to turn it off and on again?

Offline

#3 2007-03-15 10:52:00

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

Sorry most important thing forgotten.

It's a normal desktop machine.

MB: Shuttle AN35N-Ultra
CPU: Athlon XP 2800+ (Socket A)
RAM: 786 MB DDR1
GPU: Radeon 9500 Pro
Swap-Partition is 1 GB.

Offline

#4 2007-03-15 18:01:53

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Suspend to Ram doesn't work

/usr/sbin/s2ram not found, falling back to echo.

Does this file exist?


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#5 2007-03-16 08:56:34

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

No. What I can take from the forum search there is the AUR-package suspend, which contains the file.
But i would prefer not to use AUR packages.

Thought the 'echo -n "mem" > /sys/power/state' should work.

Offline

#6 2007-03-18 09:42:54

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

Nobody an idea?

Offline

#7 2007-03-18 13:28:20

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Suspend to Ram doesn't work

did you run "powersave -u" as a regular user, and are you a member of the "power" group?
empty the UNLOAD_MODULES_BEFORE_SUSPEND2RAM="" array in /etc/powersave/sleep. that way everything gets unloaded.
"echo -n mem > /sys/power/state" will mess with your system, do a reboot then try powersave again.
You'll not need s2ram for this.


"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

#8 2007-03-18 19:40:58

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

Tried it all, problem is the same.

I remember that some months ago, it worked under Slackware with 'echo -n "mem" > /sys/power/state'.

Offline

#9 2007-03-18 19:44:47

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Suspend to Ram doesn't work

It does work - for me...
I guess you're in a kernel "blind spot" atm. I was unable to suspend between kernel 2.6.19 and 2.6.20.2, but now i'm back in buisness.


"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

#10 2007-03-18 22:14:46

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

But with Suspend-To-Disk from the hibernate-scripts I have no problems. I don't see why S4 is working, but S3 not.

Offline

#11 2007-03-18 22:36:03

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Suspend to Ram doesn't work

S3 is much more critical. Even if S4 works that does not mean that S3 will work, too. Maybe you have to debug your dsdt first?

What does "cat /sys/power/state" show?

Last edited by buddabrod (2007-03-18 22:37:10)

Offline

#12 2007-03-19 00:28:37

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

Shows mem and disk.

Offline

#13 2007-03-19 00:38:11

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Suspend to Ram doesn't work

dystoptic wrote:

Shows mem and disk.

Do you use the proprietary ati driver or the xorg implementation?

Edit: Seems to be the free one, right? With my ati card i had a lot of struggle in connection with suspend to ram(with the free and the proprietary driver), i don't remember how i solved it, but finally it worked one time...

Last edited by buddabrod (2007-03-19 00:40:24)

Offline

#14 2007-03-19 10:45:38

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: Suspend to Ram doesn't work

It's the free variant. But I don't believe it has something to do with the graphics, because also in init 3 it does not work.

I did again a test with an old slackware installation (kernel 2.6.17.6).
There my machine goes into S3. Screen is black after waking up, but at least it works.

Offline

#15 2007-04-13 12:42:25

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: Suspend to Ram doesn't work

What have to be done to make S4 work?

Have not been able to find any step by step documentation on what needs to be done.

Orjanp...


Ørjan Pettersen

Offline

Board footer

Powered by FluxBB