-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Use RenameDevices for Methods too #378
Comments
It works
And the result
|
hmm unfortunately in my case it doesn't work. config.plist:
bootlog.log:
What are renamed:
DSDT:
DSDT:
What are not:
SSDT-3-RVP7Rtd3:
SSDT-3-RVP7Rtd3:
Attaching them: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So what I tried to do is rename
_GPE.NTFY -> XTFY
, and_SB.PCI0.RP09._INI -> XINI
in DSDT_GPE.NTFY
:Looked at he log, I see it is not renamed.
So according to @SergeySlice it's normal because ONLY Devices can be renamed, Methods cannot.
But maybe because of a bug, if there is a Device after the Scope, the Method can be renamed too.
Example what I mentioned:
_SB.PCI0.RP09._INI -> XINI
_SB.PCI0
(Scope)RP09
(Device)_INI
(Method)Result:
As you can see, it is renamed.
Another example:
SB.PCI0.RP09._PS3 -> XPS3
in SSDT-4(so there is no device after Scope, so it'll fail)
Result:
Now I use Bin rename patches to do this, but for the ONLY and EXACT match I need to find that one Method with HexFiend in DSDT.aml, and find a pattern that matches ONLY that exact one Method that needs to be patched.
For example if I want to patch
_SB.PCI0.RP09._INI -> XINI
without using RenameDevices I have to find the pattern in HexFiend, that matches only_INI
that is inside_SB.PCI0
Scope,RP09
Device. But the problem is that for_INI
there are44
matches in DSDT.aml, so it's really hard to find that only match. As for now, I'm lucky because the_SB.PCI0.RP09._INI -> XINI
RenameDevice worked (because of a bug), so I could find it with HexFiend, and use rename patch :Find:
5F414452 00A00E92 93525041 390A00A4 52504139 A107A40C 00001D00 084C5452 5A0A0008 4F42465A 0A00084C 4D534C0A 00084C4E 534C0A00 142A5F49 4E49
Replace:
5F414452 00A00E92 93525041 390A00A4 52504139 A107A40C 00001D00 084C5452 5A0A0008 4F42465A 0A00084C 4D534C0A 00084C4E 534C0A00 142A5849 4E49
As you can see it is really long, because it is the only pattern that matches with that one
_INI
MethodIt would be convenient to use RenameDevices to Rename Methods too under Scopes.
The text was updated successfully, but these errors were encountered: