Jump to content
MaLd0n

[Guide] Sierra / High Sierra on ASUS Z170M PLUS / DSDT

342 posts in this topic

Recommended Posts

7 hours ago, Twa said:

Wow that file made me got Panic X( I have to run to Windows to remove it. 

Yes i use a water cooler with usb connect to mainboard.

I know the wake came from USB device, I have do some test time ago, the only reason is my bluetooth card (its combined in Wifi card plug to MB over PCIE, aslo has a USB connect from this card to MB too) That why you can see  Bluetooth connect over USB in my system log. I have tried disable Wake by Bluetooth device in System Preferences, but no change. Because Bluetooth chipset waked up system itself over usb connect, not by bluetooth devices.

 

It will be easy if i patch DSDT to shutdown all USB power after sleep (usb_prw_0x6d_xhc remove _PWR patch by RehabMan), system can sleep without wake. But then it only wake by PowerButton. not by any USB/Bluetooth mouse/keyboard anymore.

if u have a problem, just use key O in Clover boot screen, acpi patching, dsdt name and put DSDT02.aml

use my previous DSDT and apply _pwr

have many essentials patches in dsdt, all hacks need it

yes, if u use a prw patch, u kill wake from usb

Share this post


Link to post
Share on other sites
Advertisement
6 hours ago, MiKM said:

@Twa

Hi.:) You need to create a config file for USBInjectAll kext by Rehabman and set the connector type of usb port that's used by bluetooth to "internal". More details are in Rehabman's guide at the other forum. The guide isn't talking about bluetooth but how to set your port to internal type.

Some people before got sleep issues using a usb powered water pump. That may cause your issues too. You can try setting both ports to internal. If that doesn't help, you need a adaptor to some other power source (for your water pump only). Maybe the 4 pin Molex connector for pre-SATA disks...

I added my USBInjectAll SSDT config. You can use it as a template. But i'm not injecting all USB2/3 ports that are available. There are many left. So you need to add missing ports for your pump and bluetooth from SSDT-UIAC-ALL.dsl by Rehabman. After that, this DSL file needs to be compiled (MaciASL) like the guide says in AML format and move it to your EFI/EFI/CLOVER/ACPI/patched folder.

SSDT-UIAC.dsl

Don't need SSDTs, for USB use flag uia_exclude=XXXX

EXAMPLE

Unused Ports, uxcluded with flag
uia_exclude=HS01;HS02;HS03;HS04;HS05;HS06;HS10;HS11;SSP1;SSP2;SSP6
 
Used Ports
HS07, HS08, HS09, HS12, HS13, HS14, SSP3, SSP4, SSP5

after it, disable usb port limit

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, MaLd0n said:

Don't need SSDTs, for USB use flag uia_exclude=XXXX

For general port injection, you are right. It's easier than SSDT way.
Essentially i was trying to say that Sleep + USB wake + USB BT can work together if he configures the usb port he's using for usb bluetooth to internal type. And, as far as i know, SSDT or info.plist config file is the only way to do this.

// Okay, i added BT and waterpump ports by ioreg of @Twa. Both ports are "internal" now. At least BT Sleep problems can be solved this way. If it still doesn't work, the pump needs to get off the usb port.

SSDT-UIAC.aml

Edited by MiKM

Share this post


Link to post
Share on other sites
4 hours ago, MiKM said:

For general port injection, you are right. It's easier than SSDT way.
Essentially i was trying to say that Sleep + USB wake + USB BT can work together if he configures the usb port he's using for usb bluetooth to internal type. And, as far as i know, SSDT or info.plist config file is the only way to do this.

// Okay, i added BT and waterpump ports by ioreg of @Twa. Both ports are "internal" now. At least BT Sleep problems can be solved this way. If it still doesn't work, the pump needs to get off the usb port.

SSDT-UIAC.aml

dont need it

if u use ssdt for it, go to pike ssdt topic

https://pikeralpha.wordpress.com/2016/07/13/simple-skylake-usb-fix-no-kexts-required/

full vanilla

example here

https://github.com/cnrd/OSX-USB-SSDT

dont need patch limit port, dont need ssdt uiac, dont need usbinjectall

usbinjectall and ssdt uiac is just a easy way

Share this post


Link to post
Share on other sites
Posted (edited)
5 hours ago, MiKM said:

For general port injection, you are right. It's easier than SSDT way.
Essentially i was trying to say that Sleep + USB wake + USB BT can work together if he configures the usb port he's using for usb bluetooth to internal type. And, as far as i know, SSDT or info.plist config file is the only way to do this.

// Okay, i added BT and waterpump ports by ioreg of @Twa. Both ports are "internal" now. At least BT Sleep problems can be solved this way. If it still doesn't work, the pump needs to get off the usb port.

SSDT-UIAC.aml

internal = 255 (0xFF) yours is 0x02 its ok ?

First test, yes it worked, Sleep then Wake by USB keyboard is ok now (Wake by Bluetooth mouse didnt work)

Have you a USB type-C adapter to test USB-C port ?

SSDT-UIAC-ALL.dsl

Edited by Twa

Share this post


Link to post
Share on other sites
8 minutes ago, Twa said:

internal = 255 (0xFF) yours is 0x02 its ok ?

Oh, sorry. You're right. I mixed up "portType" and "UsbConnector".:rolleyes: It should be 0xFF or 255.

@MaLd0n
Yes, thats an alternative way. Didn't tried it yet. But it seems, it doesn't allow to change UsbConnector type value.

SSDT-UIAC.aml

Share this post


Link to post
Share on other sites

guys, we can edit it inside kext, really dont need it, some ways, same result

MaLd0n 2018-03-14 às 16.18.59.png

Share this post


Link to post
Share on other sites

@MaLd0n
You mean info.plist editing? Sorry. I'm just sharing here my personal preference in adding port injections or changing connector type stuff. You can of course instead edit info.plist to change connector type, but after kext update you need to take care not to overwrite this file. It's a little awkward way in my opinion. Thats why i prefer SSDT way.:)

Share this post


Link to post
Share on other sites
7 minutes ago, MiKM said:

@MaLd0n
You mean info.plist editing? Sorry. I'm just sharing here my personal preference in adding port injections or changing connector type stuff. You can of course instead edit info.plist to change connector type, but after kext update you need to take care not to overwrite this file. It's a little awkward way in my opinion. Thats why i prefer SSDT way.:)

bro, it's just another unnecessary item

the kexts update is only for add new Mac Models, in this case iMac17 don't need update afro.gif

Share this post


Link to post
Share on other sites

Ok, you totally convinced me to do this.;) I still believe it's not really necessary but why not? Here you have it @Twa: A choice between SSDT and info.plist way of port injection. Choose wisely...:lol:

Info.plist replaces /EFI/EFI/CLOVER/kexts/USBInjectAll.kext/Contents/Info.plist
Delete SSDT-UIAC.aml if you prefer Info.plist way.

Info.plist

Share this post


Link to post
Share on other sites
3 minutes ago, MiKM said:

Ok, you totally convinced me to do this.;) I still believe it's not really necessary but why not? Here you have it @Twa: A choice between SSDT and info.plist way of port injection. Choose wisely...:lol:

Info.plist replaces /EFI/EFI/CLOVER/kexts/USBInjectAll.kext/Contents/Info.plist
Delete SSDT-UIAC.aml if you prefer Info.plist way.

Info.plist

:lol::lol::P

Share this post


Link to post
Share on other sites
Posted (edited)
22 hours ago, Twa said:

Wake by Bluetooth mouse didnt work

Have you a USB type-C adapter to test USB-C port ?

Sorry, im not experienced in BT hardware in this context. But im planning to buy some PCIe BCM94360CD card from Aliexpress anytime soon for Airdrop etc. I can only tell that people like Rehabman recommended to change BT USB port to internal (cause real macs also do) and by feedback from users that confirmed it to work. I rather put my system to sleep than shutdown/coldstart it every time. Because of that, before buying new hardware, im checking out for any trouble it may cause on sleep/wake etc...;)Google also says a lot of real mac users seem to get problems on 3rd party BT mice as well. Check that options here.

At least for me and my ASUS Z170M-Plus (current DSDT by MaLd0n) sleep/wake works superb. No strange instant wakes or hangs after wake. It just works perfectly reliable:) (Wake on LAN and Power Nap are disabled in energy settings).

USB type C port is not in my SSDT-UIAC or Info.plist. I don't need it, yet. But it should be like any other port to inject: enable port limit patch, insert usb type-C device and check out IORegistryExplorer for SSxx ports being used in XHC device etc.

Edited by MiKM

Share this post


Link to post
Share on other sites
28 minutes ago, MiKM said:

Sorry, im not experienced in BT hardware in this context. But im planning to buy some PCIe BCM94360CD card from Aliexpress anytime soon for Airdrop etc. I can only tell that people like Rehabman recommended to change BT USB port to internal (cause real macs also do) and by feedback from users that confirmed it to work. I rather put my system to sleep than shutdown/coldstart it every time. Because of that, before buying new hardware, im checking out for any trouble it may cause on sleep/wake etc...;)Google also says a lot of real mac users seem to get problems on 3rd party BT mice as well. Check that options here.

At least for me and my ASUS Z170M-Plus (current DSDT by MaLd0n) sleep/wake works superb. No strange instant wakes or hangs after wake. It just works perfectly reliable:) (Wake on LAN and Power Nap are disabled in energy settings).

USB type C port is not in my SSDT-UIAC or Info.plist. I don't need it, yet. But it should be like any other port to inject: enable port limit patch, insert usb type-C device and check out IORegistryExplorer for SSxx ports being used in XHC device etc.

I have a magic mouse 2, I can confirm Airdrop, handoff, BT/Wifi connect all well, only cannt wake system with BT, you can check out model BCM94360CS2 / BCM943602CS too

Share this post


Link to post
Share on other sites
Posted (edited)

@MiKM I found out USB Type-C back ist at keys HS05 / SS05, If you like to add it for full USB assigned.

 

 

SSDT-UIAC.dsl

Edited by Twa

Share this post


Link to post
Share on other sites

Hey MaLd0n, i have an Asus GT51CA with Skylake..  Mainboard is OEM-mainboard but very smiliar with an Asus z170i Pro Gaming. And i think it’s an Asus z170i Pro Gaming.. Can i use your Clover folder on my PC ? or i shouldn‘t use because it‘s for Asus z170m plus

 

thanks so much

Share this post


Link to post
Share on other sites
5 hours ago, DrEby said:

Hey MaLd0n, i have an Asus GT51CA with Skylake..  Mainboard is OEM-mainboard but very smiliar with an Asus z170i Pro Gaming. And i think it’s an Asus z170i Pro Gaming.. Can i use your Clover folder on my PC ? or i shouldn‘t use because it‘s for Asus z170m plus

 

thanks so much

clover folder yes, dsdt no

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.

  • Similar Content

    • By cvad
      Small tool to download, compile and build the latest Clover X64 package,
      possible include HFSPlus-64.efi.
       
       
       

      The script inside is editable.

       
      Enjoy...
       
      Many thanks to the comrade SunKi for help with creating the script.
       
       
       
       
       
      Best thanks - click "Rate File".
      Clover_Builder.app.v1.2.0.zip
    • By MaLd0n
      First... If you need DSDT edits... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation --Create a bootable copy of El Capitan /  Sierra / High Sierra / Mojave   https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder   https://olarila.com/files/Clover.Folder/CLOVER.LGA775.zip   --Install EL Capitan / Sierra / High Sierra and boot into system!     Post Installation   --Install Clover and replace with my folder   https://olarila.com/files/Clover.Folder/CLOVER.LGA775.zip     --Reboot and activate video!   Bingo! Now you need a fine tune! DSDT Time!   My DSDT GA P35-DS3   DSDT.MaLd0n.zip     Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -LPC -HDEF -RTC -EHCI -UHCI -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF --Native Power Management
       
      Use Clover, check Generate P and C States
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --AUDIO
       
      Device HDEF + AppleAlc + Lilu
       
      --install Lan driver by Mieze
        -Atheros   http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel   http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek   http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC   https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio   https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By MaLd0n
      ***The topic is for Notebooks and Desktops*** Mojave Full DSDT patch http://olarila.com/forum/viewtopic.php?f=59&t=6428 First... ***Update bios to last available version!***   If you need DSDT edits for SkyLake, KabyLake or CoffeeLake... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   This guide is not a step by step, if you need one, see here   Look at my Clover folders and understand what we really need, this is the best way to learn     1-Installation     --Create a bootable copy of macOS Sierra / High Sierra / Mojave   https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick   https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder    https://olarila.com/files/Clover.Folder/CLOVER.SERIES.100.200.300.zip   --Install Sierra/High Sierra and boot into system! 2-Post Installation     --Install Clover in HDD/SSD and replace with my folder   https://olarila.com/files/Clover.Folder/CLOVER.SERIES.100.200.300.zip   --Reboot and activate video!   3-Video     -Nvidia WebDriver Sierra http://www.insanelymac.com/forum/topic/312525-nvidia-web-driver-updates-for-macos-sierra-update-07212017/   -Nvidia WebDriver High Sierra   http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-10162017/   -Cuda   http://www.insanelymac.com/forum/topic/302795-cuda-90214-is-out-update-10162017/   -Check it, easy way   nvidia-update.command.zip by Benjamin-Dobell   4-DSDT       Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC* -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -RTC -IRQs -SBUS* -BLC0 -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -IMEI -EC -PNLF(Nvidia/AMD) -HDMI ---To avoid problems use some patches in config.plist, don't forget!--- GLAN to GIGE 474c 414e 4749 4745 GFX0 to IGPU 47465830 49475055 HDAS to HDEF 48444153 48444546 HECI to IMEI 48454349 494d4549 SAT0 to SATA 53415430 53415441 5-SSDT   Generate your SSDT for PM, use ssdtPRGen by Piker-Alpha https://github.com/Piker-Alpha ssdtPRGen.command.zip   or just use "plugin-type"=0x01 in DSDT, SSDT or Clover config.plist   for check Power, Frequency, Temperature and Utilization, use it Install Intel Power Gadget.pkg.zip   6-Brightness  
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
        -Clover   https://sourceforge.net/projects/cloverefiboot/files/Installer/   -Lan driver by Mieze     -Atheros http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   -Links     -FakeSmc https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/   -USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads   if u like, Rate Topic     It's time to Rock -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, badruzeus and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By MaLd0n
      Nehalem, SandyBridge, IvyBridge, Haswell, Broadwell     Skylake, Kabylake and Coffeelake is here http://www.insanelymac.com/forum/topic/321872-guide-sierra-on-gigabyte-mobos-serie-200-kabylake-dsdt/   Mojave Full DSDT patch http://olarila.com/forum/viewtopic.php?f=59&t=6428   First...   ***Update bios to last available version!***   If you need a full patched DSDT...  -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation   --Create a bootable copy of macOS Sierra / High Sierra / Mojave   https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick   https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder https://olarila.com/files/Clover.Folder/CLOVER.SERIES.CHIPSET.zip   --Install Sierra/High Sierra and boot into system!   Post Installation --Install Clover and replace with my folder   https://olarila.com/files/Clover.Folder/CLOVER.SERIES.CHIPSET.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! DSDT time!   --DSDT   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -XXXX to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI
       
      --Power Management
      - 1 Generation Intel Processors, use Generate P and C States in config.plist
      - 2 and 3 Generations Intel Processors, Generate SSDT with Piker script and drop CpuPm and Cpu0Ist SSDTs
      ssdtPRGen.command.zip
      Credits-https://github.com/Piker-Alpha/ssdtPRGen.sh
      - 4 Generation+ Intel Processors, use PluginType=1 in DSDT, SSDT or Clover config.plist
       
      for check Power, Frequency, Temperature and Utilization, use it
       
      Install Intel Power Gadget.pkg.zip
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --Clover
       
      https://sourceforge.net/projects/cloverefiboot/files/Installer/
       
      --AUDIO
       
      Use DSDT + AppleAlc
       
      --install Lan driver by Mieze
        -Atheros   http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel   http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek   http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC   https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio   https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/314406-voodoohda-289/   -USB   https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads   It's time to Rock   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Apple, Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!  
×