Jump to content

Sleep only one time


  • Please log in to reply
22 replies to this topic

#1
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
Hello,

I got sleep successfully working in mountain lion (10.8.2) with the help of dsdt edits. But sleep works only one time. At the second time, the screen stays black, the console does not trigger any wake reason.
Is there any solution for that problem?

Thank you.

#2
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
have you patched AppleRTC.kext?

#3
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
Well... I am not sure, but I think I hadn't. My DSDT should "patch" this...

Should I try a patched AppleRTC?
If yes, why did this work the first time but not the second time?

#4
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
no, to patch open terminal and copy following text, then password.
sudo perl -pi -e 's|\x75\x30\x89\xd8|\xeb\x30\x89\xd8|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC
then repair permissions:
diskutil repairPermissions /
and rebuild cache
sudo touch /System/Library/Extensions/

unpatched AppleRTC can cause cmos reset on wake, leading to problem only seen after second wake. Could be other reasons for your issue, but patching AppleRTC for sleep is standard hackintoshing procedure, along with native power management working (i.e. NO NullAppleIntelPowermentManagement.kext) after DSDT patching

#5
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,518 posts
  • Gender:Male
  • Location:Tampa, Florida
10.7+
10.6 dont need patch, just dsdt rtc fix

#6
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
Hello,

thank you, I will try it later at home and report the result here :)

I am sure that I have no NullAppleIntelPowermentManagement.kext, I fixed this with DSDT edit.

Thanks again, I hope this will work :)

#7
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
and that patch is 64bit only so good for 10.8 system where no 32bit

#8
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
I patched the AppleRTC.kext with no success. The sleep issue is not fixed yet :(

/edit: Okay, just a few more infos:
I followed the constructions of #4 but that did not work. So I tried another construction: I copied the original AppleRTC to Desktop. I patched it with console and perl (see #4 step 1) and "install" the kext with ###### and repair permissions and rebuild cache with Kext Utility ML. This does not work, too.

The console gave me following information while first sleep:

Spoiler


The console gave me following information while second sleep:

Spoiler


The console gave me following information while startup (maybe interesting):

Spoiler


I attached my patched AppleRTC and DSDT: Attached File  Sleep data.zip   66.83KB   7 downloads


Thank you!

#9
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain

sleep:Proper combination for sleep is:


1) patched HPET, TIMR, RTC, PIC sections

2) patched EHCI/UHCI sections

3) patched AppleLPC kext to match chipset id

4) removed NullCPUPowerManagement,

5) patched AppleRTC kext to solve CMOS reset after sleep


#10
westwaerts

westwaerts

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 880 posts
  • Gender:Male
i have to wake from sleep click twice, first click wakes the computer, second the screen
( in console i have a message Graphics surpressed for xxx ms)
so i think thats the way it works in 10.7.5 , try it for you.

#11
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
@#10: Thank you, but this also does not work :(

@#9: Thank you, too. I will check it later.

Sorry, double post (can not edit with Tapatalk): I edit my post #8 to give more information which maybe (and hopely ;)) helps to fix my issue :)

#12
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain
type in app Terminal: sudo pmset -g assertions
and post results

and this: syslog | grep -i "wake reason"




and you have more problems in your boot log this is one:

14.11.12 09:33:05,000 kernel[0]: NVEnabler: False ROM signature: 0x0000


14.11.12 09:33:05,000 kernel[0]: NVEnabler: probe : patch PROM


14.11.12 09:33:05,000 kernel[0]

: ** AppleSMBusPCI::start failed to get acpi path for provider


14.11.12 09:33:05,000 kernel[0]: NVEnabler: dcb table at offset 0x86e2


14.11.12 09:33:05,000 kernel[0]: NVEnabler: dcb numentries 10



14.11.12 09:33:03,000 kernel[0]: [ PCI configuration end, bridges 7 devices 21 ]


14.11.12 09:33:03,000 kernel[0]:

USBF: 0.453 We could not find a corresponding USB EHCI controller for our OHCI controller at PCI device number26


14.11.12 09:33:03,000 kernel[0]: BCM5722D (Build date/time: Aug 16 2012 23:50:52)


14.11.12 09:33:03,000 kernel[0]: BTCOEXIST off



and this

14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDKeyboardModifierMappingPairs Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDResetPointer Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDPointerButtonMode Value: 2


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDClickTime Value: 500000000


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDScrollReset Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDScrollAcceleration Value: 20480


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDResetKeyboard Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDKeyRepeat Value: 83333333


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDInitialKeyRepeat Value: 500000000


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDStickyKeysOn Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDStickyKeysShiftToggles Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDSlowKeysDelay Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDMouseKeysOn Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDMouseKeysOptionToggles Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: MouseKeysStopsTrackpad Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDScrollZoomModifierMask Value: 0


14.11.12 09:33:09,000 kernel[0]: ApplePS2ALPSGlidePoint: Dictionary Object: HIDDefaultParameters Value: ??



#13
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
here's patched version incase you were having troubles.

Disable Firewire in BIOS

Check SystemPrefs>Energy Saver and make sure first 3 boxes are checked

Add DarkWake=No to org.chameleon.Boot.plist

Attached Files



#14
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,518 posts
  • Gender:Male
  • Location:Tampa, Florida
Loading VoodooHDA 0.2.1

#15
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
Hello,

tried the patched AppleRTC - no success. Disabling Firewire is not possible (I don't like my bios -.-)..

The VoodooHDA kext (it's a custom one) activates my headspeakers - no other VoodooHDA kext had done this...

Maybe the graphic kexts (NVDANV50Hal, NVDAResman, NVEnabler64) are the problem? Can someone give me the original 10.8.2 kexts so I can swap these?

Thank you again for your help!

/edit: No one anymore?

#16
westwaerts

westwaerts

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 880 posts
  • Gender:Male
How are your graphics enabled ( via chameleon, DSDT, EFI-strings) ?
Which smbios model are you using ?

#17
dsTny

dsTny

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
Hello,

thank you for answering :)

I have mountain lion and the autosleep script is for 10.6.x and 10.7.x but I am giving it a try tomorrow.

I installed OS X ML again and tried sleep without custom graphic kexts. It does not work...

#18
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain
man, your problem is with USB EHCI section in your DSDT, if you not solve this problem , never your sleep go work.:

USBF: 0.453 We could not find a corresponding USB EHCI controller for our OHCI controller at PCI device number26




: ** AppleSMBusPCI::start failed to get [font=inherit !important][font=inherit !important]acpi[/font][/font][font=Verdana, Geneva, sans-serif] path for provider[/font]



http://www.insanelym...howtopic=241022



#19
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
Maybe someone can fill me in, but why it say "USBF: 0.453 We could not find a corresponding USB EHCI" USB obviously "controller for our OHCI controller at PCI device number26" but OHCI is Firewire.... Am I missing something, or is that just seriously jacked up DSDT????

#20
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,518 posts
  • Gender:Male
  • Location:Tampa, Florida
i have seen dells that are missing the EHCI but never noticed if OHCI firewire was an issuewith it.
id say its part dsdt.. what firewire chip is it ?
maybe it needs power conservation is disabled fix for firewire ?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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