General Mac OS X Discussion General Apple and Mac OS X Discussion

Reply
 
LinkBack Thread Tools Display Modes
  (#1) Old
Junior Member
 
Posts: 4
Join Date: Nov 2009
Default any way to automatically delete sleepimage? - 11-28-2009, 12:52 AM

I have limited space after installing osx 10.5.8. I have also finally gotten sleep to work but the sleepimage keeps taking up 1gb out of my precious hd space. Is there any way to automatically erase the sleepimage after restart from sleep?

Also, are there things to delete from the os that is safe to delete. Thanks a bunch. This forum has been a tremendous help.
Reply With Quote
  (#2) Old
Expert Member
 
Posts: 692
Join Date: Mar 2009
Default 11-28-2009, 04:53 PM

Look for threads about disabling hibernation. They'll have the steps.


Mini1: Vostro A90, Black, 2G, 1.3 Webcam, Bluetooth, 64G SuperTalent, OS X 10.6.4
Mini2: Mini9, Black, 2G, 0.3 Webcam, Bluetooth, 32G RunCore, OS X/Win 7, internal PCI-e SHDC Reader
Mini3: Mini10v. Black, 2G, Webcam, 640G HD, OS X 10.5.8/Win 7/Ubuntu [Hibernate w/NBI 0.8.3 RC4]
Dropbox Referral
Reply With Quote
  (#3) Old
Junior Member
 
Posts: 4
Join Date: Nov 2009
Default 11-29-2009, 06:50 AM

i have read many of the threads... and did find out about the use of the terminal to delete the sleepimage by using "sudo rm sleepimage" in terminal.

but i have to do this each time i use sleep... when i awake from sleep the sleepimage is recreated, which means i have to manually delete the sleepimage again. i just want to know how to set it up to where the sleepimage is delete automatically upon awake.
thanks.
Reply With Quote
  (#4) Old
Expert Member
 
Posts: 692
Join Date: Mar 2009
Default 11-29-2009, 09:52 PM

The reason it keeps getting recreated is because you didn't do the part from those threads on setting the sleepstate. You want sleep only instead of what Windows calls hybrid sleep, which makes a memory image but then chooses to sleep instead but then has the memory image as a fallback in case the battery dies.


Mini1: Vostro A90, Black, 2G, 1.3 Webcam, Bluetooth, 64G SuperTalent, OS X 10.6.4
Mini2: Mini9, Black, 2G, 0.3 Webcam, Bluetooth, 32G RunCore, OS X/Win 7, internal PCI-e SHDC Reader
Mini3: Mini10v. Black, 2G, Webcam, 640G HD, OS X 10.5.8/Win 7/Ubuntu [Hibernate w/NBI 0.8.3 RC4]
Dropbox Referral
Reply With Quote
  (#5) Old
Junior Member
 
Posts: 4
Join Date: Nov 2009
Default 11-30-2009, 06:09 AM

oh, i mistakenly put this in the regular dell mini 9 discussion... sorry. thanx for moving.

thanks for the help. i am working with OSX 10.5.8 and have hibernate turned off and set to only use sleep. I may have done something wrong where a sleepimage keeps getting recreated every time it goes into sleep mode... my setting are incorrect.

i'll have to fiddle around with the settings but i fear messing up the sleep mode as i finally have it working correctly without getting a black screen on awake. everything works well besides the sleepimage getting recreated.
Reply With Quote
  (#6) Old
Member
 
Posts: 89
Join Date: Nov 2009
Default 11-30-2009, 06:50 AM

go into terminal and type: sudo pmset -a hibernatemode 0

this will disable hibernation all together. after the command is executed, delete the sleepimage and reboot.
Reply With Quote
  (#7) Old
Junior Member
 
Posts: 4
Join Date: Nov 2009
Default 11-30-2009, 07:22 AM

ideally, i'd like to be able to keep hibernate as an option where if it stays in sleep mode too long, hibernate will kick in to prevent complete battery drain. in this situation, the sleepimage will be created. is there a way to have the sleepimage be deleted when the computer comes out of hibernate mode? ... say using an automatic script or something.

please bear with me, i'm pretty noobish with this stuff.. thanks
Reply With Quote
  (#8) Old
Expert Member
 
Posts: 692
Join Date: Mar 2009
Default 11-30-2009, 08:05 AM

What you're looking for is what's typically deep sleep in the Mac world and hybrid sleep in Windows and is the default way Macs behave. Trouble is that unless you really work at it (and some luck seems to be involved also since it works for some and doesn't for others) and you make hibernate work enabling deep sleep wouldn't accomplish anything. Otherwise the hibernate file created is junk and won't work. Problem is even if you got it working, then could automagically delete the sleepimage upon waking, you'd still be using up that 1G of SSD space each time you slept.

Which means you wouldn't be accomplishing what you say is important in your first post in this thread and not used up that 1G of SSD space.

So just set the hibernate mode as above, delete the imaage file and use just sleep and never sleep so long the battery dies

Or live with loosing the 1G of SSD space and make real hibernate work. Once you've got that you can then choose to hybrid sleep or just sleep.


Mini1: Vostro A90, Black, 2G, 1.3 Webcam, Bluetooth, 64G SuperTalent, OS X 10.6.4
Mini2: Mini9, Black, 2G, 0.3 Webcam, Bluetooth, 32G RunCore, OS X/Win 7, internal PCI-e SHDC Reader
Mini3: Mini10v. Black, 2G, Webcam, 640G HD, OS X 10.5.8/Win 7/Ubuntu [Hibernate w/NBI 0.8.3 RC4]
Dropbox Referral
Reply With Quote
Reply

« Cameleon Bootloader. load SDHC? Possible? | Clarification required for NetbookInstaller Method 2: USB Mac Installation via Any Op »
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Copyright © 2008-2011 MyDellMini.com.