Contribute
Register

[Guide] How to patch DSDT for working battery status

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,
 
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.
 
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.
 
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.
 
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.
 
How to patch DSDT for working battery status

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