Jump to content

How to go about patching DSDT for ASUS P8Z77-V PRO?


  • Please log in to reply
47 replies to this topic

#1
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
Due to some little problems I am having, I would like to know if it's possible, for someone not into programming and basically knowing OSX for a week to learn in appropriate time (read days, not years) how to modify the DSDT for my system?

If yes, how would I go about it? When I look at the extracted DSDT, it all looks very complicated to me...

I already saw there are things like DSDT editor, patches, etc, but I find no patches for my board. Latest patches are for Z68, for whatever reason.
The reason why I want to get either a) well patched DSDT or b) patch it myself is because I have some issues with sleep, and finally I would like to be able to install the most possible vanilla OSX, using Apple drivers not 3rd party kexts, like for audio, sata, if possible.
To my understanding, a well done DSDT would make apple drivers work with my components, right?

Anyway, any pointouts would be much appreciated!

#2
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,123 posts
  • Gender:Male
  • Location:Brazil
Try to describe in more detail the problems you're having with your hardware.

#3
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
Sleep/Wake Problems - generally system won't go to sleep. I tried here different things with darkwake, 0, 1 and 10, as suggested on some threads. Sometimes it will sleep, sometimes not. I read somewhere that someone solved it with the custom DSDT for their own board. The cause was on their system the BackgroundTask named: "com.apple.helpd.sdmbuilding", which was apparently gone after custom DSDT which removed yellow drives (I removed mine with custom SATA drivers from the multib.), but the message won't go away. I don't really know what it's doing, I know there is a way of disabling it, but I don't like disabling features of the OS. I can also push the system to sleep manually, the waking becomes a gambling though… sometimes it will wake, sometimes not and reset.

Network - no WOL. Maybe it could be solved by custom DSDT, I don't know…?

Sound - possibly running with the original Apple kext? I read it's possible, also through DSDT…?

I guess that's it. In the end, I would like to configure UEFI boot with Clover, and this is also where a custom DSDT would come in handy.

#4
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
Sound: There is no way to use an unmodified AppleHDA, Apple does not support this chipset. The only thing you can do, is inject the layout-id with a custom DSDT. Try the AppleHDA from the download section in case you got any issues.

USB3 ASMedia: Works with "CalDigit" drivers.

There is no difference between legacy and uefi boot in regards of a DSDT table.

I would recommend you to look at the modifications done to similar boards and to try to adapt them if needed. There is no easy way to find out everything you need, except you find an already existing complete guide for your board.

#5
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
OK, so in the attempt to make the most vanilla installation of the OSX on my board and following this here:
- network should work out of the box?
- use AppleHDA from downloads for ALC892
- FakeSMC as per guide (and possibly NullCPUPowerManagement needed at beginning, not needed now)

What are these CalDigit drivers? When googling, I find the official site only… I have a problem that when at clean install, I see yellow icons. What is the best way to fixing that? IOAHCI from the downloads here?

As to UEFI, yeah, that much I figured, however isn't legacy a bit more forgiving when it comes to setting up the OSX?

Is there a way to know which patches I would need for my board, so I can download and apply them from olarila? Unfortunately, those things like HPET, DTGP etc, tell me not much…

Also reading your guide here:
http://www.insanelym...sus-p8z77-v-lk/

Other than all that, currently when I run the System Info and Check Compatibility, I get almost all green, and some with smiley. I guess then on the current install, there is not much to be done…?

The only missing question is the buggy sleep then…eg:
- doesn't go to sleep by itself, I checked two things:
- darkwake 0, 1 or 10, no go
- pmset -g assertions - I get following:
- Listed by owning process:
pid 17(powerd): [0x00000009000004f1] 00:55:19 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"
pid 1787(helpd): [0x0000000c0000056e] 00:29:47 BackgroundTask named: "com.apple.helpd.sdmbuilding"
- it won't wake up each time, sometimes it will just reset instead of waking up

And this is exactly why I wanted to do a reinstall, see if I can do as vanilla as possible, to see if I can get sleep fixed, as this is one of the most important things for me - I keep my computer on all the time, with sleep function, so I can wake it over LAN/3G, for streaming videos to iPhone/iPad.

#6
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
CalDigit drivers will work for you if you adapt the Info.plist to your device id. Alternatively you can get this package from the download section which bundles everything you should need.

Regarding DSDT, Z77 boards don't need great modifications. They work out of the box usually but you can of course still try to optimize things here and there.
You should focus on the non working devices/functions.

I would even say it's the other way round. With UEFI new bugs might pop up like the Wake bug which leads to random restarts after using Sleep, which is not solved yet.

Sadly I can't tell you anything about the other devices.

EDIT:
You should use a more recent FakeSMC version like this for example.

Edited by k3nny, 11 April 2013 - 08:53 AM.


#7
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
This package, the ASMedia USB3, is this only for USB3 or also to fix yellow drives? I'm just about to test-install the vanilla with fakesmc only, and see how the system does. The DSDT I will be loading is only the one from the DSDT Editor, then fixed errors and saved.
And then we shall see what System Info says.
I will use this newer fakesmc, thanks.

#8
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
That's just for the ASMedia USB3 chipset and it shouldn't affect anything else.

I wouldn't rely on the Sytem Info output but on what you actually see by yourself on your system.

#9
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
Alright, so I should still be using this:
http://www.insanelym...r-ioahcifamily/
?

I also got this NIC:
http://www.logilink....eticlanguage=en

Should this work better than the board integrated one, maybe even fix non-WOL issue?

#10
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
k3nny, I just installed your AudioHDA for ALC892. Still no sound. Using Kext Utility to install, so cache is rebuilt.
You mention:

Check if it sets layoud-id 1



How do I do that?

#11
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
You either need to use the HDAEnabler kext and set layout-id in its Info.plist to 1 or use a custom DSDT. You can find the necessary DSDT edits in the _DSM section of device HDEF in my topic for instance.

#12
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
Alright, I'll see to it. Thanks.

Any opinions on VoodooHDA? A good alternative that might work always? (sorry for going off-topic)

#13
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
Never tried it but from what I know AplpeHDA works pretty well with the right modifications.

#14
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
OK looking at the extracted DSDT... I found Device HDEF, but you mention _DSM. I don't find DSM...

Sorry for being PITA, but I'm really doing my best on this thing.

#15
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
That's what you have to add by yourself. Method _DSM is used to inject these new properties.

#16
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
OK, this is way too much for my knowledge, sorry. I am no programmer. Thanks for the help...

#17
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
You just need to copy&paste the _DSM method. Take your time, learn some new things and finally have some fun when it starts working. That's what this is all about. :P

#18
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
Yeah, except it has already taken me two weeks, and I'm still at the same point :worried_anim:

You just need to copy&paste the _DSM method.

From where?!??? :unsure:

#19
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 560 posts
  • Gender:Male
As I wrote, compare your DSDT with mine and look at device HDEF. They should be identical, except that your DSDT won't have the _DSM method - and this is what you need. Copy&paste it and see if the code compiles.

EDIT:
If you can't get it to work, post your DSDT. I will add the modification.

EDIT2:
You will also need to paste the method DTGP if you haven't done it yet. It is needed for injections like this.

Edited by k3nny, 11 April 2013 - 12:07 PM.


#20
Kosta88

Kosta88

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 108 posts
DTGP I can get from olarila and patch, right? Let me try this, I really do want to learn how, but when it comes to programming, my skills fail, sorry to say...





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