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