Suspend to Ram on Macbook Pro not working.

Hi,

I have installed openSuse 11 on my MacBook Pro (KDE 4.1.3).
I have configured it to suspend to ram When I close the lid of the laptop. However, the suspend fails with the following error :

An unknown error occurred while Suspend to RAM. The errorcode is: '127'
Do you want to have a look at the log file?

Please help!!

The log file contains following :

Fri Nov  7 20:59:40 PST 2008: running suspend hooks.
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
suspend initiated: Fri Nov  7 20:59:40 PST 2008

Module                  Size  Used by
ath_pci               263104  0 
iptable_filter         20736  0 
ip_tables              39056  1 iptable_filter
ip6table_filter        20608  0 
ip6_tables             40720  1 ip6table_filter
x_tables               43144  2 ip_tables,ip6_tables
wlan_tkip              29440  3 
binfmt_misc            30220  1 
af_packet              42624  4 
snd_pcm_oss            72192  0 
snd_mixer_oss          36096  1 snd_pcm_oss
snd_seq                87696  0 
snd_seq_device         26772  1 snd_seq
ipv6                  331544  18 
cpufreq_conservative    26248  0 
cpufreq_userspace      23556  0 
cpufreq_powersave      18816  0 
acpi_cpufreq           27536  1 
microcode              32808  0 
firmware_class         27776  1 microcode
nls_utf8               19072  1 
hfsplus               100488  1 
fuse                   72384  1 
loop                   37508  0 
dm_mod                 88600  0 
applesmc               42820  0 
input_polldev          22416  1 applesmc
led_class              22920  1 applesmc
snd_hda_intel         568228  6 
snd_pcm               120200  3 snd_pcm_oss,snd_hda_intel
snd_timer              45840  3 snd_seq,snd_pcm
wlan_scan_sta          32640  1 
uvcvideo               76040  0 
joydev                 30848  0 
compat_ioctl32         25984  1 uvcvideo
ath_rate_sample        31232  1 
snd_page_alloc         29328  2 snd_hda_intel,snd_pcm
videodev               52096  2 uvcvideo,compat_ioctl32
video                  43156  8 
appletouch             28288  0 
snd_hwdep              28552  1 snd_hda_intel
ohci1394               50868  0 
sr_mod                 35892  0 
rtc_cmos               28728  0 
nvidia               8165472  36 
i2c_i801               27804  0 
wlan                  265200  5 ath_pci,wlan_tkip,wlan_scan_sta,ath_rate_sample
iTCO_wdt               30800  0 
v4l1_compat            29444  2 uvcvideo,videodev
output                 21248  1 video
ieee1394              122216  1 ohci1394
snd                   103320  18 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
rtc_core               41012  1 rtc_cmos
intel_agp              48240  0 
ac                     24328  0 
battery                33672  0 
button                 27040  0 
sky2                   69892  0 
rtc_lib                20224  1 rtc_core
cdrom                  53416  1 sr_mod
iTCO_vendor_support    21124  1 iTCO_wdt
ath_hal               293888  3 ath_pci,ath_rate_sample
i2c_core               45344  2 nvidia,i2c_i801
soundcore              26000  1 snd
sg                     56912  0 
usbhid                 65488  0 
hid                    59296  1 usbhid
ff_memless             23176  1 usbhid
ehci_hcd               56204  0 
sd_mod                 47408  4 
uhci_hcd               43936  0 
usbcore               188376  6 uvcvideo,appletouch,usbhid,ehci_hcd,uhci_hcd
edd                    28176  0 
ext3                  171024  1 
mbcache                27396  1 ext3
jbd                    82368  1 ext3
fan                    23944  0 
ata_piix               43396  3 
libata                195232  1 ata_piix
scsi_mod              195160  4 sr_mod,sg,sd_mod,libata
dock                   29344  1 libata
thermal                44448  0 
processor              72792  4 acpi_cpufreq,thermal

             total       used       free     shared    buffers     cached
Mem:       2043824     951356    1092468          0      28928     501236
-/+ buffers/cache:     421192    1622632
Swap:      2111388          0    2111388

===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
ejecting PCMCIA cards...
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
trying to unload: ath_pci
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== Fri Nov  7 20:59:40 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/99info =====
Fri Nov  7 20:59:40 PST 2008: done running suspend hooks.
+ /usr/sbin/s2ram
Machine is unknown.
This machine can be identified by:
    sys_vendor   = "Apple Inc."
    sys_product  = "MacBookPro3,1"
    sys_version  = "1.0"
    bios_version = "   MBP31.88Z.0070.B02.0706181323"
See http://en.opensuse.org/S2ram 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
Fri Nov  7 20:59:41 PST 2008: running resume hooks.
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/99info =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
method return sender=:1.2 -> dest=:1.69 reply_serial=2
   boolean false
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
trying to reload: ath_pci
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
inserting PCMCIA cards...
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
===== Fri Nov  7 20:59:41 PST 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
Fri Nov  7 20:59:41 PST 2008: done running resume hooks.

first thing to try
from a terminal as su

s2ram -f

see how that goes and report back

more info here
Suspend to RAM - openSUSE

Hi,

Thanks for the reply.

I tried s2ram -f.
The machine did suspend. But then i could not figure out how to wake it up.

It doesnt suspend when closing the lid though.

s2ram -n gives the followins details :

Machine unknown
This machine can be identified by:
    sys_vendor   = "Apple Inc."
    sys_product  = "MacBookPro3,1"
    sys_version  = "1.0"
    bios_version = "   MBP31.88Z.0070.B02.0706181323"
See http://en.opensuse.org/S2ram 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.

The machine did suspend. But then i could not figure out how to wake it up.

Try the power button

I did… The machine sounds like it is waking up… But, i dont get the screen. Just a blank screen and a cursor at the top left corner of the screen.

Same problem here.
I have a Macbook Pro 3.1 (Santa Rosa) with openSuSE 11.1 on it. When it awakes, i can’t figure out how to get the screen “coming back to light”.
I’ve tried some of the tricks from Suspend to RAM - openSUSE, but it is pretty annoying since on every failed try, i have to reboot it via the power button (don’t want to corrupt filesystem).
So, the question here is: has anyone here the same laptop and has figured it out?

Here is the output for s2ram -n:


Machine unknown
This machine can be identified by:
    sys_vendor   = "Apple Inc."
    sys_product  = "MacBookPro3,1"
    sys_version  = "1.0"
    bios_version = "   MBP31.88Z.0070.B07.0803051658"
See http://en.opensuse.org/S2ram 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.

The content of /var/log/pm-suspend


===== 2009-02-17 11:48:19.446732629 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2009-02-17 11:48:19.474991389 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2009-02-17 11:48:19.481191618 running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
===== 2009-02-17 11:48:19.496235360 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== 2009-02-17 11:48:19.502226135 running hook: /usr/lib/pm-utils/sleep.d/99info =====
2009-02-17 11:48:19.514396956: done running suspend/suspend hooks.
INFO: going to suspend. In case of problems with the selected suspend options,
INFO: please read /usr/share/doc/packages/pm-utils/README.smart-suspend-to-RAM
INFO: using user-supplied options: S2RAM_OPTS='-f -p -m' for suspending.
+ /usr/sbin/s2ram -f -p -m