Safe Sleep in 10.4.3?

Discussion in 'macOS' started by Punani, Oct 23, 2005.

  1. Punani macrumors regular

    Punani

    Joined:
    Jun 16, 2004
    Location:
    Los Angeles
    #1
    Aloha,

    Apparently the new PowerBooks have a sort of sleep/hibernation hybrid (Apple's Note). Since this must be a software feature and the new PowerBooks have a different build number than the stock 10.4.2...should we be expecting this with 10.4.3?
     
  2. mduser63 macrumors 68040

    mduser63

    Joined:
    Nov 9, 2004
    Location:
    Salt Lake City, UT
    #3
    Looks like a nice feature, although I can't say I've ever had my battery go dead while my PowerBook was sleeping. Still, I'm sure it happens, and losing your unsaved work in such a situation wouldn't be fun at all. I wouldn't be surprised at all to see this in 10.4.3 for all Macs.
     
  3. zap2 macrumors 604

    zap2

    Joined:
    Mar 8, 2005
    Location:
    Washington D.C
    #4
    but why is the software is only for 15+17 models.??

    so if there was a power outage( a quick one) my mac would not crash if it was asleep(that would rock and be great for schools and bussiness)
     
  4. Punani thread starter macrumors regular

    Punani

    Joined:
    Jun 16, 2004
    Location:
    Los Angeles
    #5
    Aloha,

    Thanks, but I can't take the credit for it. :D

    Macbidouille got to it first (here).

    Probably because they were the only ones updated. The 12" is unchanged in every aspect.
     
  5. EGT macrumors 68000

    EGT

    Joined:
    Sep 4, 2003
    #6
    This reminds me, I'd like to see apple implement a "Lid wake from sleep on/off" in the Energy Saver>options.

    I've turned off lid wake from sleep in the terminal because I've had the lid pop open while I'm travelling (heard the Hard disc mechanism) :mad: So to stop it happening again, I have to manually wake it by the power button. (I like pressing it anyway :p )

    Either this or build a better latch!
     
  6. SpaceMagic macrumors 68000

    SpaceMagic

    Joined:
    Oct 26, 2003
    Location:
    Cardiff, Wales
  7. cjc343 macrumors 6502

    Joined:
    Jan 6, 2004
    Location:
    In the apple store, in front of a G5.
    #8
    I also turned off "Wake when lid opens" from terminal, but I've found that pressing any key on the keyboard will wake it...
     
  8. EGT macrumors 68000

    EGT

    Joined:
    Sep 4, 2003
    #9
    Yeah, make it so that just the power button wakes it, that'd be cool.
     
  9. Apple macrumors 6502

    Apple

    Joined:
    Mar 3, 2005
    Location:
    Charlotte, NC
    #10
    What is the command to turn off wake when lid opens from the terminal
    ?
     
  10. cjc343 macrumors 6502

    Joined:
    Jan 6, 2004
    Location:
    In the apple store, in front of a G5.
    #11
    sudo pmset -a lidwake 0

    As root, change the power management variable "lidwake" to have a value of '0' or 'off' for all power configurations.

    You'll need to type in your admin password...


    The preferences file is:
    /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

    so if you would rather edit that by hand, that will work too.
     
  11. Apple macrumors 6502

    Apple

    Joined:
    Mar 3, 2005
    Location:
    Charlotte, NC
    #12
    thanks now I can press the power button a lot
     
  12. Apple macrumors 6502

    Apple

    Joined:
    Mar 3, 2005
    Location:
    Charlotte, NC
    #13
    Thanks it was nothing special really
     
  13. louis_sx macrumors regular

    Joined:
    Jul 6, 2005
    Location:
    International House of Louis
    #14
    I'm surprised that this wasn't there sooner. Hibernation would be so nice for traveling
     
  14. dr_lha macrumors 68000

    Joined:
    Oct 8, 2003
    #15
    More like, nice work Apple for finally implementing this. My old Sony Vaio VX505 had this back in 2000, and Windows has it built in, "Hibernation" they call it. I've even used Linux distributions that have "Suspend-to-disk" built in. Apple were behind the curve on this one I'm afraid.

    That said. I've had a PB for over 2 years (was my first Mac) and I've never really missed that feature, as the suspend seems to last forever. The only real time I miss suspend to disk is when I need to change the battery on a long haul flight.
     
  15. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #16
    I haven't seen safe sleep on a Mac yet, but it appears that the difference is that the Apple implementation collapses hibernation and sleep into one mode, where the RAM contents are saved to disk, but the computer goes to sleep (instead of hibernation), and the disk copy of the RAM is only used if the computer runs out of power, so that wakeup is faster in the remaining instances.

    So the plus of this is that, in the Windows implementation, as I understand it, if you choose to put the computer to sleep / standby (and not hibernation) and run out of power, you are out of luck, whereas on powerbooks, you get the benefit automatically. And if you always hibernate in Windows, then you have to wait for the slower re-start from disk, even if you have the battery power to sleep.

    On the minus side is that there is no way to force hibernation in the Mac implementation, so you cannot use this feature to reduce "sleeping" power consumption.
     
  16. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #17
    You do know you can just close the powerbook and change the battery whilst it's asleep don't you? (Well I can on mine)
     
  17. MacManDan macrumors 6502

    Joined:
    Apr 11, 2003
    #18
    Powerbooks can, iBooks can't as far as I know.. even my 3.5 year old TiBook has this feature. You can have the battery out for about a minute or two with the 'book asleep and it won't die.
     
  18. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #19
    I don't think the 12" PB can do this either -- only the 15" and 17". There was a link on MR to the support note regarding this, but I can't find it at the moment.
     
  19. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #20
    That's why I didn't mention the iBooks...only the Powerbooks;)

    I wasn't aware the 12" PB couldn't do it but seeing as it's really just a souped up iBook in a metal case I guess it's not a shocker. It misses a lot of things that the 15"'s and 17"'s have.
     
  20. mkj macrumors newbie

    Joined:
    Nov 2, 2005
    #21
    It works on my iBook G4...


    See http://matt.ucc.asn.au/apple/machibernate.html
     
  21. annk Administrator

    annk

    Staff Member

    Joined:
    Apr 18, 2004
    Location:
    Somewhere over the rainbow
    #22
    I've had my battery run out three times while in sleep, but none of the work I had up (and unsaved) was lost. I just plugged the thing in as soon as I realized it why wasn't waking up, and the screen appeared as it had been before I put it to sleep.
     
  22. Deephouse macrumors newbie

    Joined:
    Nov 7, 2005
    #23
    Does anyone know how to turn this safe sleep feature off? It takes 2GB of hdd space on my new PB and I need all the free space I can get.

    UPDATE: after reading http://matt.ucc.asn.au/apple/machibernate.html I e-mailed Matt and asked him if he knew how to disable safe sleep. He did: "sudo pmset -a hibernatemode 0" turns it off and "sudo rm /var/vm/sleepimage" kills the sleepimage file. Thanks Matt!
     
  23. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #24
    The 15/17" PBs have a short duration secondary battery of sorts that lets you swap batteries without turning the computer off...this feature (safe sleep) is slightly different -- if you had tried what you did, but waited a substantial amount of time (more than a few minutes), it would not have recovered. This feature is for if your battery runs out of battery life and you do not have the ability to plug in immediately (or are not aware that it has happened).
     
  24. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #25
    I can verify that the new 'safe sleep' feature works with both my 12'' 1 Ghz aluminum Powerbook (with MDI out), and my Dual-867 MDD PowerMac G4. This means two things: I can swap batteries out of my PowerBook without having to perform a full shutdown, and the UPS attached to my Dual-867 became a lot more useful. Now, when the power fails, I can simply have my tower go into safe sleep mode, preserving the state its in, and in the case the power is out longer than the UPS is capable of sustaining the PowerMac, I don't have to worry about the system losing its place when the power is finally restored.
     

Share This Page