FAQs and How To's Handy FAQs/How To Guides for installing/configuring Mac OS X.

 
 
Thread Tools Display Modes
  (#1) Old
BAF BAF is offline
Junior Member
 
Posts: 27
Join Date: Aug 2009
Default Enabling Hibernate / Safe Sleep - 08-08-2009, 02:00 AM

Been waiting for Safe Sleep/Hibernate on your Mini? Well here you go. I got it working on my 10v with 10.5.7 (DellEFI - though this shouldn't matter much).

Safe sleep saves the contents of your RAM to an image on the hard drive whenever you put the device to sleep. After getting it set up, you'll be able to, just like on a real Mac, not worry about your battery dying while it is in sleep mode. If it dies, it will restore back to how it was once you power up again.

To get going, you'll need Chameleon 2.0 RC2 r640. Download this and extract it someplace. We'll come back to this later.
Modified boot file, attached to this post. Extract this someplace as well.

Next, make sure secure virtual memory is turned off. It is under Security in System Preferences.

Now, if you disabled hibernate before, run DellEFI. Do a custom install, the only thing you have to do here is re-enable hibernate (ignore the not recommended warning - it actually works with the new loader).

Now, we'll install the loader. Fire up Terminal and change into the i386 directory (within the Chameleon directory from the file you extracted). For example, if extracted in the Downloads folder, it would be cd ~/Downloads/Chameleon-2.0-RC2-r640-bin/i386. Then run the following three commands:

sudo fdisk -f boot0 -u -y /dev/rdisk0
sudo dd if=boot1h of=/dev/rdisk0s2 [note, this line may be different. If you're not sure, go to Disk Utility, right click your main partition and hit information, replace the 2 with whatever the partition # is.).

Now, change into the directory where you extracted boot.zip. Then run:
sudo cp boot / [note, if you have an EFI partition, copy the boot file there instead]

At this point, you have the new version of Chameleon. Take this opportunity to reboot, you should reboot just fine (it may hang on a screen with text about a hibernation file, if so, wait a few seconds and it should continue).

Once you're back up and running, you can test it out. I'd recommend deleting your hibernation file, just to make sure there's nothing stray. To do that, just run `sudo rm /var/vm/sleepimage` in a terminal.

When you put the machine to sleep, it will take a few extra seconds to write the image to disk before the power light goes from solid to pulsing. This is normal. The more ram you have, and the more stuff you have open, the longer it will take to write.

To test its functionality, wait until the light is pulsing, and pop your battery and unplug it from AC to kill it. Then power it back up. You should see a screen with a faded out screenshot of what was on your screen before as it restores, and you'll be back how it was before sleeping.

This was only tested with 10.5.7 (via DellEFI) on a 10v, but should work for anyone who uses Chameleon, albeit maybe with a few mods.
Attached Files
File Type: zip boot.zip (195.4 KB, 193 views)


BAF.cc
Dell Mini 10v, 1024x600, 160GB, 1GB, OS X 10.5.7
  (#2) Old
atm153 atm153 is offline
Senior Member
 
atm153's Avatar
 
Posts: 119
Join Date: May 2009
Send a message via AIM to atm153 Send a message via Skype™ to atm153
Default 08-09-2009, 04:52 AM

Interesting, but it didn't seem to work on 10.5.8. Followed your guide to the letter.
  (#3) Old
jebni jebni is offline
Member
 
Posts: 53
Join Date: Jun 2009
Default 08-09-2009, 01:12 PM

atm153, in another thread you mentioned that you got this working. Care for a blow by blow guide for 10.5.8 on the Mini 9/Vostro?


White Dell Mini 9 | OS X 10.5.8 | 2Gb RAM | 32Gb Runcore SSD | 16Gb Class 4 SDHC
  (#4) Old
BAF BAF is offline
Junior Member
 
Posts: 27
Join Date: Aug 2009
Default 08-09-2009, 02:44 PM

Whoops, I didn't realize you needed the modified boot file I have. I fixed the instructions. For you, download the attached zip file, extract it, and do the sudo cp boot /, and reboot.


BAF.cc
Dell Mini 10v, 1024x600, 160GB, 1GB, OS X 10.5.7
  (#5) Old
Nick Gertz Nick Gertz is offline
Member
 
Posts: 67
Join Date: Jun 2009
Location: Raleigh, NC
Default 08-09-2009, 02:54 PM

I don't see the zip file, am i missing something?


Mini 10v - Obsidian Black - 2 GB RAM - 120 GB HD - Bios A04 - OS X Snow Leopard 10.6.2
http://osx.mechdrew.com/
  (#6) Old
BAF BAF is offline
Junior Member
 
Posts: 27
Join Date: Aug 2009
Default 08-09-2009, 09:03 PM

Man, I'm not doing so great. :P Forgot to click upload. It's there now though.


BAF.cc
Dell Mini 10v, 1024x600, 160GB, 1GB, OS X 10.5.7
  (#7) Old
Nick Gertz Nick Gertz is offline
Member
 
Posts: 67
Join Date: Jun 2009
Location: Raleigh, NC
Default 08-09-2009, 10:18 PM

That seemed to do it! Since i had already installed the new chameleon bootloader I followed everything but that part. I opened some apps, put my 10v to sleep, pulled the battery and restarted and when it rebooted it showed the grey screen and progress bar just like my Macbook Pro.

Nice work, thanks for the help!


Mini 10v - Obsidian Black - 2 GB RAM - 120 GB HD - Bios A04 - OS X Snow Leopard 10.6.2
http://osx.mechdrew.com/
  (#8) Old
jebni jebni is offline
Member
 
Posts: 53
Join Date: Jun 2009
Default 08-09-2009, 11:40 PM

Followed your instructions exactly, but I'm getting a "Hibernate image is too old by XXX seconds" error on booting in 10.5.8 on a Mini 9. I have a new sleepimage file, but it isn't modified when I put it to sleep and wake. Gathering that this is the kind of message people were getting when enabling hibernation on old versions of Chameleon, I guess it's not working at all for me.


White Dell Mini 9 | OS X 10.5.8 | 2Gb RAM | 32Gb Runcore SSD | 16Gb Class 4 SDHC
  (#9) Old
atm153 atm153 is offline
Senior Member
 
atm153's Avatar
 
Posts: 119
Join Date: May 2009
Send a message via AIM to atm153 Send a message via Skype™ to atm153
Default 08-10-2009, 12:12 AM

Quote:
Originally Posted by jebni View Post
atm153, in another thread you mentioned that you got this working. Care for a blow by blow guide for 10.5.8 on the Mini 9/Vostro?
Well, I thought I did I'm gonna try with the file he uploaded, hold on a tic.
  (#10) Old
BAF BAF is offline
Junior Member
 
Posts: 27
Join Date: Aug 2009
Default 08-10-2009, 01:26 AM

I upgraded to 10.5.8, I've restored my 10.5.7 image, due to random crap not working (like the battery/AC profiles, battery time remaining, etc). I never did see if hibernate worked on it, though.


BAF.cc
Dell Mini 10v, 1024x600, 160GB, 1GB, OS X 10.5.7
 

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright © 2008-2016 MyDellMini.com.