Since I don’t have your hardware I can be 100% but the scope for discrete graphics is usually _SB_.PCI0.PEG0.PEGP or _SB_.PCI0.PEG0.GFX0 then within that scope is Device (GFX0) if you run Toleda’s script for adding HDMI audio it adds it like I mentioned with Device (GFX0) at least on all my systems that is his script may do it dynamically based on the DSDT. But as the old say
ing goes if it’s working don’t mess with it or it won’t be working.
My h/w is as in my signatue (Z77X-UP5-TH, i7-3770K with Radeon RX580).
I now have a DSDT.aml (I did one last night) that works fine. Here's a snippet of the GFX0 device:
Code:
Device (PEG0)
{
Name (_ADR, 0x00010000) // _ADR: Address
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
{
If (PICM)
{
Return (AR02 ())
}
Return (PR02 ())
}
Device (GFX0)
{
Name (_ADR, 0x0) // _ADR: Address (was 0xFFFF)
}
}
So the actual discrete GPU device is within _SB.PCI0.PEG0 and is called GFX0. So I guess the scope _SB.PCI0.PEG0.GFX0 is correct ?
Actually, my SSDT is broken. I just tried turning OFF RadeonDeInit assuming my SSDT-RX580.aml will do the same job.
It does not work .... on boot I get the Apple logo, loading bar and half way through the screen freezes. the OS is up and running but no display output.
All this time, I thought everything was fine with my system (and hence SSDT)....and it was because RadeonDeInit was set to True which in effect was overriding my SSDT but in reality, the SSDT wasn't loading at all.
UPDATE:
I
fixed my SSDT file inject problem. I now feel like a complete idiot
I placed my file : EFI/Clover/ACPI/Patched/SSDT-RX580.aml and
assumed Clover will automatically inject it.
It wasn't for some reason. The only reason I can think of was that in config.plist ACPI->SortedOrder, the file was called SSDT-AMD.aml which Clover could not find but it ignored the SSDT-RX580.aml that was there.
Interestingly, Clover will load DSDT.aml even if you explicitly name BLAH-BLAH.aml in config.plist ACPI->DSDT->Name->BLAH-BLAH.aml. That is, it will not find BLAH-BLAH.aml but will find DSDT.aml and load it.
So now, I can turn REMOVE RadeonDeInit, AddProperties (for card naming), FBName (for choosing the Framebuffer) and AddHDMI_8000000 (for HDMI Audio) use the SSDT to do all that.