Jump to content

OSXRestart.kext


  • Please log in to reply
172 replies to this topic

#1
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male
New OS X Restart SolutionOSXRestart 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

Attached Files



#2
Maroc-OS

Maroc-OS

    InsanelyMac Protégé

  • Members
  • Pip
  • 29 posts
  • Gender:Male
  • Location:Casablanca, Casablanca, Morocco
  • Interests:P5KPL-AM SE
Great job ;)

you can not release one for Leopard?

#3
SticMAC™

SticMAC™

    "Nobody likes a SmartASS"

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,590 posts
  • Gender:Male
  • Location:Da Bathroom!!
Running Snow on Intel d945gclf2 N330 Atom, works great!

SticMAC

#4
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

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?

#5
scwhar

scwhar

    Scwhar

  • Members
  • PipPipPip
  • 112 posts
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

#6
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK
Thanks for all your contributions Master Chief. It works great for me :(

#7
riws

riws

    InsanelyMac V.I.P.

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 6,081 posts
In Info.plist, should it be so?

<key>CFBundleShortVersionString</key>
	<string>Get Info string</string>

Version Number wouldn't be better?

#8
thiagomorales

thiagomorales

    Think different...

  • Members
  • PipPipPip
  • 121 posts
  • Gender:Male
  • Location:Brazil - Rio de Janeiro
For Me works 100% too..
Great works.

Regards.

#9
Smoc

Smoc

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
Thank you very much Master Chief. It worked for me like a charm. I have an Asus P5ke-wifi

King regards,
Smoc

#10
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

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.

#11
bulier

bulier

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
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.

#12
el_charlie

el_charlie

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 220 posts
  • Gender:Male
  • Location:Maracaibo, Venezuela
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!!

#13
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

...

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.

#14
The Real Deal

The Real Deal

    InsanelyMac Legend

  • Donators
  • 886 posts
  • Gender:Male
  • Location:France
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.

#15
Dr. Hurt

Dr. Hurt

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,477 posts
  • Gender:Male
  • Location:Cairo, Egypt and NYC, USA
  • Interests:Wandering around on the internet!! Politics, Sci/Tech, Medicine.
Working perfectly here.
THANK YOU

#16
irrational John

irrational John

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:upstate NY, US

New OS X Restart Solution
Limitations
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

#17
oldnapalm

oldnapalm

    InsanelyMac V.I.P.

  • Moderators
  • 6,837 posts
  • Gender:Male
  • Location:Brazil
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?

#18
YoMuS

YoMuS

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 199 posts
  • Location:Valencia
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 :)

#19
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

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? :unsure:

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.

#20
Ryu-ka

Ryu-ka

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 162 posts
  • Gender:Male
  • Location:United States of America
THANK YOU THANK YOU! I've been looking for a decent replacement for OHR. I'll post results in a minute.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy