Jump to content
InsanelyMac Forum
rayap

CMOS Resets by AppleRTC.kext

Recommended Posts

Advertisement

Well, Thank You, rayap, the appleRTC hack may not be directly related to sleep, but apparently solved following problem on my XW8400 which for all the rest needs practically nothing to run flawlessly:

I have a RAID stripe 3 disk array connected to SAS, after sleep & wake one of the component disks would completely disappear to OS.

What the reason of this behaviour I don't know, but after this hack it didn't happen anymore.

Share this post


Link to post
Share on other sites

I understand the idea here is to find out the real cause of the malfunction. But in the meanwhile for those who want a fully operational system I recomend to install the AppleRTC.kext from SnowL. Fully operational on my venerated P35-DS3R (ML 10.8.2, chamaleon installed in a separated partition as I have done many times following former suggestions from BlackosX -my greetings Sir-). Credits to JUN HO (topic/253992-cmos-resets-on-restarts-after-sleep-and-wake-in-107-lion/page__st__20) who found it out first.

Share this post


Link to post
Share on other sites

I understand the idea here is to find out the real cause of the malfunction. But in the meanwhile for those who want a fully operational system I recomend to install the AppleRTC.kext from SnowL. Fully operational on my venerated P35-DS3R (ML 10.8.2, chamaleon installed in a separated partition as I have done many times following former suggestions from BlackosX -my greetings Sir-). Credits to JUN HO (topic/253992-cmos-resets-on-restarts-after-sleep-and-wake-in-107-lion/page__st__20) who found it out first.

Using the patched kext should just work fine :)

Never met with obstacles

Share this post


Link to post
Share on other sites

Didn't work for me. I had it sometime under investigation but I did not get it really (elegantly) working with the RTC patched version. Perhaps I had other dependencies, since a.o. i tried different dsdt's...

Share this post


Link to post
Share on other sites

Didn't work for me. I had it sometime under investigation but I did not get it really (elegantly) working with the RTC patched version. Perhaps I had other dependencies, since a.o. i tried different dsdt's...

for waking up causing CMOS reset is only related to AppleRTC.kext

for restarting causing CMOS reset is related to dsdt edits

Share this post


Link to post
Share on other sites

Let's see if that fix my sleep/wake problem on Asus P5QC too. Will let you guys know :)

 

Thank you rayap

 

edit: It won't work and I stuck at [ PCI configuration begin ] message with -v

Edited by piratx

Share this post


Link to post
Share on other sites

Could this be why after installing Mountain Lion on my laptop with Windows 7 Dual Boot that my clock keeps resetting and doesn't save when logging back into Windows? Do I need to apply this cmos reset fix? :worried_anim:

Share this post


Link to post
Share on other sites

Could this be why after installing Mountain Lion on my laptop with Windows 7 Dual Boot that my clock keeps resetting and doesn't save when logging back into Windows? Do I need to apply this cmos reset fix? :worried_anim:

Yes, that's probably it. I have the same problem. :(

Share this post


Link to post
Share on other sites

Anyone has experience with AppleRTC.kext and OS X Mavericks? Does it still cause CMOS Resets? Do we still need patching?

Share this post


Link to post
Share on other sites

Yes, use this:

sudo perl -pi -e 's|\x75\x30\x89\xd8|\xeb\x30\x89\xd8|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC

Share this post


Link to post
Share on other sites

Anyone has experience with AppleRTC.kext and OS X Mavericks? Does it still cause CMOS Resets? Do we still need patching?

Where does it resets, from sleep and restart or restart only?

Share this post


Link to post
Share on other sites

With the patched AppleRTC in ML, I have to change the RTC length in DSDT to 2. If I leave the default value (4), the system does an instant reboot when waking from sleep (but no CMOS reset).

 

Problem with length set to 2 is that system takes longer to sleep and complains about single ram bank during boot.

Share this post


Link to post
Share on other sites

Hi people. In Mavericks I couldn't patch my AppleRTC manually trough terminal as I did with all the other versions. It simply didn't work. 

 

But installing the kext @ROBASEFR attached did the job! Thanks a lot man!

Share this post


Link to post
Share on other sites

Hi people. In Mavericks I couldn't patch my AppleRTC manually trough terminal as I did with all the other versions. It simply didn't work. 

 

But installing the kext @ROBASEFR attached did the job! Thanks a lot man!

 

Actually kext provided by @ROBASEFR is the same, which I got by using this patch on Maverick AppleRTC.kext:

sudo perl -pi -e 's|\x75\x2e\x0f\xb6|\xeb\x2e\x0f\xb6|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC
sudo touch /System/Library/Extensions

Its the same patch referred by nozyczek

 

But this patch didn't work for me.

With the patched AppleRTC in ML, I have to change the RTC length in DSDT to 2. If I leave the default value (4), the system does an instant reboot when waking from sleep (but no CMOS reset).

 

Problem with length set to 2 is that system takes longer to sleep and complains about single ram bank during boot.

 

I guess it's still some sort of reset. I have similar issue. After wake comp switches off and reboots, but boots Maverick to the after deep sleep/hibernate screen with psw prompt dialog. When I log in, all apps left opened before sleep are opened at state they had before sleep. I got also kernel panic, but after enabling USB fix on boot.plist panic didn't happen anymore.

Share this post


Link to post
Share on other sites

This works for me on 10.9 Mavericks:

perl -pi -e 's|\x41\x89\xd7\x41\x89\xf4|\xe9\xb8\x00\x00\x00\x90|;' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC

 

Verify your source file before patching: 

md5 AppleRTC 

MD5 (AppleRTC) = 4b1d28ac48a2a7b35ed6b2034e0fd912

 

This patch completely disables all CMOS writes from AppleRTC kext

Cheers!

Share this post


Link to post
Share on other sites

the patch for yosemite

sudo perl -pi -e 's|\x75\x2e\x0f\xb6|\xeb\x2e\x0f\xb6|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC;
sudo touch /System/Library/Extensions;
 

work to for EL CAPITAN ( 15A178w )

 

sudo perl -pi -e 's|\x75\x2e\x0f\xb6|\xeb\x2e\x0f\xb6|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC;
sudo touch /System/Library/Extensions;

Share this post


Link to post
Share on other sites

the patch for yosemite

 

sudo perl -pi -e 's|\x75\x2e\x0f\xb6|\xeb\x2e\x0f\xb6|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC;

sudo touch /System/Library/Extensions;

 

work to for EL CAPITAN ( 15A178w )

 

sudo perl -pi -e 's|\x75\x2e\x0f\xb6|\xeb\x2e\x0f\xb6|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC;

sudo touch /System/Library/Extensions;

didn't work for me ,anyone else ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.



×