Contribute
Register

[Guide] How to patch DSDT for working battery status

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I agree, I missed one 16bit and also had 4 typos.
I confirm the Y700 patch is working perfectly and covers all occurrences with the given offsets.
My 510 is not a Y510.
Thanks. Added a comment to the file to reflect.
People reading this guide should pay more attention to post #1, "Existing Patches".
 
Joined
Jan 1, 2017
Messages
19
Motherboard
XiaoMi 4
CPU
Intel I5-6300HQ
Graphics
HD530 & GTX960M(HDMI is dedicated to the Nvidia)
Mobile Phone
Android,
Hi,
There are some code in my SSDT which are accessing EC0.Should I change them like DSDT?
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi,
There are some code in my SSDT which are accessing EC0.Should I change them like DSDT?
I see no multibyte EC access in SSDT-2.aml. Do you?
 
Joined
Jan 1, 2017
Messages
19
Motherboard
XiaoMi 4
CPU
Intel I5-6300HQ
Graphics
HD530 & GTX960M(HDMI is dedicated to the Nvidia)
Mobile Phone
Android,
I see no multibyte EC access in SSDT-0.aml. Do you?
Sorry,it's my fault.
The first question:
There are some multibyte EC access in SSDT-0.aml.
(BFCC, 16 and MCUR, 16)
Should I
Change
Code:
External (_SB_.PCI0.LPCB.EC0_.BFCC, IntObj)
External (_SB_.PCI0.LPCB.EC0_.MCUR, IntObj)
Store (\_SB.PCI0.LPCB.EC0.BFCC, Local1)
Store (\_SB.PCI0.LPCB.EC0.MCUR, Local2)
To
Code:
External (_SB_.PCI0.LPCB.EC0_.FCC0, IntObj)
External (_SB_.PCI0.LPCB.EC0_.FCC1, IntObj)
External (_SB_.PCI0.LPCB.EC0_.CUR0, IntObj)
External (_SB_.PCI0.LPCB.EC0_.CUR1, IntObj)
Store (B1B2(\_SB.PCI0.LPCB.EC0.FCC0,\_SB.PCI0.LPCB.EC0.FCC1), Local1)
Store (B1B2(\_SB.PCI0.LPCB.EC0.CUR0,\_SB.PCI0.LPCB.EC0.CUR1), Local2)
The second question:
In my SSDT-4.aml,There are many object like this:
"_SB_.PCI0.LPCB.H_EC.XXXX"
Should I rename H_EC to EC0?

Thx!
 

Attachments

Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Sorry,it's my fault.
The first question:
There are some multibyte EC access in SSDT-2.aml.
You did not attach SSDT-2.aml this time.
No references to MCUR or BFCC in the SSDT-2.aml that you attached in post #3501.

Should I rename H_EC to EC0?
Not related to battery status. That SSDT is likely PTID... will not be used by OS X. H_EC is provided by Windows only (my guess... likely stands for "Host EC").
 
Joined
Jan 1, 2017
Messages
19
Motherboard
XiaoMi 4
CPU
Intel I5-6300HQ
Graphics
HD530 & GTX960M(HDMI is dedicated to the Nvidia)
Mobile Phone
Android,
You did not attach SSDT-2.aml this time.
No references to MCUR or BFCC in the SSDT-2.aml that you attached in post #3501.
Oh,sorry.
I mean,There are some multibyte EC access in SSDT-0.aml.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Oh,sorry.
I mean,There are some multibyte EC access in SSDT-0.aml.
These are related to WMI. Will not be used by OS X/macOS... WMI only used by Windows.
Patch them at your option.
 
Joined
Jan 1, 2017
Messages
19
Motherboard
XiaoMi 4
CPU
Intel I5-6300HQ
Graphics
HD530 & GTX960M(HDMI is dedicated to the Nvidia)
Mobile Phone
Android,
Not related to battery status. That SSDT is likely PTID... will not be used by OS X. H_EC is provided by Windows only (my guess... likely stands for "Host EC").
These are related to WMI. Will not be used by OS X/macOS... WMI only used by Windows.
Patch them at your option.
I know, thank you!
 
Joined
Jan 24, 2014
Messages
4
Motherboard
P9X79-LE
CPU
i7 4930k
Graphics
GTX 760
Mac
iMac
Mobile Phone
iOS
Hi RehabMan, fantastic guide btw
I've come up with this patch for the Razer Blade Stealth (Kaby-Lake). It is very similar to the Razer Blade 2014 patch in your repo, but I've added a buffer register to get it working properly.
Thanks for your awesome work!
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi RehabMan, fantastic guide btw
I've come up with this patch for the Razer Blade Stealth (Kaby-Lake). It is very similar to the Razer Blade 2014 patch in your repo, but I've added a buffer register to get it working properly.
Thanks for your awesome work!
Thanks... I just added it to the Razer Blade 2014 patch (with a couple of fixes).

How is progress with the Razer Blade Stealth?
 
Top