Contribute
Register

[Guide] How to patch DSDT for working battery status

Thanks, RehabMan, here you have, sir.

Code:
Bertos-Cintiq:~ berto$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82e3d000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 249D7BA8-3FD5-3207-A482-0605CB898037 <12 11 7 6 5 4 3 1>
Bertos-Cintiq:~ berto$ kextstat|grep -y appleintelcpu
Bertos-Cintiq:~ berto$ kextstat|grep -y applelpc
   92    0 0xffffff7f8294b000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <91 12 5 4 3>

Code:
Bertos-Cintiq:~ berto$ sudo touch /System/Library/Extensions && sudo kextcache -u /
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext XHCInjectorCC2Test.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_CPUSensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_ACPISensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Broadcom_WiFi.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM2.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmFirmwareRepo.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext file:///System/Library/Extensions/AppleHDADisabler.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
KernelCache ID: 1130DC7186F51CB1B5AA78426D29020A
Bertos-Cintiq:~ berto$
 

Attachments

  • CLOVER_Berto.zip
    3.9 MB · Views: 74
  • Berto’s Cintiq.ioreg.zip
    690.8 KB · Views: 97
  • ACPI Files.zip
    38.5 KB · Views: 94
Thanks, RehabMan, here you have, sir.

Code:
Bertos-Cintiq:~ berto$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82e3d000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 249D7BA8-3FD5-3207-A482-0605CB898037 <12 11 7 6 5 4 3 1>
Bertos-Cintiq:~ berto$ kextstat|grep -y appleintelcpu
Bertos-Cintiq:~ berto$ kextstat|grep -y applelpc
   92    0 0xffffff7f8294b000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <91 12 5 4 3>

Code:
Bertos-Cintiq:~ berto$ sudo touch /System/Library/Extensions && sudo kextcache -u /
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext XHCInjectorCC2Test.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_CPUSensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC_ACPISensors.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Broadcom_WiFi.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM2.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmFirmwareRepo.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext file:///System/Library/Extensions/AppleHDADisabler.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
KernelCache ID: 1130DC7186F51CB1B5AA78426D29020A
Bertos-Cintiq:~ berto$

You forgot to press F4 before collecting EFI/Clover. Please read "Problem Reporting" carefully.
 
Sorry, I carefully read the Problem Reporting section but it seems I miss a line. Here you have them, sir.
 

Attachments

  • Extracted with Clover.zip
    70.7 KB · Views: 89
Sorry, I carefully read the Problem Reporting section but it seems I miss a line. Here you have them, sir.

That is not what I need (those are .dsl files and do not result from Clover F4). Need EFI/Clover after you press F4 in Clover.

Must. Follow. Instructions. Exactly.
 
Ops, my mistake, sir.
 

Attachments

  • CLOVER.zip
    4 MB · Views: 95
Ops, my mistake, sir.

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Note: It is easier if you use copy/paste instead of typing the commands manually.

Attach contents of Downloads/RehabMan directory as ZIP.
 
Here you have, sir.
 

Attachments

  • RehabMan.zip
    38.8 KB · Views: 91
Hi everybody!

This is my first post and I come with contribution and questions. I've created a battery patch for my Cintiq Companion 2 i5-4258U. It works great but I still seeing some ACPI errors in verbose boot EmbeddedControl related that I would like to fix.

IMG_0258.JPG


Thanks!

The patches look fine. I don't think the errors you see in the verbose output are anything to be concerned with.
 
Ok, thanks RehabMan! This is all thanks to you and your guide. You can add it to your repository if you want :)

Anyway, any idea about what these errors could be?

Sorry for this Offtopic but everything seems to work fine except wake with Power Button.
I can enter Cintiq Mode (connect it to another computer with a special 24-pin port to HDMI port, put it to sleep and use it as standalone Cintiq) and it properly wakes but if I wake it pressing power button I get a black screen and system is unavailable using screen sharing.
I can also wake the computer plugging that special cable but then I need to use screen sharing to detect displays or change resolution in order to push signal to screen.
Any clue or help to fix this will so much appreciated, sir. It's the only thing I need to fix in my Cintiq I think.
 
Ok, thanks RehabMan! This is all thanks to you and your guide. You can add it to your repository if you want :)

I think there are existing patches in the repo that match... for example "Dell XPS 18".

Anyway, any idea about what these errors could be?

It is possible your DSDT is accessing EC fields prior to the EC driver loading (eg. prior to _REG being called... see ACPI spec for more info).

Sorry for this Offtopic but everything seems to work fine except wake with Power Button.
I can enter Cintiq Mode (connect it to another computer with a special 24-pin port to HDMI port, put it to sleep and use it as standalone Cintiq) and it properly wakes but if I wake it pressing power button I get a black screen and system is unavailable using screen sharing.
I can also wake the computer plugging that special cable but then I need to use screen sharing to detect displays or change resolution in order to push signal to screen.
Any clue or help to fix this will so much appreciated, sir. It's the only thing I need to fix in my Cintiq I think.

Sleep problems are off-topic here.
 
Back
Top