Denisuu Posted August 30, 2020 Share Posted August 30, 2020 Hi! Just a lot of info below, you can ignore it if you don't need it. Sleep: I tried to set all GPRW values '(GWRP (0X0D, Zero))' under GLAN, XHC, XDCI, HDAS in DSDT. Because some were showing up as wake reasons with the command: log show --style syslog | fgrep "Wake reason". 2020-08-30 17:25:18.577275+0200 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB GLAN XDCI (User) Sleep behaviour before GPRW patches: I click sleep > Fans start spinning fast and display goes black > After 2,5 min the display-backlight, keyboard-lights go and fans turn off > 2 seconds later the laptop wakes to black screen and repeats this cycle. Sleep behaviour after GPRW patches: I click sleep > Fans start spinning fast for 2,5min > Laptop goes to sleep > I press the power button > Laptop wakes but displays stay black. even with igfxonln=1 boot arg does it nothing. I don't actually know what I'm doing so it might be better someone else had a look at this. There's no option to disable Wake On Lan in BIOS (not even after unlocking hidden features). ELAN1200 Trackpad: We have to use polling-mode because we can't use 0x47 as a hex pin because the DSDT is bugged. Or better the GPIO implementation is bugged. Our APIC PIN is 5f, which corresponds to decimal pin GPIO pin 71 (0x47 in hex)). Hopefully this can be solved so interrupts can be used. Without DSDT.aml trackpad works, but is not showing in settings. (DSDT.aml currently only has patches for AsusSMC/FN Keys to work) Function Keys: They work completely by patching DSDT with AsusSMC: # Asus SMC repo: [als] Fake ALS, [kbl] Kaby Lake/Kaby Lake-R # Keyboard light: into method label _Q0E replace_content begin // Brightness Down\n Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n end; into method label _Q0F replace_content begin // Brightness Up\n Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n end; HDMI Hot-plug problem: When HDMI is plugged in on boot the built-in display goes black and can't be turned on until the machine is rebooted with the HDMI cables unplugged. This problem existed in Clover too. I stopped caring because I'm using a USB-C Docking station as a workaround. <- Would be nice to have, not a priority. Internal SD card reader: Not working. HS07 Device: USB2.0-CRW ( Product ID: 0x0129, Vendor ID: 0x0bda) <- Would be nice to have, not a priority. Extra info: I'm also not sure why GFX0 is still showing under IOreg, the SSDT-dGPU-Off.aml has the right address. Are both the SSDT and wegnoegpu boot parameter required? Clover EFI can be found here: Clover EFI Patches I had while I was using Clover. #Rehabman Repo: [bat] ASUS N55SL/VivoBook [gfx0] Disable from _REG (DSDT) [gfx0] disable/enable on _WAK/_PTS [igpu] Rename GFX0 to IGPU [sys] AC Adapter fIX [sys] Rename _DSM methods to XDSM [sys] Add IMEI [sys] Fix _WAK Arg0 v2 [sys] Fix Mutex with non-zero SyncLevel [sys] HPET Fix [sys] IRQ Fix [sys] OS Check Fix (Windows 10) [sys] RTC Fix [sys] SMBUS Fix [sys] 7-series/8-series USB [sys] USB3 _PWR 0x6D Skylake (instant wake) #AsusSMC repo [als] Fake ALS [kbl] Kaby Lake/Kaby Lake-R #Custom: FnBrightnessKeys Take your time, there's no rush! Thanks in advance! Send me MacOS-N580VD.zip Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted August 30, 2020 Administrators Share Posted August 30, 2020 DSDT.aml.zip USE THIS DSDT, reboot and save one ioreg -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted August 30, 2020 Author Share Posted August 30, 2020 30 minutes ago, MaLd0n said: DSDT.aml.zip 44.33 kB · 1 download USE THIS DSDT, reboot and save one ioreg Sure, here you go! MacOS-N580VD.ioreg.7z Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted August 30, 2020 Administrators Share Posted August 30, 2020 DSDT.02.zip -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted August 31, 2020 Author Share Posted August 31, 2020 Thanks! Sleep is working now. Function keys are working (except keyboard brightness up, down) Trackpad doesn't work. Out of curiosity, can I ask how you solved sleep? What was causing the problem? Send me MacOS-N580VD.zip Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted August 31, 2020 Administrators Share Posted August 31, 2020 8 hours ago, Denisuu said: Out of curiosity, can I ask how you solved sleep? What was causing the problem? just kill _prws and some no used devices. apple have a very custom tables, our tables chipset 300 for examp´le have a 60k lines, same chipset from apple have a 8k lines. we have many trashes in ur tables, trashes for windows save one ioreg, i see ur trackpad full load. i think ur trackpad is a famous bug, just work after sleep -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted August 31, 2020 Author Share Posted August 31, 2020 (edited) Ok interesting! Also the HDMI on boot issue is solved!!! You can't imagine how much time I've spent trying to solve that... THANK YOU! Can I ask what the solution was? I added this patch to DSDT, keyboard brightness up/down works too now! into method label _Q0E replace_content begin // Brightness Down\n Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n end; into method label _Q0F replace_content begin // Brightness Up\n Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n end; Trackpad doesn't do anything unless I remove the DSDT. Do I need to use other kexts? You think there's any chance it will ever work with interrupts? The annoying thing with polling is that it stops working randomly. On 8/31/2020 at 4:06 PM, MaLd0n said: i see ur trackpad full load. i think ur trackpad is a famous bug, just work after sleep The trackpad always worked on Clover and it was always visible in settings. Just sometimes it stopped working for a minute or so. DSDT.aml Edited September 7, 2020 by Denisuu Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted August 31, 2020 Administrators Share Posted August 31, 2020 1 hour ago, Denisuu said: The trackpad always worked on Clover and it was always visible in settings. Just sometimes it stopped working for a minute or so. this ioreg extract with clover? -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted August 31, 2020 Author Share Posted August 31, 2020 (edited) On 8/31/2020 at 7:51 PM, MaLd0n said: this ioreg extract with clover? No, it's from OpenCore with your patched DSDT. Edit1: I switched to a bigger SDD. I had to remove the DSDT.aml to reinstall Catalina, the installer got stuck here and gave me a ? symbol. After installing Catalina I was able to use your DSDT, everything works except trackpad. Since the 'BootLog.txt' in the 'SendMe.7z' is empty I took a picture. Send me Mac.7z Mac.ioreg.7z Edited September 1, 2020 by Denisuu Link to comment Share on other sites More sharing options...
Denisuu Posted September 1, 2020 Author Share Posted September 1, 2020 Maybe any of this is useful information. Notes about Kabylake ELAN1200: https://github.com/hieplpvip/ASUS-ZENBOOK-HACKINTOSH/wiki/Notes-about-VoodooI2C https://gitter.im/alexandred/VoodooI2C/archives/2018/07/20 Patches by Hieplpvip: https://github.com/hieplpvip/ASUS-ZENBOOK-HACKINTOSH/blob/master/src/hotpatch/ https://github.com/alamdll/Asus-Vivobook-S510UA-High-Sierra-10.13-Hackintosh Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 1, 2020 Administrators Share Posted September 1, 2020 hey DSDT.03.zip -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 2, 2020 Author Share Posted September 2, 2020 Hi, trackpad still doesn't work but it shows in settings now. Mac-ioreg.zip Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 2, 2020 Administrators Share Posted September 2, 2020 ye. have some hard bug i think now if u put hack in sleep after wake trackpad work is a famous bug in some asus laptop -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 2, 2020 Author Share Posted September 2, 2020 (edited) It seems to a problem for all ASUS Kaby Lake laptops with ELAN1200. It doesn't work before or after sleep, it never works until I remove the DSDT, when I remove it it works in polling mode but doesn't show in settings. I just don't understand why it was working in clover under polling mode but it's not working with OpenCore. You have any more idea's? Else I'll try to report an issue on the VoodooI2C Github. Thanks Mald0n for the help! NV580VD-Clover_r5121_Debug_26AUG2020.zip Edited September 2, 2020 by Denisuu Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 3, 2020 Administrators Share Posted September 3, 2020 last bios/uefi version? -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 3, 2020 Author Share Posted September 3, 2020 Yes version 317 on both Clover and OpenCore. Link to comment Share on other sites More sharing options...
Denisuu Posted September 6, 2020 Author Share Posted September 6, 2020 I opened a ticket on VoodooI2C. They discourage to statically patch ACPI. The Dortania OpenCore guide also advised against it. I know I'm asking a lot but would it be possible to turn these patches into SSDT's? With the EFI in attachment trackpad works, it just doesn't show in settings which is ok for now. I think except the patches below work fine. SDDT: Sleep patches HDMI on boot patches GFX0 still shows up in IOreg. AsusSMC patches: [ALS] Fake ALS, [kbl] Kaby Lake/Kaby Lake-R, FnBrightnessKeys _CRS to XCRS (As described on I2C Github issue). https://github.com/VoodooI2C/VoodooI2C/issues/375 To be honest I'd would be happy with the fist 3. N580VD - OC (SDDT 06SEP2020).zip Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 6, 2020 Administrators Share Posted September 6, 2020 the idea of the ssdt appears in 2011/2012 with bcc9 and others, is for new people without any knowledge about that. ssdt is incomplete solution and ur case is rare. the dsdt is a apple way. apple have a very custom tables. one good example is a dsdt from imac19,1 chipset serie 300(coofeelake), from apple have a 8k lines, from one gigabyte mobo have a 60k lines. 52k lines with trashes for windows, unnused and problematic devices for osx. opencore with a full dsdt patch is a really really good hack and these bootloaders support override dortania don't create nothing, is just a compilation the tricks around the net about hackintosh if u need use a hotpatch/ssdt, check DalianSky work. there have a full solution with ssdts and many renames. -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 7, 2020 Author Share Posted September 7, 2020 (edited) I trust you, you seem really good at what you do! To be honest I'm happy to use the DSDT, it's been patched better than what I could achieve with SSDT's. It's just that without your patched DSDT trackpad works and shows in settings now. So theres still something preventing the trackpad from being loaded. (The Trackpad not showing up in settings was because SMCBatteryManager.kext was missing.) I'm using this DSDT Edited September 7, 2020 by Denisuu Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 7, 2020 Administrators Share Posted September 7, 2020 2 hours ago, Denisuu said: this DSDT use it, reboot and save one ioreg DSDT.teste.zip send me original dsdt too -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 7, 2020 Author Share Posted September 7, 2020 1 hour ago, MaLd0n said: use it, reboot and save one ioreg DSDT.teste.zip 45.04 kB · 1 download send me original dsdt too IOreg in attachment, Interrupts might not ever work I think. Mac.ioreg.7z Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 7, 2020 Administrators Share Posted September 7, 2020 1 hour ago, Denisuu said: IOreg in attachment, Interrupts might not ever work I think. DSDT.03.zip -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 7, 2020 Author Share Posted September 7, 2020 56 minutes ago, MaLd0n said: DSDT.03.zip 43.91 kB · 1 download Trackpad works now, sleep is broken again. Mac.ioreg.7z Link to comment Share on other sites More sharing options...
Administrators MaLd0n Posted September 7, 2020 Administrators Share Posted September 7, 2020 DSDT.aml.zip Check if trackpad stay work and sleep -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE Link to comment Share on other sites More sharing options...
Denisuu Posted September 8, 2020 Author Share Posted September 8, 2020 Both trackpad and sleep work now, but the HDMI on boot is broken. It also seems to be struggling to go to sleep. Before it went to sleep instantly, now the fans blow hard for 1,5min before it sleeps. Thanks MaLd0n! Link to comment Share on other sites More sharing options...
Recommended Posts