Master Chief Posted November 23, 2009 Share Posted November 23, 2009 New OS X Restart Solution – OSXRestart Version 1.5c now available!!! Update: The latest Chameleon nightly – not the official RC4 release – now also includes a restart fix. A big thank you to Duvel300 who wrote this patch! I have been working on a replacement for OpenHaltRestart.kext and I am proud to present it today, here on insanelymac.com My kext is written from the ground up, and not based off of either OpenHaltRestart.kext nor EvoReboot.kext You won't find a single line of code from either kext in my work – using a completely new and different approach to solve restart issues. It is also the cleanest restart solution ever. No nagging whatsoever. Not even a single line in your log files - the only reference to me, being "OSX Restart Solution v1.3 By Master Chief 2009" can be found in both Info.plist and InfoPlist.strings (Update: I did add a notation for kernel.log in later versions). ioreg -l output Some of you here might want to know this so here goes: OSX_Restart_Handler <class OSX_Restart_Handler, id 0x10000010c, !registered, !matched, active, busy 0, retain 4> { "IOClass" = "OSX_Restart_Handler" "IOMatchCategory" = "OSX_Restart_Handler" "IOProbeScore" = 18446744073709550616 "IOProviderClass" = "IOPlatformExpertDevice" "CFBundleIdentifier" = "com.apple.osx.restart" "IOResourceMatch" = "ACPI" } And for the rest of us… it's not that a big deal. Just forget about it. Target audience OSXRestart.kext is developed for OS X 10.6 and 10.6 only. For both 32 and 64 bit (single combo kext). And also (not specifically) for people where restart-after-sleep is broken; no more keyboard controller hacks – I am using the FACP table data instead. Does it work? The first version of OSXRestart.kext has been downloaded 121 times so far, and the latest release 25 times. Which looks like nothing right now, but I haven't officially introduced it yet. Not until today – 23 November 2009 – that is. And the first confirmations from: Asus, Gigabyte and MSI users are starting to flow in. But more importantly, there hasn't been a single complaint about OSXRestart.kext not working. Which to me is far more important, especially since my code is still brand new and like I said earlier; I am doing things completely different (using FACP table data). Limitations OSXRestart.kext is developed for one reason only... to fix restart issues. Not to fix shutdown! And it might not work with motherboards with a NVDIA chipset (see post #85). Check your FACP table, which should not be much shorter than the attached example! Shutdown can be fixed with DSDT patching, and Asus user can look here for help, and Gigabyte users here. Also, OSXRestart.kext is developed specifically for OS X 10.6 and thus there won't be one for Leopard. Sorry. Troubleshooting In case of trouble, when OSXRestart.kext doesn't seem to restart your hack, you have to figure out what the problem is. I can't do magic 6000 miles away from you. Start by looking at the installed kexts in /Extra/Extensions/ (where they should be for Chameloen users) or in /System/Library/Extensions/ (where they are when they don't work in /Extra/Extensions) because one of them is most likely the culprit. Another indicator is shutdown. When that doesn't work without something like OpenHaltRestart.kext or EvOReboot.kext then you are in trouble since, again, OSXRestart.kext isn't going to solve shutdown problems. And please add a signature before you ask questions, so that people here know what you are using and can try to help you. Update: Device (SBUS) in your DSDT might cause a slow reboot – up to three times – which basically means that the SBUS isn't working for you. See also: post #102 and post #104 Failures There are a number of reports where OSXRestart.kext didn't work. A few people had to remove VoodooPowerMini.kext first, while others had to fix their installation. If you can restart once with OSXRestart.kext then you know (or should know) that the restart method I use is supported on your motherboard. Problems where it only works 1 out of N times are all related to your OS X installation – I presume another failing 3th party kext. You have to find this out yourself, and report it to the developer so that he/she can take care of it. I cannot help you with this. Sorry. What about OpenHaltRestart and EvOReboot? I don't have anything to comment on it other than; when you are happy with either one of it, that is fine by me. But please give my work a try. Which is only fair, isn't it? I mean you can always go back to whatever you are using right now, and what is working for you. Thank you for your time and cooperation. References OSXRestart.kext was first introduced here and the first update here (22 November 2009). Go download OSXRestart.kext now, and spread the word of love. And as always; Happy Hacking! -Chief OSXRestart.kext.zip FACP_Example_.dsl.zip OSXRestart_V1.4.kext.zip OSXRestart_V1.5.kext.zip OSXRestart_v1.5c.zip OSXRestart_15c_binary.kext.zip Link to comment Share on other sites More sharing options...
Maroc-OS Posted November 23, 2009 Share Posted November 23, 2009 Great job you can not release one for Leopard? Link to comment Share on other sites More sharing options...
SticMAC™ Posted November 23, 2009 Share Posted November 23, 2009 Running Snow on Intel d945gclf2 N330 Atom, works great! SticMAC Link to comment Share on other sites More sharing options...
Master Chief Posted November 23, 2009 Author Share Posted November 23, 2009 Great job you can not release one for Leopard? Unfortunately not – the kext was developer specifically for OS X 10.6 Time to upgrade to 10.6 perhaps? Link to comment Share on other sites More sharing options...
scwhar Posted November 23, 2009 Share Posted November 23, 2009 Thanks a lot MC This seems to fix restart after sleep which has always been broken for me, I tried the early version of your kext which changed nothing but this has Link to comment Share on other sites More sharing options...
blackosx Posted November 23, 2009 Share Posted November 23, 2009 Thanks for all your contributions Master Chief. It works great for me Link to comment Share on other sites More sharing options...
riws Posted November 23, 2009 Share Posted November 23, 2009 In Info.plist, should it be so? <key>CFBundleShortVersionString</key> <string>Get Info string</string> Version Number wouldn't be better? Link to comment Share on other sites More sharing options...
thiagomorales Posted November 23, 2009 Share Posted November 23, 2009 For Me works 100% too.. Great works. Regards. Link to comment Share on other sites More sharing options...
Smoc Posted November 23, 2009 Share Posted November 23, 2009 Thank you very much Master Chief. It worked for me like a charm. I have an Asus P5ke-wifi King regards, Smoc Link to comment Share on other sites More sharing options...
Master Chief Posted November 23, 2009 Author Share Posted November 23, 2009 In Info.plist, should it be so? <key>CFBundleShortVersionString</key> <string>Get Info string</string> Version Number wouldn't be better? That should have been 1.3 yes. However, this can wait for our next nit picking update. Thanks. Link to comment Share on other sites More sharing options...
bulier Posted November 23, 2009 Share Posted November 23, 2009 Thanks for your great and creative works. I'm looking for another restart patch all the time. The previous tries always can cause BOIS can not find the SATA CD-ROM, I will try this once have a moment. BTW, is there a possible that this way also can work on Leopard? Maybe not, however I think most of us are still using the Leopard. Link to comment Share on other sites More sharing options...
el_charlie Posted November 23, 2009 Share Posted November 23, 2009 I'll give it a try later when I get home. Do you know what can I do to make my HAck wake from sleep???? When it enters sleep it appears to be shut down but it's really sleeping. I can resume if I press a key or make clic (the fans start spinning again), but the screen stays black. I don't now it it's awake 'cause OSX doesn't make sounds for anything and I don't know how to make it beep without looking at the screen (open itunes, etc). If you have a solution, please let me know. I'm currently using EvoReboot. Cheers!! Link to comment Share on other sites More sharing options...
Master Chief Posted November 23, 2009 Author Share Posted November 23, 2009 ... Do you know what can I do to make my HAck wake from sleep???? When it enters sleep it appears to be shut down but it's really sleeping. I can resume if I press a key or make clic (the fans start spinning again), but the screen stays black. I don't now it it's awake 'cause OSX doesn't make sounds for anything and I don't know how to make it beep without looking at the screen (open itunes, etc). If you have a solution, please let me know... I did add two links (see Limitations) to Asus and Gigabyte topics about DSDT patching, because I was expecting something like this to happen. Please follow the links. Link to comment Share on other sites More sharing options...
The Real Deal Posted November 23, 2009 Share Posted November 23, 2009 Thanks MC, i'll try this alternative method asap. I have the same issue that previously mentionned with the sleep state... black screen and gpu fan keep spining with a 4870, but not with a 8400GS. So i conclude the faulty was the graphic card. Anyway, thanks again. Link to comment Share on other sites More sharing options...
Dr. Hurt Posted November 23, 2009 Share Posted November 23, 2009 Working perfectly here. THANK YOU Link to comment Share on other sites More sharing options...
irrational John Posted November 23, 2009 Share Posted November 23, 2009 New OS X Restart SolutionLimitations OSXRestart.kext is developed for one reason only... to fix restart issues. Not to fix shutdown! Uhhhhh ... which "restart issues" are you fixing? I ask only so I have an idea what functions you would want me to try out to see if OSXRestart.kext is working as you intended it to. I got the feeling you intended it to support resuming after putting the system to sleep, no? Or is it really all about restarting as in doing a (warm) reboot? -irrational john Link to comment Share on other sites More sharing options...
oldnapalm Posted November 23, 2009 Share Posted November 23, 2009 It fixes restart after sleep here. Great job, as usually. I can't find how to shutdown without OpenHaltRestart.kext, the only reference to shutdown in your DSDT is in Prepare To Sleep method. Could you point it please? Will you release the source code? Thanks again. Edit: in IOPMLibPrivate.c, IOPMGetLastWakeTime reads the key CLWK from (fake)SMC to determine the real time of physical wake. Maybe something related to the "after sleep" problems? Link to comment Share on other sites More sharing options...
YoMuS Posted November 23, 2009 Share Posted November 23, 2009 Would this fix my launch.c SIOGFADDR or something like that error I have every time I boot the computer? Thanks for your work! P.S: After reading my post I think I'm gonna give more info sorry I think that error is caused because of a bad restart. In addition to that, the bluetooth dongle is no initiated properly at POST, hence I can't use the wireless keyboard, which is only usable when I boot after shutdown. Thank you again Link to comment Share on other sites More sharing options...
Master Chief Posted November 23, 2009 Author Share Posted November 23, 2009 Uhhhhh ... which "restart issues" are you fixing? I ask only so I have an idea what functions you would want me to try out to see if OSXRestart.kext is working as you intended it to. I got the feeling you intended it to support resuming after putting the system to sleep, no? Or is it really all about restarting as in doing a (warm) reboot? Both. See links under References It fixes restart after sleep here. Great job, as usually. Thanks. I can't find how to shutdown without OpenHaltRestart.kext, the only reference to shutdown in your DSDT is in Prepare To Sleep method. Could you point it please? This is stuff for the P5K Pro thread. Will you release the source code? Yes. See note about in post #1. Edit: in IOPMLibPrivate.c, IOPMGetLastWakeTime reads the key CLWK from (fake)SMC to determine the real time of physical wake. Maybe something related to the "after sleep" problems? No. But it is time for another "3rd party" update to FakeSMC – PM me so that we can disuse this off-list. Link to comment Share on other sites More sharing options...
Ryu-ka Posted November 23, 2009 Share Posted November 23, 2009 THANK YOU THANK YOU! I've been looking for a decent replacement for OHR. I'll post results in a minute. Link to comment Share on other sites More sharing options...
Monkey D. Luffy Posted November 23, 2009 Share Posted November 23, 2009 Works here! G31m-ES2L rev 1.x Thank you. Link to comment Share on other sites More sharing options...
BiTRiP Posted November 23, 2009 Share Posted November 23, 2009 Works fine here on GA-EX58-UD5. Thanks for your work. BiTRiP Link to comment Share on other sites More sharing options...
oldnapalm Posted November 23, 2009 Share Posted November 23, 2009 OSXRestart.kext is developed for one reason only... to fix restart issues. Not to fix shutdown! Shutdown can be fixed with DSDT patching, and Asus user can look here for help, and Gigabyte users here. If the kext is needed to fix restart, I'd use it to fix shutdown too. Would be perfect for me, use your restart fix and OHR shutdown fix in one kext. Kill two birds with one stone. But it is time for another "3rd party" update to FakeSMC You mean your restart solution will become the next "3rd party" update to FakeSMC? fixed timeout delay on restart/shutdown (added keys LSOF and LSSB)If you use opengaltrestart or other reboot/shutdown fixers, then u still need to use it with fakesmc. Link to comment Share on other sites More sharing options...
Master Chief Posted November 24, 2009 Author Share Posted November 24, 2009 ...You mean your restart solution will become the next "3rd party" update to FakeSMC? No. But the CLWK key is a nice target. No more OT talk here please! Link to comment Share on other sites More sharing options...
tdtran1025 Posted November 24, 2009 Share Posted November 24, 2009 Like they sais, wait long enough and there will be a solution. Works as intended. Restarts after deep sleep (my main issue). MB: P5Q-Pro Thank you Link to comment Share on other sites More sharing options...
Recommended Posts