Contribute
Register

[Guide] How to patch DSDT for working battery status

Your DSDT is not patched correctly. You missed several multibyte EC fields.

Looks to me that existing patches "HP G2 2221ss" or "HP DV6 3165sf" are potential matches.

waaah thank you very much mr. rehabman
youre patch "HP DV6 3165sf" works for "HP Pavilion G4 1214tx"
 
waaah thank you very much mr. rehabman
youre patch "HP DV6 3165sf" works for "HP Pavilion G4 1214tx"

The "HP G2 2221ss" patch is preferred if it works. Did you test it?
 
Never mind, figured myself. Another thanks to RehabMan for great stuff!
 
Last edited:
Sir, I've followed everything on your guide but still got no luck and I'm confused with my DSDT.aml file. After searching for EmbeddedControl and found four of them, examined the listings for larger that 8-bits and found 2 items with 256-bits

BDAT, 256,
BDA2, 256,

First, I don't know how to deal with 256-bits since I'm totally new to this and was just following your guide. And Second, that 256-bits changes its value to 16-bits

OperationRegion (\F112, SystemMemory, Arg0, Arg1)
Field (\F112, DWordAcc, NoLock, Preserve)
{
Offset (0x08),
...
BDAT, 16,

I'm using an Asus u31JG laptop. could you help me examine my DSDT file sir and give me some advice on how to have my battery indicator to work?
 

Attachments

  • Archive.zip
    87.3 KB · Views: 70
Sir, I've followed everything on your guide but still got no luck and I'm confused with my DSDT.aml file. After searching for EmbeddedControl and found four of them, examined the listings for larger that 8-bits and found 2 items with 256-bits

BDAT, 256,
BDA2, 256,

First, I don't know how to deal with 256-bits since I'm totally new to this and was just following your guide. And Second, that 256-bits changes its value to 16-bits

OperationRegion (\F112, SystemMemory, Arg0, Arg1)
Field (\F112, DWordAcc, NoLock, Preserve)
{
Offset (0x08),
...
BDAT, 16,

I'm using an Asus u31JG laptop. could you help me examine my DSDT file sir and give me some advice on how to have my battery indicator to work?

Use existing patch "ASUS N55SL/VivoBook". It matches your DSDT.

Please fill out your profile...

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

Mobo: manufacturer/model + bootloader(Clover/Chameleon/Chimera)
CPU: detailed CPU model + motherboard chipset
Graphics: all graphics devices + laptop internal screen resolution

For example, typical Ivy laptop:
Mobo: HP ProBook 4540s (Clover)
CPU: i5-3320m/HM76
Graphics: HD4000, 1366x768

Use CPU-Z on Windows to find CPU (Core iX-xxx) and motherboard chipset (HMxx), and graphics capabilities. For a laptop, these details are important and affect critical installation procedures.

Note: When specifying your bootloader, if using Clover legacy, please be sure to specify "Clover legacy"). Specifying "Clover" will be assumed as "Clover UEFI"
 
Use existing patch "ASUS N55SL/VivoBook". It matches your DSDT.

Please fill out your profile...

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

Mobo: manufacturer/model + bootloader(Clover/Chameleon/Chimera)
CPU: detailed CPU model + motherboard chipset
Graphics: all graphics devices + laptop internal screen resolution

For example, typical Ivy laptop:
Mobo: HP ProBook 4540s (Clover)
CPU: i5-3320m/HM76
Graphics: HD4000, 1366x768

Use CPU-Z on Windows to find CPU (Core iX-xxx) and motherboard chipset (HMxx), and graphics capabilities. For a laptop, these details are important and affect critical installation procedures.

Note: When specifying your bootloader, if using Clover legacy, please be sure to specify "Clover legacy"). Specifying "Clover" will be assumed as "Clover UEFI"
Do I need to windows first to use cpuz sir or I could just run it on virtual within yosemite? and by the way sir the patch didn't work. I'm using chameleon wizard to install the dsdt.aml file or am I doing it wrong?
This is what it says on Chameleon Wizard bdmesg
Code:
SMBIOS orig was = f0440
SMBIOS new is = 24dc000
Read HFS+ file: [hd(1,2)/Extra/DSDT.aml] 78201 bytes.
Table /Extra/DSDT.aml read and stored at: 24e0000
Generating P-States config: YES
Generating C-States config: YES
Read HFS+ file: [hd(1,2)/Extra/SSDT.aml] 362 bytes.
Table /Extra/SSDT.aml read and stored at: 24f4000
Read HFS+ file: [hd(1,2)/Extra/SSDT-1.aml] 2545 bytes.
Table /Extra/SSDT-1.aml read and stored at: 24f5000
ACPI Table not found: SSDT-2.aml
No ACPI version 1 found. Ignoring
RSDP version 2 found @f0410. Length=36
RSDT @bada7f18, Length 76
TABLE FACP,FADT found @badd3918, Length 132
FADT: ACPI Restart Fix applied!
DSDT: Old @bad43018,e0c0000, New @24e0000,e0c0000
FADT: Using custom DSDT!
Start finding cpu names. length 78201
DSDT: 5b83
Found ACPI CPU: CPU0
DSDT: 5b83
Found ACPI CPU: CPU1
DSDT: 5b83
Found ACPI CPU: CPU2
DSDT: 5b83
Found ACPI CPU: CPU3
DSDT: 5b83
Found ACPI CPU: CPU4
DSDT: 5b83
Found ACPI CPU: CPU5
DSDT: 5b83
Found ACPI CPU: CPU6
DSDT: 5b83
Found ACPI CPU: CPU7
End finding cpu names: cpu names found: 8
SSDT with CPU C-States generated successfully
C-States generated
P-States: min 0x7, max 0x10
SSDT with CPU P-States generated successfully
P-States generated
TABLE APIC,TABLE DBGP,TABLE ASF!,TABLE ECDT,TABLE SLIC,TABLE MCFG,TABLE HPET,TABLE SSDT,TABLE SSDT,
RSDT: Added 4 SSDT table(s)
RSDT: Original checksum 192, New checksum 243 at 24fa000

XSDT @0;bada7e18, Length=108
FADT found @0bad82c18, Length 244
FADT: ACPI Restart Fix applied!
DSDT: Old @bad43018,bad43018, New @24e0000,24e0000
FADT: Using custom DSDT!
copied (OEM)
copied (OEM)
copied (OEM)
copied (OEM)
copied (OEM)
copied (OEM)
copied (OEM)
copied (OEM)
Added 4 SSDT table(s) into XSDT

RSDP: Original checksum 186, New checksum 244
RSDP: Original extended checksum 178, New extended checksum 203
ACPI version 2 patching finished

Starting Darwin/x86_64 [Darwin Kernel Version 14.5.0: Thu Jun 16 19:58:21 PDT 2016; root:xnu-2782.50.4~1/RELEASE_X86_64]
Boot Args: debug=8 ahcidisk=1 -v
 
Do I need to windows first to use cpuz sir or I could just run it on virtual within yosemite?

I don't mind how you obtain your hardware details, as long as they are accurate. Certainly, results within a VM are likely to be tainted by the VM host.

and by the way sir the patch didn't work.

It means you made a mistake... Read post #1, "Problem Reporting".
 
I don't mind how you obtain your hardware details, as long as they are accurate. Certainly, results within a VM are likely to be tainted by the VM host.



It means you made a mistake... Read post #1, "Problem Reporting".


Sir I've updated my profile and attached here is a copy of ioreg, dsdt and terminal output.

Code:
kextstat|grep -y acpiplat
   13    2 0xffffff7f81eaa000 0x5f000    0x5f000    com.apple.driver.AppleACPIPlatform (9.9) <12 11 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
   25    0 0xffffff7f81d9a000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) <7 6 5 4 3 1>

kextstat|grep -y applelpc
   86    0 0xffffff7f81c4d000 0x3000     0x3000     com.apple.driver.AppleLPC (1.7.3) <83 12 5 4 3>

sudo touch /System/Library/Extensions && sudo kextcache -u /
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHSSPISupport.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHSSPIHIDDriver.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
AppleHPM.kext - no dependency found for com.apple.driver.AppleIntelLpssI2CController.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHPM.kext - no dependency found for com.apple.driver.AppleIntelLpssI2CController.
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
Prelink failed for com.apple.driver.AppleHSSPISupport; omitting from prelinked kernel.
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
Prelink failed for com.apple.driver.AppleHSSPIHIDDriver; omitting from prelinked kernel.
AppleHPM.kext - no dependency found for com.apple.driver.AppleIntelLpssI2CController.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.
 

Attachments

  • RehabMan.zip
    416.9 KB · Views: 84
Sir I've updated my profile and attached here is a copy of ioreg, dsdt and terminal output.

Code:
kextstat|grep -y acpiplat
   13    2 0xffffff7f81eaa000 0x5f000    0x5f000    com.apple.driver.AppleACPIPlatform (9.9) <12 11 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
   25    0 0xffffff7f81d9a000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) <7 6 5 4 3 1>

kextstat|grep -y applelpc
   86    0 0xffffff7f81c4d000 0x3000     0x3000     com.apple.driver.AppleLPC (1.7.3) <83 12 5 4 3>

sudo touch /System/Library/Extensions && sudo kextcache -u /
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHSSPISupport.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHSSPIHIDDriver.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
AppleHPM.kext - no dependency found for com.apple.driver.AppleIntelLpssI2CController.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
AppleHPM.kext - no dependency found for com.apple.driver.AppleIntelLpssI2CController.
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
Prelink failed for com.apple.driver.AppleHSSPISupport; omitting from prelinked kernel.
AppleHSSPISupport.kext - no dependency found for com.apple.driver.AppleIntelLpssSpiController.
Prelink failed for com.apple.driver.AppleHSSPIHIDDriver; omitting from prelinked kernel.
AppleHPM.kext - no dependency found for com.apple.driver.AppleIntelLpssI2CController.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.

You did not install ACPIBatteryManager.kext. Read post #1. Carefully.
 
Back
Top