RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,016
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
That version isn't there - only 6.1.
You are not using the version of MaciASL you claim to be using.
That version isn't there - only 6.1.
You are not using the version of MaciASL you claim to be using.
No need to patch any SSDTs.
Do all renames with config.plist so you avoid patching SSDTs.
(it just makes for extra work when looking for problems when you have patched SSDTs that you don't need).
Injection of backlight properties can be done with an add-on SSDT, or even config.plist/Devices/AddProperties (or Devices/Arbitrary).
How can I patch the SSDTs from Clover? I'm adding code, not just renaming stuff.
To add _DSM methods, no need to patch anything... (other than normal rename _DSM->XDSM patch).
See examples in ACPI hotpatch guide:
http://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/
So instead of statically renaming the _DSM Method to XDSM and inserting this below, I can enable the rename _DSM to XDSM patch in Clover and then somehow add the method inside of Clover (which even after reading I don't get how to do)?
And instead of adding the Brightness Fix patch in MaciASL can I use AddPNLF in Clover?
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
Store (LTRF, LTRZ)
Store (PMLF, LMSL)
Store (PNLF, LNSL)
Store (OBFF, OBFZ)
}
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
Store (LTRF, LTRZ)
Store (PMLF, LMSL)
Store (\PNLF, LNSL)
Store (OBFF, OBFZ)
}
Device(_SB.PCI0.PEG0.PEGP.PNLF)
{
...
}
_DSM methods can be added with add-on SSDTs in ACPI/patched.
Not in your case. The reasons are subtle but important.
Warning: The following discussion requires a bit of understanding of ACPI.
You DSDT has code that already refers to an existing PNLF identifier. The access to it is not scope qualified (if you search your native DSDT for PNLF, you will see the method). If you add a PNLF at _SB scope, the code that was originally referring to the existing PNLF (in root scope), will instead be referring to _SB.PNLF. You can see how "Brightness Fix" patch patches for this situation (pay attention to the preview window contents).
You could hotpatch the method referring to root scope PNLF. Eg. hotpatch the method at _SB.PCI0.RP15 that reads this way:
Code:Method (_INI, 0, NotSerialized) // _INI: Initialize { Store (LTRF, LTRZ) Store (PMLF, LMSL) Store (PNLF, LNSL) Store (OBFF, OBFZ) }
Such that it qualifies the PNLF access properly... like this:
Code:Method (_INI, 0, NotSerialized) // _INI: Initialize { Store (LTRF, LTRZ) Store (PMLF, LMSL) Store (\PNLF, LNSL) Store (OBFF, OBFZ) }
The "rename/replace" pattern is what you would use, which is covered in the ACPI hotpatch guide.
Alternately, you could place the Device(PNLF) at a path that is not reachable (with unqualified access) from _SB.PCI0.RP15.
For example, you could probably place it at _SB.PCI0.PEG0.PEGP:
Code:Device(_SB.PCI0.PEG0.PEGP.PNLF) { ... }
That way when the code at _SB.PCI0.RP15._INI executes, the access it has to PNLF will refer to the root PNLF, instead of an invalid access to _SB.PNLF (if you used AddPNLF).
Nice, thanks for taking the time to explain that!
Sometimes the battery works, but most of the time it doesn't. It worked on last boot but this boot it's stopped. Any ideas how I could fix this?
Your ioreg shows battery status working. You must separate the idea of "battery status working/not working" (which is an ioreg content thing) vs. battery status not on the menu bar (which is a system UI component issue, usually broken due to startup timing).
Note: Your SSDT-7.aml is completely wrong. It seems it shares nothing in common with SSDT-7.aml in ACPI/origin. No idea what you are trying to accomplish there...
If by "it's stopped" you mean that it has disappeared from the system menu bar, and you have to unplug ac/plug it back/then visit SysPrefs->Energy saver to restore the status to the menu bar, then it likely is due to slow boot (booting from HDD spinner?)...
In which case adjust abm_firstpolldelay until you find a value that works consistently.
It is also a good idea to boot from a fast device, such as SSD instead of HDD.
By broken I mean it shows 0% in Sys Prefs and won't add to menu bar.
Was patched by onejay09. Will delete and create an SSDT with the _DSM patch for backlight in - do I literally just create a new .aml file and then paste in the patch?
Yeah, doesn't appear in Energy saver though.
I would if my SSD was larger. Unfortunately, 256 GB is not big enough to share Windows and macOS on a gaming laptop.