Contribute
Register

[Guide] Asus ROG GL502VS (Skylake, i7-6700HQ, GTX 1070) Sierra 10.12.4

Status
Not open for further replies.
Not sure about the ACPI renames, but I think there is some.

For the trackpad, not working before or after sleep. removing and manually loading VoodooI2C does not help in any way.

I took It from here : https://www.tonymacx86.com/threads/wip-voodooi2c-i2c-trackpad-limited-support.204227/

I followed very simple steps which will work in 502vs and 502vy as I checked myself.
(Check I2C Device are working properly using ioregist before doing this patch)
1-- Remove AppleIntelLpssI2C.kext and AppleIntelLpssI2CController.kext
2-- Rebuild Cache and permission
3-- Restart
4-- Install VoodooI2C.kext to S/L/E
5-- Rebuilt Cache and Permission
6-- Restart

May this will work for u.

Note: Trackpad won't work after sleep and won't work when u restart your pc from windows. U have to shutdown windows and boot into hackintosh.
 
Finally i got working macOS Sierra in this laptop. Thread based on https://www.tonymacx86.com/threads/guide-dell-inspiron-15-7559-sierra-install-10-12-4.201576/ and https://www.tonymacx86.com/threads/...ke-i7-6700hq-hd-530-using-clover-uefi.195422/

Working

  • Battery
  • Sleep
  • QE/CI (Nvidia Web Driver)
  • Keyboard + Backlight
  • Touchpad / ELAN1200
  • USB 2.0/3.0
  • Speakers and internal mic
  • WebCam
  • Wi-fi (replace with BCM94532z NGFF)
  • Ethernet
  • HDMI
  • SD Card slot
  • Display Port

Not yet working:
  • Stock Wi-fi
  • Brightness Control (alternative: use Brightness Slider app from App Store)
  • Keyboard Backlight Control (fn+F3 / F4 not works)
  • In-line Mic Headset / Headphone (since its combojack maybe must use custom AppleALC ALC255 config to fix it)
  • Most FN keys (only fn+F11/F12 works)

Not Tested (Please PM me if you already test, I don't have time to test it):
  • HDMI Audio
Bugs:
  • When you restart from Windows to MacOS, speakers won't works. to fix it, just shutdown then boot direct to MacOS.

Prerequisites:

BCM94532Z NGFF WiFi card for wifi. (Clover config includes a patch)

Reboot and access the BIOS setup by pressing ESC then select Enter Setup.
  • Disable Fastboot (if available)
  • Disable Secure Boot
  • Disable VT-d
  • Disable Intel Virtualization Technology

Create partition for OS X

Boot to Windows 10. Install MacDrive from Mediafour to create a partition for OS X. Open MacDrive and click create. You can now create a HFS+ partition on the drive you just installed Windows 10 on. I suggest you give them 50/50 GB storage each. So, in my case, since this laptop has 2 Hard Drive (NVMe SSD and SATA HDD) i partitioned a HFS+ partition with 128GB on my SATA HDD. Close MacDrive after you successfully created the drive. Name it as you like.

Create the USB Installer (16gb or larger required):

1. Download sierra via the Mac App Store https://itunes.apple.com/us/app/macos-sierra/id1127487414?mt=12
2. Create usb using the included app



3. Install clover onto the usb drive using the default UFEI options.



4. While the usb drive's EFI partition is mounted (or use EFI Mounter), replace the config.plist in the EFI>CLOVER file with the one in the ROG_502_Sierra>usb_config.plist and put HFSPLUS.efi driver into the drivers64UEFI folder. place the kexts from "ROG_502_Sierra>clover_kexts" to EFI>CLOVER>kexts>Other. Open the EFI>CLOVER>kexts folder and delete all the folders but NOT the the "Other" one.

5. Place the ROG_502_Sierra folder onto the usb drive.

6. Boot from the usb drive by pressing ESC at boot. When clover comes up choose the sierra installer. You will get errors but allow a full 5 minutes for it to boot.

7. Use Disk Utility to erase/format your disk or partition for OS X then install to it. It will take about 20 minutes.

Post Install

1. ESC at boot and choose the usb drive again to load clover and choose the partition you just installed to. It will continue installing then reboot.

2. ESC at boot again and choose the usb drive again to load clover then choose the OSX install on the hard drive when clover comes on.

3. Install clover to the hard drive using the default UEFI settings.



4. While the hd's EFI folder (or use EFI Mounter) is mounted open it up in finder and go to EFI>CLOVER and replace the config.plist with the one from the ROG_502_Sierra>config, plist. Open the EFI>CLOVER>kexts folder and delete all the folders but NOT the the "Other" one. place the kexts from the "ROG_502_Sierra>clover_kexts" folder in there. Copy HFSPLUS.efi driver from the ROG_502_Sierra into the CLOVER>drivers64UEFI folder.



5a. Use Kext Wizard to install the kexts in the ROG_502_Sierra>system_kexts folder to System/Library/Extensions.

6. Rebuild kernel cache.
Code:
sudo kextcache -u /


7a) Patching DSDT And SSDTs
- Turn on your laptop and press ESC boot the Clover bootloader.

- Highlight the OS X disk and press “F4” to generate the native ACPI files. (Note: You won’t see anything while pressing F4 - the files are generated silently)

- Boot OS X and mount EFI partition with Clover Configurator

- Go to “EFI/Clover/ACPI/” and copy the “origin” folder you just created to your desktop

- Delete all files from the folder on your desktop that doesn’t start with DSDT or SSDT

- Copy “ROG_502_Sierra/refs.txt” into this folder

- Open terminal and run this command to install iasl (password will be prompted)
Code:
cd ~/Desktop/ROG_502_Sierra
sudo cp iasl /usr/bin

- Copy the code below into the terminal
to disassemble those files into the form we can edit (use your account name in the code)
Code:
cd ~/Desktop/origin
iasl -da -dl -fe refs.txt DSDT.aml

--> This command will create DSDT.dsl files in the origin folder


7b) DSDT Patching
- Place ROG_502_Sierra/MaciASL.app into your Applications folder
- Open DSDT.dsl (from your origin folder) in MaciASL

Note: Now we are going to edit this file and compile it back again to use it to load with your system later. It is really important that you don’t make mistake here. You can click on “Compile” to check if you extracted the DSL files correctly. Warnings doesn’t matter but errors do. If you got an error here it means you disassembled the files wrong. Now there are many edits which we are going to do with this file. After each one you can click on “Compile” to check for errors.

before patching, open MaciASL. Go to the program’s preferences and add this source:
http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master

Click on Patch and apply the following patches (Must use Internet connection):

[syn] Rename _DSM methods to XDSM
[bat] Asus G75VW
[sys] Fix _WAK Arg0 v2
[sys] Fix PNOT/PPNT
[sys] IRQ Fix
[sys] OS Check Fix (Windows 8)
[sys] SMBUS Fix
[sys] Skylake LPC

see 'Before' column in MaciASL and look if '0x6D' exist, then use this patch
[usb] USB3_PRW 0x6D Skylake (instant wake)
if not, use [usb] USB3_PRW 0x0D Skylake (instant wake)

Keyboard Backlight Patch
under this method
Code:
            Method (SCDG, 1, NotSerialized)
            {
            ....
            }
add this
Code:
            Name (BOFF, Zero)
            Method (SKBL, 1, NotSerialized)
            {
                If (Or (LEqual (Arg0, 0xED), LEqual (Arg0, 0xFD)))
                {
                    If (And (LEqual (Arg0, 0xED), LEqual (BOFF, 0xEA)))
                    {
                        Store (Zero, Local0)
                        Store (Arg0, BOFF)
                    }
                    ElseIf (And (LEqual (Arg0, 0xFD), LEqual (BOFF, 0xFA)))
                    {
                        Store (Zero, Local0)
                        Store (Arg0, BOFF)
                    }
                    Else
                    {
                        Return (BOFF)
                    }
                }
                ElseIf (Or (LEqual (Arg0, 0xEA), LEqual (Arg0, 0xFA)))
                {
                    Store (KBLV, Local0)
                    Store (Arg0, BOFF)
                }
                Else
                {
                    Store (Arg0, Local0)
                    Store (Arg0, KBLV)
                }

                Store (DerefOf (Index (PWKB, Local0)), Local1)
                ^^PCI0.LPCB.EC0.WRAM (0x04B1, Local1)
                Return (Local0)
            }

            Method (GKBL, 1, NotSerialized)
            {
                If (LEqual (Arg0, 0xFF))
                {
                    Return (BOFF)
                }

                Return (KBLV)
            }
Click Compile and if you have any errors (warnings don’t matter) try again. Save the file as: DSDT.aml in a new folder on desktop called “SSDTs” and file format: ACPI Machine Language Binary.

7c) SSDT.aml Creation
This is the file we need to create to ensure proper CPU power management and turbo mode. This part refers to [Guide] Native Power Management for Laptops. If you have troubles with creating ssdt.aml you can check there.

- To prepare we need to use this code in terminal (this will download the SSDT generator)
Code:
curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh
- Now enter this code to give the program permissions
Code:
chmod +x ~/ssdtPRGen.sh
Code:
./ssdtPRGen.sh

- After the warning type “y” to continue (You should see only one Warning and one Error. If you get more you should check if your SMBIOS is right). Then type “ntwice to finish the process

- Copy this command to move the created SSDT to your desktop folder (Note: This is easier because the file is in hidden folder. You have to change the username in the code for it to work)
Code:
cp ~/Library/ssdtPRGen/ssdt.aml ~/Desktop/SSDTs/SSDT.aml
--> SSDT.aml should appear in Desktop/SSDTs
- Copy SSDT.aml to EFI/Clover/ACPI/patched/
- Shut down your laptop.

7d) SSDT Patching
- Go to the “ROG_502_Sierra” and copy SSDT-UIAC.aml to Desktop/SSDTs folder too
--> You should now have these *.aml files without errors in your SSDTs folder on desktop. If the patched ones are missing .aml add it.

DSDT.aml (patched)
SSDT.aml (step 7c)
SSDT-UIAC.aml (ROG_502_Sierra)


- Open Clover Configurator (or efimounter) and mount internal EFI. Open EFI/Clover/ACPI/patched/ and place all your *.aml files here
- Open the EFI/Clover/config.plist with Clover Configurator (*make sure its from Desktop EFI not USB EFI). Go to the section SMBIOS and click the magic wand icon. Choose the MacBook icon and select MacBook Pro 11,2 in the dropdown menu. Shake a few times with the Week and Unit until you find a Serial that’s not valid (means it isn’t used yet by an official Mac). You can check that here: Check Your Service and Support Coverage - Apple Support

8. Reboot.

9. Choose Clover To Be Your Default Boot Option
- Turn of your laptop and enter BIOS settings (Press F8 on boot)
- Go to Boot section and choose “Add Boot Option” —> Choose your system disk —> Navigate to “EFI/Clover” —> Choose “CLOVERX64.efi” and name it “CLOVER





Extra

To correct the Alt and Cmd keys just swap the option and cmd modifier keys in the keyboard section in System Preferences.




Fix ELAN1200 Trackpad (guide from here https://www.tonymacx86.com/threads/...d-limited-support.204227/page-35#post-1475873)

I make it extra because this kext is still WIP (Work In Progress, under development)

At first, you have to delete the I2C kexts from /System/Library/Extensions, these are:

  1. AppleIntelLpssI2C.kext
  2. AppleIntelLpssI2CController.kext
Code:
cd /System/Library/Extensions
sudo rm -rf AppleIntelLpssI2C.kext
sudo rm -rf AppleIntelLpssI2CController.kext

Next, install the VoodooI2C.kext from ROG_502_Sierra folder use Kext Wizard. When you are done, rebuild your kextcache:

Code:
sudo kextcache -i /

Install Nvidia Web Driver for QE/CI
download from here: http://www.nvidia.com/download/driverResults.aspx/117854/en-us
Install it and reboot, then you have full QE/CI :)

If nvidia not work, you need EmuVariableUefi-64.efi on EFI/Clover/drivers64UEFI

Changelog Thread:
2017-05-07

- Updated Nvidia Web Driver guide

2017-05-05
- Updated VoodooI2C.kext

2017-05-04 - 2
- Add refs.txt
- Add keyboard backlight patch
2017-05-04
- Updated VoodooI2C.kext
- Updated DSDT Patching guide

Can U tell me what is the purpose of SSDT-UIAC.aml ?
and how did u fixed the audio?
 
When I first purchased my laptop (GL502VS) back in October 2016, it was in the hope of hackintoshin' the hell out of it.

Ya know, i7 6700HQ, 16gb DDR4, a fr***in' GTX 1070, Hell yeah !!!

Long story short, I dis some el capitan attemps... wich were not successfull. I knew that the GPU would be a either a big win, cause it's wired directly to the screen, no optimus nor Intel HD, or a gigantic fail if Nvidia would'nt release a dedicated driver for Pascal on Mac OS.

Couples mounts later, I scramble in your post. WAW :3 Thank you very much for your help in setting up this (powerfull) Hackbook Pro. I've got the canadian version, so trackpad is not working, but all DSDT and SSDT edits are ok. (Doesn't bother me, I'm using a bluetooth mouse). Even The internal samsung Nvme Drive is recognized. System is blazing fast.

And I've also got a Braodcom BCM94352Z laying around, which apears to work flawlessly with your clover config.plist

View attachment 259779

@wyldrixie which card u used? Dell or Lenovo?
 
#new update

USB 3.1 is working Via USB C port :headbang:
 
Hi Everyone,
I bought a Dell DW1560 wireless card. As per @safar46 patches it should be working. But mine is not working. Only BT works
Please have a look at my EFI and ioreg+ kextcache attached
 

Attachments

  • Attachments.zip
    24.9 MB · Views: 117
Hi Everyone,
I bought a Dell DW1560 wireless card. As per @safar46 patches it should be working. But mine is not working. Only BT works
Please have a look at my EFI and ioreg+ kextcache attached

"Problem Reporting" files are incomplete, ioreg is corrupt.
Read FAQ, "Problem Reporting"
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/

According to your kextcache output FakePCIID_Broadcom_WiFi.kext is not installed.
Read FAQ for more information regarding BCM943252 requirements.
 
Hi @RehabMan
I have already Installed those kexts. I could see those in my S/L/E. but when I rebuild the kext cache it not showing there . Some of them showing and the rest is not showing . I'm using FakePCIID kexts latest version also. Still I don't understand why some of the kext is not showing up. Please Help me with this
 

Attachments

  • Sanoj’s MacBook Pro.ioreg
    6.3 MB · Views: 145
  • Screen Shot 2017-07-18 at 11.57.23 AM.png
    Screen Shot 2017-07-18 at 11.57.23 AM.png
    9.5 MB · Views: 113
Last edited:
Hi @RehabMan
I have already Installed those kexts. I could see those in my S/L/E. but when I rebuild the kext cache it not showing there . Some of them showing and the rest is not showing . I'm using FakePCIID kexts latest version also. Still I don't understand why some of the kext is not showing up. Please Help me with this

There is no Broadcom WiFi device on the PCI bus. Broadcom devices are vendor 14e4. No such devices are listed by your Clover bootlog.

0:103 0:000 === [ GetDevices ] ========================================
0:103 0:000 PCI (00|00:00.00) : 8086 1910 class=060000
0:103 0:000 PCI (00|00:01.00) : 8086 1901 class=060400
0:103 0:000 PCI (00|01:00.00) : 10DE 1617 class=030000
0:103 0:000 - GFX: Model=Asus GeForce GTX 980M family 124 (Nvidia)
0:103 0:000 PCI (00|01:00.01) : 10DE 0FBB class=040300
0:103 0:000 - HDMI Audio:
0:103 0:000 PCI (00|00:04.00) : 8086 1903 class=118000
0:103 0:000 PCI (00|00:14.00) : 8086 A12F class=0C0330
0:103 0:000 PCI (00|00:14.02) : 8086 A131 class=118000
0:103 0:000 PCI (00|00:15.00) : 8086 A160 class=118000
0:103 0:000 PCI (00|00:15.01) : 8086 A161 class=118000
0:103 0:000 PCI (00|00:16.00) : 8086 A13A class=078000
0:103 0:000 PCI (00|00:17.00) : 8086 A103 class=010601
0:103 0:000 PCI (00|00:1C.00) : 8086 A113 class=060400
0:103 0:000 PCI (00|02:00.00) : 10EC 8168 class=020000
0:103 0:000 - LAN: 0 Vendor=Realtek
0:103 0:000 PCI (00|00:1C.04) : 8086 A114 class=060400
0:103 0:000 PCI (00|03:00.00) : 1B21 1242 class=0C0330
0:103 0:000 PCI (00|00:1D.00) : 8086 A118 class=060400
0:103 0:000 PCI (00|04:00.00) : 144D A802 class=010802
0:103 0:000 PCI (00|00:1F.00) : 8086 A14E class=060100
0:103 0:000 PCI (00|00:1F.02) : 8086 A121 class=058000
0:103 0:000 PCI (00|00:1F.03) : 8086 A170 class=040300
0:103 0:000 PCI (00|00:1F.04) : 8086 A123 class=0C0500

Either your card is not installed correctly or is malfunctioning.
You should have tested it on Windows...
 
Status
Not open for further replies.
Back
Top