You are not logged in.

#1 2008-01-24 18:09:19

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

suspend to ram issue

I'm having trouble with s2ram on my macbook.    When I run the command it appears to work, so I think my system is whitelisted.  However, when I try to unsuspend it (pressing the power button), my screen is dead.  I believe it's successfully suspending and unsuspending because I can hear it, and I was able to run sudo reboot to get my system to restart.  Thanks for any help.

Offline

#2 2008-01-24 18:15:22

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: suspend to ram issue

Try disabling compositing manager before suspending.  For some reason, as of late, my computers will not wake up cleanly if xcompmgr is running at the time of suspending.

Offline

#3 2008-01-24 18:19:01

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

I'm having this issue without even running X

Offline

#4 2008-01-24 18:26:16

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: suspend to ram issue

On my laptop I have to use vbetool to switch the screen of prior to suspending and back on after wake up.  This can be achieved by wrapping the suspend command in a simple script.  In my case it looks something like this...

#!/bin/bash
# Turn the screen off
/usr/sbin/vbetool dpms off

# Sleepytime
sleep 1
echo "mem" > /sys/power/state
sleep 1

#Turn the screen back on
/usr/sbin/vbetool dpms on

Offline

#5 2008-01-24 18:30:23

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

ok I'll try that

Offline

#6 2008-01-24 18:33:16

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: suspend to ram issue

Yes, this does happen, and yes, suspend actually works. However, the condition to reproduce this isn't clear. I for one, think it may have to do with my undervolting. When I undervolted to the extreme of extremes, this just happened to happen. I didn't try that again as I can't afford a reboot for a while.

Another case is the AC being live. Try taking it out/disconnecting any kind of cable (like ethernet) then bring up the lid/power on.

And another strange case yet again is a revival. I had almost thought of rebooting when I tilted the lid/screen further back and forth again, and then, tada! So try that, tilt some way back more than its usual position. It's a problem with the display adapter and not with suspend itself, that is certain.


I need real, proper pen and paper for this.

Offline

#7 2008-01-24 18:40:49

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

still didn't work.  I mean, vbetool worked fine independent of s2ram, but it didn't wake my screen after unsuspending

Offline

#8 2008-01-24 18:42:47

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

schivmeister wrote:

Yes, this does happen, and yes, suspend actually works. However, the condition to reproduce this isn't clear. I for one, think it may have to do with my undervolting. When I undervolted to the extreme of extremes, this just happened to happen. I didn't try that again as I can't afford a reboot for a while.

Another case is the AC being live. Try taking it out/disconnecting any kind of cable (like ethernet) then bring up the lid/power on.

And another strange case yet again is a revival. I had almost thought of rebooting when I tilted the lid/screen further back and forth again, and then, tada! So try that, tilt some way back more than its usual position. It's a problem with the display adapter and not with suspend itself, that is certain.

I'll try that next

Offline

#9 2008-01-24 18:55:22

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

schivmeister, I unplugged everything and tilted the screen as far back as it would go, still nothing.

I was surprised though that after running s2ram then closing and reopening the lid it actually did unsuspend (minus the screen).  before I was just pressing my power button to do that.

Offline

#10 2008-01-25 01:39:07

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

anyone else have any suggestions?  or some documentation I can check out?

Offline

#11 2008-01-25 01:55:51

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: suspend to ram issue

suspend has always been a problem for some hardware, you might want to post what vid card you have and what drivers you are using.

I have the problem also, and I'm using fglrx video driver...


Archlinux on Compaq Presario v5000 laptop smile

Offline

#12 2008-01-25 02:48:58

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

intel gma 950
xf86-video-i810

and (don't know if it matters) the intel hack 915resolution

Offline

#13 2008-01-25 05:27:16

cry0x
Member
Registered: 2007-04-11
Posts: 91

Re: suspend to ram issue

Are you using pommed? On my macbook, when using the xf86-video-i810 driver, my backlight would be off after suspend. A simple backlight adjustment via pommed and I was back in action.

With the xf86-video-intel driver my backlight is restored to the brightness value it was when I suspended.

I would recommend using the xf86-video-intel driver anyway. 915 resolution is no longer needed with this driver.


Who is this doin' this synthetic type of alpha beta psychedelic funkin'?

Offline

#14 2008-01-25 13:49:44

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

thanks cry0x.

yeah, I'm using pommed.  I used my F1 and F2 keys to adjust the brightness after suspend but that didn't do anything.  I'll try the xf86-video-intel driver next and report what happens.

Offline

#15 2008-01-27 09:23:16

cry0x
Member
Registered: 2007-04-11
Posts: 91

Re: suspend to ram issue

Try adding the following bold text to your boot options (I'm using GRUB:)
kernel /vmlinuz26 root=/dev/sda3 ro quiet acpi_sleep=s3_bios,s3_mode

I remember a while back having this issue, and I believe that these boot options resolved it. I have the 1.83GHz Core2Duo model.

Last edited by cry0x (2008-01-27 09:24:24)


Who is this doin' this synthetic type of alpha beta psychedelic funkin'?

Offline

#16 2008-02-02 15:00:03

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

cry0x wrote:

Try adding the following bold text to your boot options (I'm using GRUB:)
kernel /vmlinuz26 root=/dev/sda3 ro quiet acpi_sleep=s3_bios,s3_mode

I remember a while back having this issue, and I believe that these boot options resolved it. I have the 1.83GHz Core2Duo model.

ok that didn't work either

I do remember when installing the uswsusp pkg that it said something about how the new suspend does not rely on kernel parameters, but instead /etc/suspend.conf

this is what mine looks like:

snapshot device = /dev/snapshot
resume device = <path_to_resume_device_file>
#image size = 350000000
suspend loglevel = 2
#compute checksum = y
#compress = y
#encrypt = y
#early writeout = y
#splash = y

I assume I need to replace the path to resume device file with something?

Offline

#17 2008-02-02 15:48:49

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: suspend to ram issue

Please clarify if you want to suspend to ram or to disk, because /etc/suspend.conf is used only for disk.

Probably your system is erroneously whitelisted by s2ram. Inspect whitelist.c in the source of uswsusp and see if something corresponds to the output of s2ram -i for your machine.

Then run s2ram -f + ALL  the possible combination of other options, till you find the working combination. Report the results to the suspend-devel mailing list.

If none of them works, then install the hibernate-script and use it to suspend to ram, fiddling with the plenty of workarounds provided (such as SwitchtoText, restore the vbestate from a specific file, and so on).

The archlinux wiki article on suspension to ram is the first must read.

If on the contrary you want to suspend to disk, then it is a completely different story.

Last edited by patroclo7 (2008-02-02 15:59:24)


Mortuus in anima, curam gero cutis

Offline

#18 2008-02-02 15:56:04

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: suspend to ram issue

A doubt: be sure to have uswsusp-0.8-3 and NOT uswsusp-0.8-1 or 2, because 0.8-1 or 2 had a bug due to which, when whitelist.c.diff was unmodified, ANY system not mentioned in the whitelist was erroneously whitelisted. I have fixed this in 0.8-3.

Last edited by patroclo7 (2008-02-02 16:17:19)


Mortuus in anima, curam gero cutis

Offline

#19 2008-02-02 16:26:51

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

thanks. sorry for not clarifying.  I am attempting to suspend to ram and I didn't realize suspend.conf is just for suspend to disk.  I'll try all these and get back to you.

edit:  the pkg I compiled and used was uswsusp-0.8.3-x86_64

Last edited by macbox (2008-02-02 16:43:34)

Offline

#20 2008-02-09 19:25:25

macbox
Member
From: NY
Registered: 2008-01-01
Posts: 30
Website

Re: suspend to ram issue

thanks patroclo7.

I tried:

s2ram -n

and my machine seemed to be listed properly as matched entry 3

in any case I ran

s2ram -f + ALL

as you suggested and it worked I narrowed it down to the option --vbe_save

anyway, thanks again for all the help

Offline

Board footer

Powered by FluxBB