Contribute
Register

[Guide] How to patch DSDT for working battery status

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,103
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
How to patch DSDT for working battery status

Great guide RehabMan! My problem is: SMD0, 264, //Offset (??)
OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
Field (ERAM, ByteAcc, NoLock, Preserve)
{
Offset (0x18),
SMPR, 8, //18
SMST, 8,
SMAD, 8,
SMCM, 8,
SMD0, 264, //??
SMAA, 8,

I read “ The offset of any given item is the offset of the prior item + prior item size in bytes, unless an Offset directive is used to change the effective offset” but i don’t understand because my english not good. Can you help me? Thank you very much!

Simple math...

Field (ERAM, ByteAcc, NoLock, Preserve)
{
Offset (0x18),
SMPR, 8, //18
SMST, 8, //19
SMAD, 8, //1a
SMCM, 8, //1b
SMD0, 264, //1c
SMAA, 8,
 
Joined
Jun 26, 2013
Messages
49
Motherboard
Asus Prime X299 Deluxe
CPU
Core i7-7800X
Graphics
Nvidia GTX770
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Joined
Oct 9, 2013
Messages
8
Motherboard
ASUS X401A-WX108
CPU
Core i3-2350M
Graphics
Intel HD Graphics 3000
Mac
  1. MacBook Pro
Classic Mac
Mobile Phone

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,103
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
How to patch DSDT for working battery status

Thanks. It’s working, but Sometimes battery icon not showing in the menubar? Please help me!

DSDT patch and orginal: https://www.dropbox.com/s/pqi02sq646h0xst/DSDT.zip

Even though there seems to be already a patch in the repo for your laptop, the one you wrote looks ok.

Use the debug version of ACPIBatteryManager.kext to determine if anything is going wrong in your battery methods.
 
Joined
Oct 9, 2013
Messages
8
Motherboard
ASUS X401A-WX108
CPU
Core i3-2350M
Graphics
Intel HD Graphics 3000
Mac
  1. MacBook Pro
Classic Mac
Mobile Phone
How to patch DSDT for working battery status

Simple math...

Field (ERAM, ByteAcc, NoLock, Preserve)
{
Offset (0x18),
SMPR, 8, //18
SMST, 8, //19
SMAD, 8, //1a
SMCM, 8, //1b
SMD0, 264, //1c
SMAA, 8,

Thanks.
Patch battery_ASUS-N55SL.txt working with ASUS X401A-WX108.
My question:
I think SMAD, SMCM, SMD0 is //20, //21, //22.
Why it's //1a, //1b, //1c.
 
Joined
Jul 10, 2012
Messages
4
Motherboard
Mac OS 10.9.4
CPU
Intel core i5 u4200
Graphics
intel HD 4400
Mac
Classic Mac
Mobile Phone
How to patch DSDT for working battery status

Which patch? There are many.

Please provide complete details in your profile/signature
(Profile/Settings link in upper right corner of this site)

System: manufacturer/model
CPU: detailed CPU model + motherboard chipset
Graphics: all graphics devices + laptop internal screen resolution

System: ASUS PRO PU401LA
CPU: i5-4200u/PU401LAC
Graphics: HD4400, 1366x768

T3MVgik.png


PS5ZOtD.png


That was my mistake, I applied someone's patches on Dell Latitude forums with the same specs with me, maybe that causes some errors like that.

Here is my DSDT dumped from Ubuntu
https://www.dropbox.com/s/dq0ibwef0wnltyg/Ubuntu Dump.zip

Thanks for your interest.
 

RehabMan

Moderator
Joined
May 2, 2012
Messages
184,103
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
How to patch DSDT for working battery status

System: ASUS PRO PU401LA
CPU: i5-4200u/PU401LAC
Graphics: HD4400, 1366x768

T3MVgik.png


PS5ZOtD.png


That was my mistake, I applied someone's patches on Dell Latitude forums with the same specs with me, maybe that causes some errors like that.

Here is my DSDT dumped from Ubuntu
https://www.dropbox.com/s/dq0ibwef0wnltyg/Ubuntu Dump.zip

Thanks for your interest.

Looks like the "ASUS G75VW" is applicable.
 
Joined
Jun 24, 2011
Messages
3
Motherboard
IBM Thinkpad T60
CPU
T5500M
Graphics
X1300
How to patch DSDT for working battery status

Has anyone made a patch for a Lenovo ThinkPad T61 and would share it?
 
Top