Contribute
Register

[Guide] Using Clover to "hotpatch" ACPI

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi RehabMan, I already followed your tutorial for brightness control, since it's required to change gfx0 to igpu, I try this thread tutorial with plist editor pro. but brightness menu still doesn't show in syspref. below are my files.
need your advice. Thanks Rehabman!
Read guide regarding EDID patching that may be needed.
https://www.tonymacx86.com/threads/guide-laptop-backlight-control-using-applebacklightinjector-kext.218222/

Note: Your GFX0->IGPU hotpatch is working. Further discussion of your brightness problem is off-topic here.
 
Joined
Aug 29, 2018
Messages
8
CPU
i5-3230M
Graphics
GT 730m + Intel HD 4000
Read guide regarding EDID patching that may be needed.
https://www.tonymacx86.com/threads/guide-laptop-backlight-control-using-applebacklightinjector-kext.218222/

Note: Your GFX0->IGPU hotpatch is working. Further discussion of your brightness problem is off-topic here.
okay thank you for your help!. I'll try that EDID patching.
So my GFX0 > IGPU is working, but why my battery still discharging so fast and my fan keep working even though I'm only using Safari
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
but why my battery still discharging so fast and my fan keep working even though I'm only using Safari
Off-topic. Open a separate thread.
 
Joined
Oct 12, 2010
Messages
695
Motherboard
X299-WU8
CPU
i9-9880XE
Graphics
Vega 64
Mac
iMac, Mac Pro
Hi Rehapman
When I booting stuck more then 40 sec.
Error code
Code:
apfs_vfsop_sync:3044: failed to finish all transactions in sync()! (err 16)
Thank you.
 
Last edited:
Joined
Apr 15, 2018
Messages
65
Motherboard
Mi NoteBook Pro 15.6''
CPU
Intel® Core™ i7-8550U
Graphics
Intel UHD Graphics 620, 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Hi, Rehabman. Thank you for this informative guide.
I have a question that how can I remove unwanted device by using hotpatch. For example, I want to remove Device WTBT which has _HID, "PNP0C14". I tried to rename _HID to XHID and _STA to XSTA with tgtbridge "WTBT", and the device is not shown in IORegExplorer.
I am not sure what I did is appropriate.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi Rehapman
When I booting stuck more then 40 sec.
Error code
Code:
apfs_vfsop_sync:3044: failed to finish all transactions in sync()! (err 16)
please look my problem report files.
I update SSDT and Clover config
Thank you.
Off-topic.
Sounds APFS related.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi, Rehabman. Thank you for this informative guide.
I have a question that how can I remove unwanted device by using hotpatch. For example, I want to remove Device WTBT which has _HID, "PNP0C14". I tried to rename _HID to XHID and _STA to XSTA with tgtbridge "WTBT", and the device is not shown in IORegExplorer.
I am not sure what I did is appropriate.
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Joined
Apr 15, 2018
Messages
65
Motherboard
Mi NoteBook Pro 15.6''
CPU
Intel® Core™ i7-8550U
Graphics
Intel UHD Graphics 620, 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
Here it is. From a real MacBookPro14,1's DSDT, I see that HPET's _STA value is zero, so I also set zero by using hotpatch to disable HPET. And I read that WMI (PNP0C14)devices are for Windows driver mapping(https://technet.microsoft.com/zh-cn/dn614028(v=vs.94)), so I set _STA to zero to disable them as well in SSDT-PNP0C14. I am not sure my method to disable them is correct or not.
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Here it is. From a real MacBookPro14,1's DSDT, I see that HPET's _STA value is zero,
Certainly an interesting fact.
Just for those reading along, here is the relevant code:
Code:
                Device (HPET)
                {
                    Name (_HID, EisaId ("PNP0103"))  // _HID: Hardware ID
                    Name (_CID, EisaId ("PNP0C01"))  // _CID: Compatible ID
...
                    Method (_STA, 0, NotSerialized)  // _STA: Status
                    {
                        If (OSDW ())
                        {
                            Return (Zero)
                        }
...
                    }
so I also set zero by using hotpatch to disable HPET.
Method to be used:
- rename HPET._STA to XSTA
- provide SSDT that replaces with Name(_SB.PCI0.LPCB.HPET._STA, 0)

And I read that WMI (PNP0C14)devices are for Windows driver mapping(https://technet.microsoft.com/zh-cn/dn614028(v=vs.94)), so I set _STA to zero to disable them as well in SSDT-PNP0C14. I am not sure my method to disable them is correct or not.
No real need to disable the WMI stufff...
 
Joined
Apr 15, 2018
Messages
65
Motherboard
Mi NoteBook Pro 15.6''
CPU
Intel® Core™ i7-8550U
Graphics
Intel UHD Graphics 620, 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Method to be used:
- rename HPET._STA to XSTA
- provide SSDT that replaces with Name(_SB.PCI0.LPCB.HPET._STA, 0)



No real need to disable the WMI stufff...
Thank you for advice. I added back WMI device and renamed HPET._STA to XSTA by using TgtBridge. However, I found that all my OEM SSDT's _STA were renamed to XSTA...(For example in SSDT-1, SKC0 device) I don't know the reason. Here's the trouble shooting file.
 

Attachments

Top