netkas.org

Deep Sleep, aka Hibernate finaly comes to osx86

Yeah, it works, my hackbook pro jsut woke up from deep sleep, with pcefi v9 beta.

thx to Turbo for support.

pcefi v9 comes some time later, with x86_64 kernels support and deep sleep support.

althought, some mobo fails to make sleepimage and goes to s3 sleep instead of deep sleep, like gigabyte, asus.

i hope it can be fixed.

here is log from dmesg

hibernate image path: /var/vm/sleepimage
sizeof(IOHibernateImageHeader) == 512
Opened file /var/vm/sleepimage, size 3221225472, partition base 0x1e7ba00000, maxio 400000
hibernate image major 14, minor 3, blocksize 512, pollers 3
hibernate_alloc_pages flags 00000000, gobbling 0 pages
0 [Time 1223926667] [Message System SafeSleep
hibernate_page_list_setall start
hibernate_page_list_setall time: 59 ms
pages 131772, wire 72362, act 44668, inact 6605, zf 0, throt 8137, could discard act 0 inact 0 purgeable 0
hibernate_page_list_setall found pageCount 131772
IOHibernatePollerOpen, ml_get_interrupts_enabled 0
IOHibernatePollerOpen(0)
writing 130752 pages
hibernate_machine_init: state 2, image pages 72279, sum was 141e9dbd, image1Size 9cb2400, conflictCount 0, nextFree 2a
IOHibernatePollerOpen(), ml_get_interrupts_enabled 0
IOHibernatePollerOpen(0)
hibernate_machine_init reading
hibernate_machine_init pagesDone 131689 sum2 4f5b799c, time: 3849 ms
System SafeSleep Wake

UPDATE
gigabyte ga-ep35-ds3p just woke up from sleep, with less then 4gb ram, 4gb causes some fails(32-bit integer overflow), working on fixing it.

Comments

  1. anonymous
    October 13th, 2008 | 9:56 pm

    Good job netkas!
    you don’t need me to restate how important you are to the osx86 community
    This release really helps PC EFI against Chameleon…

  2. anonymous 2
    October 14th, 2008 | 11:05 am

    Hi. I have Badaxe2 and hibernate works just fine on it.

    with PC-EFI 8

  3. sudosu
    October 14th, 2008 | 11:52 am

    W00t, very good work, Netkas ๐Ÿ™‚

    @anonymous:

    ‘against Chameleon’?

    In case you didn’t notice: We’re all in the same gang, it doesn’t matter who is first and it is important to have more than one project.

  4. locossaurorex
    October 14th, 2008 | 8:46 pm

    Good news, good work Netkas.

  5. Joshua Ochs
    October 14th, 2008 | 9:10 pm

    Are you EVER going to allow passing in the boot device so we don’t have to hit keys and type in a non-sensical number on EVERY DAMN BOOT?

    You know, what people have been asking about for over a year?

  6. Chris
    October 15th, 2008 | 2:34 am

    Please, dear god, PLEASE e-mail me this if possible, at your earliest convenience.. I would love sleep.

  7. spartango
    October 15th, 2008 | 2:59 am

    Hmm…X86_64 support? That should mean that given a Snow Leopard kernel…we’ll be able to use the 64-bit mode…
    Question: For your Snow Leopard setups, have you had to strip off the 32-bit kernel binary from the Universal to force it to boot 64-bit?
    nice work!

  8. October 15th, 2008 | 5:34 am

    I just want to know,where can i get the pcefi v9.

  9. Detosx
    October 15th, 2008 | 2:57 pm

    Outstanding! Someone erect a statue to this guy!

  10. Rui
    October 15th, 2008 | 7:19 pm

    Good job!!!!
    When will we put hands on a 64 bit kernel? Iยดm anxious for it.

  11. Vlad
    October 17th, 2008 | 1:40 am

    Fantastique!

    Sir, you are a Dostoevsky of the OSx86!

  12. anonymous22
    October 17th, 2008 | 11:57 am

    4gb problem on YOUR (ep35-dsr3p) machine might be related to Jmicron IDE controller? Not the (e)sata ports with AHCI, but the IDE ports of the jmicron controller… it’s only the IDE ports that needs a patched jmicron.kext to let IDE work with LESS than 2/3gb of memory, WHEN 4gb random kernel panics

    Otherwise it might be the 889a audio codec.

    But maybe you tried waking from sleep without these devices enabled in bios…

  13. Jojo
    October 17th, 2008 | 11:37 pm

    Good work, soldier !
    Now I dreaming of Snow Leopy on my 9600GT …

    Thank to make the scene greatest !

  14. alvin777
    October 18th, 2008 | 3:47 am

    Hi. Where do you download it? Clues only not the actual name of the download site please.

  15. Anonyous 3
    October 18th, 2008 | 11:04 pm

    I’d take it as a great new, if I only had the classic sleep working, before thinking about the deep one.

  16. October 19th, 2008 | 1:11 pm

    @all

    It isn’t released yet….

  17. ewar
    October 20th, 2008 | 7:15 pm

    finally you wake up from sleep n make great job for hackintosh world.

  18. cyberdog
    October 22nd, 2008 | 8:58 pm

    My little Gigabyte GA-945GCMX-S2
    10.5.5 with Vanilla Kernel 9.5.0
    Hibernate work with pcefi v8

  19. ccr4700
    October 24th, 2008 | 10:51 am

    >x86_64 kernels support
    It makes Snow Leopard booting on hackintosh?

  20. nube
    October 26th, 2008 | 5:29 pm

    that sounds nice, i yet have to make my packard bell laptop shutdown and have propper usb plus internet connection, will this work for shut down

  21. Cosmo
    October 28th, 2008 | 2:45 am

    Absolutely Amazing…I can’t wait to get Deep Sleep! I’ve got a GA-P31-DS3L with shutdown, fast sleep, restart working perfectly…Deep sleep is the icing on the cake!

  22. November 4th, 2008 | 4:36 am

    Cool, Where can I get it?

  23. potemkin
    November 6th, 2008 | 3:19 am

    Thy kernels thou produce bring happiness to countless faces staring tiresomely at their DVA-to-VGA plugged monitors.

    People โ€” rejoice! There is hope.

  24. youminbuluo
    November 13th, 2008 | 5:50 pm

    we are kooking forward

  25. November 13th, 2008 | 10:12 pm

    Hey. When you share this version of PC_EFI ? I’m waiting for Deep Sleep working on my Extensa 5220, on this moment it is not work.
    Greetings from Poland ๐Ÿ˜‰
    Sorry for my bad English.

  26. November 14th, 2008 | 4:33 am

    pardon me for asking, but why hibernate when we have a perfectly good standby?

  27. November 20th, 2008 | 12:44 pm

    […] for several hours yesterday and asleep overnight, but it still showing over 4 hours battery life This post suggests that this is now a solved […]

  28. ShadowMajk
    November 28th, 2008 | 11:08 am

    “Cosmo
    October 28th, 2008 | 2:45 am
    Absolutely Amazing?I can?t wait to get Deep Sleep! I?ve got a GA-P31-DS3L with shutdown, fast sleep, restart working perfectly?Deep sleep is the icing on the cake!”

    After installation PCEFIv9 my retail on this MOBO dont work perfectly… shutdown work… restart not! but S3 Sleep Perfectly… if u can send to me kext what u use ๐Ÿ˜‰

    shadowmajk@gmail.com

    Thx, Arrow!

    My english… better is polish vodka! ๐Ÿ™‚

  29. zgbzch
    December 27th, 2008 | 2:29 am

    great!good job!

  30. jimmy
    January 7th, 2009 | 2:57 am

    Can it be that a GUID partition table (GPT) formatted disk is required for this to work? Or does anyone have this working on a traditional MBR-style disk?

Leave a reply