Jump to content

CMOS Resets on Restarts after Sleep and Wake in 10.7 (Lion)


  • Please log in to reply
485 replies to this topic

#461
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:Florida
You could try rolling back to the Snow Leopard's AppleACPIPlatform.kext v1.3.5 as well as setting the hibernate mode to 0 via the following terminal command:
sudo pmset -a hibernatemode 0
Do not forget to rebuild the system caches. :|

Attached File  AppleACPIPlatform.kext.zip   406.84KB   59 downloads

#462
coscos

coscos

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
Just tried this, still the same: black screen after waken up. :hammer: :hammer:

Do I also need to patch AppleRTC by doing this?

#463
ugokind

ugokind

    InsanelyMac Deity

  • Donators
  • 1,712 posts
  • Gender:Male
  • Location:10100
  • Interests:Apicoltura
    Mac
    Linux
    Homebrew
    Australia
    Spremermilcervello
well.. is it good to show battery infos in the asus hp laptops?

#464
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

I recently was trying to fix the sleep/wake issue on my hackintosh, and need some help. My hackintosh has a gigabyte p35-ds3l, Sapphire Radeon HD5770. Running 10.7.2, everything is good except wake up.

After the machine sleeps properly, when it is woke up by keyboard or power button, it goes to black screen directly. The power is on, fans spinning, but no output to screen. I tried to ping it from another machine, but no response. Clearly the NIC was not brought up either.

I’ve tried patching AppleRTC file, using SleepEnabler, set darkwake to 0, using official RTL8111B or Lnx2mac network card drivers, but none of them works (all black screen)

Now I'm stucked. Any suggestion?

remove sleep enabler and make sure EHCI and USBx is patched in dsdt with device ids as u have ich9 right ?

#465
coscos

coscos

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
I already removed sleep enabler ...

As to patching EHCI & USBx, can you be more Specific about how to do it? I'm new to this. Thanks!

By the way, I aw able to sleep and wake up under 10.6.8 ...

#466
psycmos

psycmos

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Mirandela,Portugal
Thkz a lot!!! i used the second method , patch via terminal, and works well on GA P41T-D3P, 10.7.3 Sleep/wakeup/restart without cmos error!!! Very Very thkz... ;)

#467
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts

The AppleRTC executable file appears to remain unchanged in 10.7.3. However revisiting the perl script in post#340; found the following on a kext copy in Extra is sufficient:-

sudo perl -pi -e 's|\x75\x30\x44\x89\xf8|\xeb\x30\x44\x89\xf8|' /Extra/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC


Is it possible that your new smaller patch doesn't patch the 32bit part of the kext? After booting in 32bit kernel, i got a cmos reset again.

#468
rayap

rayap

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 162 posts
  • Gender:Male

Is it possible that your new smaller patch doesn't patch the 32bit part of the kext? After booting in 32bit kernel, i got a cmos reset again.


Thanks mate. That must be it.

#469
redshot

redshot

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
  • Gender:Male
Hello, I used the patch and there is no CMOS reset anymore, but I still get a black screen upon waking up. Tried to disable hibernation, darkewake=0, but still no avail, and nothing is mentioned on the logs.

Using 10.7.3, sleepenabler, on an Asus A3f laptop.

#470
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:Florida

Hello, I used the patch and there is no CMOS reset anymore, but I still get a black screen upon waking up. Tried to disable hibernation, darkewake=0, but still no avail, and nothing is mentioned on the logs.

Using 10.7.3, sleepenabler, on an Asus A3f laptop.


Roll back the OS X Lion's AppleACPIPlatform.kext v.1.4.0 to the Snow Leopard's AppleACPIPlatform.kext v.1.3.5.
Ensure to rebuild the kernelcache.

Attached File  AppleACPIPlatform.kext.zip   407.18KB   34 downloads

#471
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

Hello, I used the patch and there is no CMOS reset anymore, but I still get a black screen upon waking up. Tried to disable hibernation, darkewake=0, but still no avail, and nothing is mentioned on the logs.

Using 10.7.3, sleepenabler, on an Asus A3f laptop.

try DarkWake=1

#472
redshot

redshot

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
  • Gender:Male

Roll back the OS X Lion's AppleACPIPlatform.kext v.1.4.0 to the Snow Leopard's AppleACPIPlatform.kext v.1.3.5.
Ensure to rebuild the kernelcache.

Attached File  AppleACPIPlatform.kext.zip   407.18KB   34 downloads

try DarkWake=1


Thanks, but still no change. Goes to sleep, never wakes up, or logs any error. Interesting that after I pull the plug to shut it down, when I plug it in again, it turns itself on automatically.

#473
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
10.7.4 comes with a new AppleRTC.kext. Does the old patch still work?

#474
rayap

rayap

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 162 posts
  • Gender:Male

10.7.4 comes with a new AppleRTC.kext. Does the old patch still work?


Just do it.
Looks like the Lion AppleRTC.kext v1.5 is more like its predecessor, unlike the ML(DP1) AppleRTC.kext v1.5 a bit different.

#475
OonihiloO

OonihiloO

    InsanelyMac Protégé

  • Donators
  • 27 posts

Just do it.
Looks like the Lion AppleRTC.kext v1.5 is more like its predecessor, unlike the ML AppleRTC.kext v1.5 a bit different.

I've just done it...
And it works !!!
Used the last patch proposed in first post :

Added 10th day of July, 2011
An alternate patch for AppleRTC.kext of Lion GM. (Post # 340)

sudo perl -pi -e 's|\x75\x30\x44\x89\xf8|\xeb\x30\x44\x89\xf8|; s|\x75\x3d\x8b\x75\x08|\xeb\x3d\x8b\x75\x08|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC



#476
fredouille

fredouille

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,193 posts
  • Location:GROVILLE du Nord

I've just done it...
And it works !!!
Used the last patch proposed in first post :

well not for everyone ... unfortunately ! :(
can someone send the applertc.kext from 10.7.3 please ?

EDIT : my bad, i forgot to "onyx" before rebooting... after deleting boot cache and repairing permissions with onyx app, everythings works as expected !
Thangs again to everyone :thumbsup_anim: :thumbsup_anim: :thumbsup_anim:

#477
EnzoFX

EnzoFX

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
10.7.4 brought this back for me, off to try the same old patch.

Edit: Worked after repairing perms =P.

#478
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
I never had any probs with sleep/wakeup for looong time.
But now, with 10.7.4 i get an reboot after wakeup (from working sleep). No CMOS reset because i use that patched AppleRTC - but now the wakeup = rebbot problem.
Which other .kext maybe the reason for that? (i use C2D/Gigabyte G35)

#479
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:Florida

I never had any probs with sleep/wakeup for looong time.
But now, with 10.7.4 i get an reboot after wakeup (from working sleep). No CMOS reset because i use that patched AppleRTC - but now the wakeup = rebbot problem.
Which other .kext maybe the reason for that? (i use C2D/Gigabyte G35)


Possibly, the AppleACPIPlatform.kext v1.5. Try this one:

Attached File  AppleACPIPlatform.kext v1.3.5.zip   407.18KB   27 downloads

#480
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
No changes using AppleACPI V 1.3.5
I know that newer Chameleon has some internal RESTARTFIX, which is enabled by default - i will try so disable it for an test (RestartFIX=No).





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