[Guide] Creating a Custom SSDT for USBInjectAll.kext

Discussion in 'High Sierra Laptop Support' started by RehabMan, Jan 2, 2017.

  1. buyjoey

    buyjoey

    Joined:
    Feb 9, 2012
    Messages:
    261
    Mobo:
    GA-Z370 Aorus Gaming 7
    CPU:
    i7 8700k
    Graphics:
    Vega 64 Liquid cool
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS
    Apr 14, 2018 at 1:57 AM #1571
    buyjoey

    buyjoey

    Joined:
    Feb 9, 2012
    Messages:
    261
    Mobo:
    GA-Z370 Aorus Gaming 7
    CPU:
    i7 8700k
    Graphics:
    Vega 64 Liquid cool
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS

    After all these fixed anything suggestion? report again?
     
    Last edited: Apr 14, 2018
  2. mac20170615

    mac20170615

    Joined:
    Jun 15, 2017
    Messages:
    10
    Mobo:
    GA-Z270M-D3H (rev. 1.0)
    CPU:
    Intel® Core™ i7-7700K
    Graphics:
    ASUS EX-GTX1050TI-O4G
    Mac:
    iMac
    Mobile Phone:
    Android, iOS
    Apr 14, 2018 at 7:15 AM #1572
    mac20170615

    mac20170615

    Joined:
    Jun 15, 2017
    Messages:
    10
    Mobo:
    GA-Z270M-D3H (rev. 1.0)
    CPU:
    Intel® Core™ i7-7700K
    Graphics:
    ASUS EX-GTX1050TI-O4G
    Mac:
    iMac
    Mobile Phone:
    Android, iOS
    Great article RehabMan! Many thanks!
    I followed the instruction on page 1 and now all my USB3 devices are working fine on my Hackintosh. Awesome!

    I used vim to copy the 2 important patch blocks from config_patches to my config.plist. The difference for the original and new config.plist are stored in the attached diff.txt

    1) DSDT->Patches 2) KernelAndKextPatches->KextsToPatch
    Also, add '-uia_ignore_rmcf' in Boot->Arguments in config.plist
    Code (Text):
    -        <string>dart=0 darkwake=8</string>
    +        <string>dart=0 darkwake=8 -uia_ignore_rmcf</string>
     

    Attached Files:

  3. zzmadd

    zzmadd

    Joined:
    Dec 31, 2013
    Messages:
    130
    Mobo:
    Gigabyte Z370N WiFi
    CPU:
    i3-8100
    Graphics:
    iGPU
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS
    Apr 14, 2018 at 10:40 AM #1573
    zzmadd

    zzmadd

    Joined:
    Dec 31, 2013
    Messages:
    130
    Mobo:
    Gigabyte Z370N WiFi
    CPU:
    i3-8100
    Graphics:
    iGPU
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS
    After swapping the Broadcom card with the faulty adapter and having plugged in the DW1830 from which the bluetooth USB data passes through, I was able to complete the USB mapping. I removed 4 ports more, removed the Port Limit patch and have now 13 ports showing in IOReg.
    I'd say sweet.
    Thanks a lot for the guide and everything else.
     
  4. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Apr 14, 2018 at 2:28 PM #1574
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Of course you must still follow this guide to configure the ports correctly.
    Also here:
    https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266/

    Don't forget about internal hubs as mentioned in my previous reply.

    I believe "auto restart after shutdown" can be solved with BIOS setttings (eRP, or something like that).

    Off-topic.

    Yes/No.
    See pmset -g output.
     
  5. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Apr 14, 2018 at 2:29 PM #1575
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Don't forget to follow the rest of the guide. The port limit patch and -uia_ignore_rmcf are for short term use only (port discovery).
     
  6. buyjoey

    buyjoey

    Joined:
    Feb 9, 2012
    Messages:
    261
    Mobo:
    GA-Z370 Aorus Gaming 7
    CPU:
    i7 8700k
    Graphics:
    Vega 64 Liquid cool
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS
    Apr 15, 2018 at 6:05 AM #1576
    buyjoey

    buyjoey

    Joined:
    Feb 9, 2012
    Messages:
    261
    Mobo:
    GA-Z370 Aorus Gaming 7
    CPU:
    i7 8700k
    Graphics:
    Vega 64 Liquid cool
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS




    Don't forget about internal hubs as mentioned in my previous reply.

    - So internal hubs (My monitor's USB hubs and my case's Front USB 3.0) like you mentioned, should be '255' not '3'

    I believe "auto restart after shutdown" can be solved with BIOS setttings (eRP, or something like that).

    - Ok, I will try ERP enabled since mine is disabled.



    Yes/No.
    See pmset -g output.

    -Here is my result

    -So mine is '3' How to do disable? and what is '3' meaning?



    autorestart 0

    Sleep On Power Button 1

    halfdim 1

    hibernatefile /var/vm/sleepimage

    powernap 0

    gpuswitch 2

    networkoversleep 0

    disksleep 0

    sleep 0 (sleep prevented by mds)

    hibernatemode 3

    ttyskeepawake 1

    displaysleep 0

    womp 0


    Thanks for your help!
     
  7. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Apr 15, 2018 at 2:13 PM #1577
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Yes, of course.

    I don't have your board, but I think eRP is supposed to be disabled.

    Read here:
    https://www.tonymacx86.com/threads/guide-native-power-management-for-laptops.175801/
     
  8. Strik9

    Strik9

    Joined:
    Sep 5, 2013
    Messages:
    93
    Mobo:
    GA-H87N-WIFI
    CPU:
    4770
    Graphics:
    GTX 750
    Apr 16, 2018 at 10:11 PM #1578
    Strik9

    Strik9

    Joined:
    Sep 5, 2013
    Messages:
    93
    Mobo:
    GA-H87N-WIFI
    CPU:
    4770
    Graphics:
    GTX 750
    I didn't made the SSDT yet as I've been lazy and I worked ok. But today some friend gave me an Apple Keyboard A1243, the one with two USB2 on both sides. It worked but when I plugged a usb2 pendrive, MacOS told me it needed more energy to function. I've tried the keyboard on my MacBook Pro and it worked.

    Could the SSDT fix this? Or it's linked to my motherboard unable to deliver enough power? There this on-off supercharge something advertised for my motherboard, but not sure it is related. https://www.gigabyte.com/MicroSite/185/on-off-charge.htm
     
  9. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Apr 17, 2018 at 3:27 PM #1579
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    174,395
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    No "Problem Reporting" files attached.
    Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
    https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
    Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
     
  10. Strik9

    Strik9

    Joined:
    Sep 5, 2013
    Messages:
    93
    Mobo:
    GA-H87N-WIFI
    CPU:
    4770
    Graphics:
    GTX 750
    Apr 17, 2018 at 7:46 PM #1580
    Strik9

    Strik9

    Joined:
    Sep 5, 2013
    Messages:
    93
    Mobo:
    GA-H87N-WIFI
    CPU:
    4770
    Graphics:
    GTX 750
    Actually I didn't try make the SSDT, I wanted to know if it would fix my energy USB power before doing it. Does it?
     

Share This Page