Home

Awesome

Hackintosh-FX504GE-ES72

Mojave 10.14.6. Bios version 318

Hardware Configuration

ASUS FX504GE-ES72:

Working

Not Working

Installation

Clover Config

DSDT Patch (only two static patches needed )

Sleep and wake

Use "USB _PRW 0x6D (instant wake)" patches for Skylake(and later). This patch will add 
	Method(_PRW) { Return(Package() { 0x6D, 0 }) } to relevant Devices.
There may be missing a "}" after applying the patch, which cause compile syntax error. 
	Search for Method(_PRW) and find out the syntax error. If there is still wake problems 
	(“wake reason” :XDCI CNVW XHC etc.), use Log Show to find the wake reason and search the
	specific Device (XDCI or CNVW) to see if Method(_PRW) is missing in the specific device.

Brightness adjustment keys

working by modifying /EFI/Clover/ACPI/patched/DSDT.aml
 Scope (_SB.PCI0.LPCB.EC0) {
 ...
 Method (_Q11, 0, NotSerialized)  // _Qxx: EC Query
 {
     Notify (PS2K, 0x0405) // Brightness down
 }
 Method (_Q12, 0, NotSerialized)  // _Qxx: EC Query
 {
     Notify (PS2K, 0x0406) // Brightness up
 }
 ...
 }

Hot Patches -

 1.Disable NV GPU: SSDT-DDGPU
 2.Backlight Control: SSDT-PNLF/PNLFCFL
 3.Removing unused USB ports: SSDT-UIAC
 4.inject properties for XHCI: SSDT-XHC
 5.XOSI simulation to "Windows 10": SSDT-XOSI

USB

Actual Port Information:

  Port		       Type	            Description
  HS01/SS01  USB 3.0 Type A	    Front--Left side
  HS02/SS02	 USB 3.0 Type A	    Middle--Left side
  HS03	     USB 2.0	          Rear--Left Side
  HS07	     Proprietary	      Webcam
  HS14	     Proprietary	      Bluetooth

  Use above information to make specific Hotpatch SSDT-UIAC.aml(based on SSDT-UIAC-ALL).     

Audio

  Realtek ALC255: Use AppleALC.kext, Clover Audio injection =3
 

HDMI

  USE the latest Hacktool to creat a patch,the below section should be take care:      
  
  framebuffer-con1-busid                        01000000(the only work-out id) 
  framebuffer-con1-enable                       01000000
  framebuffer-con1-flags                        87010000
  framebuffer-con1-has-lspcon                   01000000
  framebuffer-con1-index                        01000000
  framebuffer-con1-pipe                         12000000
  framebuffer-con1-preferred-lspcon-mode        01000000
  framebuffer-con1-type                         00080000(used as a HDMI identifier),
  framebuffer-patch-enable                      01000000

  As the MacbookPro 15,2 do not have HDMI port actually, the check of the board-id should be ignored by 
  using the WhateverGreen boot-arg agdpmod=vit9696.please check the details in my updated config.plist.
  Kindly note that the kext of WhateverGreen, Lilu and AppleALC should be updated to the latest version. 
  

Fix HDMI-not-stable Problem.

  Please follow below steps to solve the hdmi-unstable problem.
  1.change smbios to macbook pro 15,1.
  2.use the boot-args:-v -wegnoegpu agdpmod=vit9696 -igfxblr igfxonln=1 igfxrpsc=1 igfxfw=2
  3.patch the EDID of both your build-in monitor and external monitor.
     Firstly, use Hackintool to patch all your connected monitors(for build-in 16:9 screen,choose macbook air). 
 The corresponding EDID.bin files will be created on your desktop.
     Secondly,use AW EDID Editor to modify your preferred timing parameters(in Detailed Descriptor section).
 Use Video Timings Calculator to find the timings for different standard.You should creat three EDID.bin files 
 for the timings in relation to CVT-RB,CVT-RBv2, and CEA-861,respectively.  (you could also use the build-in 
 CVT Format wizard in the section Detailed Descriptor of AW EDID Editor,which could creat v1 and v2 CVT timings;
 or Use predefined format to creat CEA-861 timings)
     Thirdly, Use BetterDisplay to apply HIDPI for your external monitor. At the mean time, upload the patched 
 EDID.bin files for both your build-in and external monitor. Apply the changes and restart your computer, 
 BetterDisplay will do the remain work for you.
 4.Find the suitable EDID.bin file for your external monitor. For my LG 21:9 monitor, the best timing is CVT-RBv2 
     for 2560*1080 at 60Hz.
 5.USE xxd -ps edid_bin.bin > edid_hex_modified.txt to creat hex. put the relevent hex in your config.plist under 
 section AAPL00,override-no-connect and AAPL01,override-no-connect

  https://tomverbeure.github.io/video_timings_calculator
  https://github.com/waydabber/BetterDisplay
  https://www.analogway.com/apac/training-support/telechargements/aw-edid-editor/id:356/
  https://www.monitortests.com/forum/Thread-Custom-Resolution-Utility-CRU?page=1
  
  
  
  

Credit:

Useful Links:

https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/ https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/ https://www.tonymacx86.com/threads/broadcom-wifi-bluetooth-guide.242423/#post-1664577 https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/ https://www.tonymacx86.com/threads/guide-10-11-usb-changes-and-solutions.173616/ https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/

https://www.tonymacx86.com/threads/an-idiots-guide-to-lilu-and-its-plug-ins.260063/ https://www.tonymacx86.com/threads/an-idiots-guide-to-imessage.196827/

https://github.com/RehabMan/Laptop-DSDT-Patch https://github.com/RehabMan/OS-X-Clover-Laptop-Config https://github.com/RehabMan/OS-X-USB-Inject-All

Dubug Command

 1.  sudo pmset -g log | grep -i failure
 2.  sudo pmset -g assertions
 3.  log show --predicate 'process == "kernel"' --style syslog --source --debug --last 10m > ~/sys_log.txt
 4.  log show --predicate "processID == 0" --start $(date "+ %Y-%m-%d") --debug | less
 5.  log show --style syslog --last 120m | fgrep "Wake reason"