RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,016
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
The .disable rename seems to work ok for all the versions of clover i've been testing with but point taken.
Ok somehow I've confused myself in the patching process and removed the line that called HGOF from the _OFF method (because HGOF uses EC) and moved it to the _REG method. my big bad ... ... I think in the example in your guide the EC code is in the _OFF method which is probably what sent me down that path.
What i should be doing is removing the EC line of code in the HGOF Method and putting that in the _REG method.
So I think what i need to do is rename HGOF to XGOF (which is not used by any of the ACPI files) , inject a new HGOF method without the line of code that uses the EC and move that of code into _REG
Ok i think i got it now ....
Thanks for taking a look and pointing out my mistake.
Appreciate all you do for the community.
Cheers
Jay
I think you've got a better feeling for the patching required...
Summary:
- _INI, if it exists is patched to call _OFF (if _INI does not exist, you simply add it at the same ACPI path as _OFF)
- the execution path of _OFF is analyzed for EC related code
- any EC related code in the _OFF execution path is removed, and executed in _REG instead (when EC is ready, as per ACPI spec)
- the EC related code may appear in _OFF directly, or a method which _OFF calls (directly or indirectly)
- hotpatching methods uses rename/replace pattern as per ACPI hotpatch guide