Jump to content

Laptop battery is shown now


Slice
 Share

21 posts in this topic

Recommended Posts

Many users install PowerManagement.bundle and is happy. But not all! As mine. :guitar:

 

I found some new condition.

Edit IOSMBusFamily.kext/info,plist to have

	<key>IOKitPersonalities</key>
<dict>
	<key>IOSMBusController</key>
	<dict>
		<key>CFBundleIdentifier</key>
		<string>com.apple.iokit.IOSMBusFamily</string>
		<key>IOClass</key>
		<string>IOSMBusController</string>
		<key>IOPCIClassMatch</key>
		<string>0x0c050000&0xffff0000</string>
		<key>IOProviderClass</key>
		<string>IOPCIDevice</string>
	</dict>
</dict>

It works!

| | | | "compatible" =

| | | | "name" = "pci1002,4353"

| | | | }

| | | |

| | | +-o IOSMBusController

| | | {

| | | "IOMatchCategory" = "IODefaultMatchCategory"

| | | "IOClass" = "IOSMBusController"

| | | "IOProviderClass" = "IOPCIDevice"

| | | "CFBundleIdentifier" = "com.apple.iokit.IOSMBusFamily"

| | | "IOPCIClassMatch" = "0x0c050000&0xffff0000"

| | | "IOProbeScore" = 0x0

| | | }

Then I need to delete AppleACPIEC.kext from AppleACPIPlatform.kext/Contents/PlugIns/

Why? Don't know exactly but the kext prevents SMBus to work.

Before I have

| | +-o AppleACPIBattery

| | | {

| | | "Battery Present" = No

| | +-o AppleACPIBatteryHub

| | {

| | "IOMatchCategory" = "IODefaultMatchCategory"

| | "IOBatteryInfo" = ({"Capacity"=0x0,"Amperage"=0x0,"Current"=0x0,"Voltage"=0x0,"Flags"=0x0})

Now I have

| | +-o AppleACPIBattery

| | | {

| | | "Battery Present" = Yes

| | | "Battery Status" = (0x0,0x0,0xc80,0x30cf)

| | | "Battery Information" = (0x1,0x1130,0xc80,0x1,0x2b5c,0x0,0x60,0x1,0x1,"","","LION","SAMSUNG Electronics")

| | +-o AppleACPIBatteryHub

| | {

| | "IOMatchCategory" = "IODefaultMatchCategory"

| | "IOBatteryInfo" = ({"Capacity"=0xc80,"Amperage"=0x0,"Current"=0xc80,"Voltage"=0x30cf,"Flags"=0x5})

 

Now powermanagement.bundle from keithpk really works for me and show battery status.

Battery.png

Link to comment
Share on other sites

i don't get it.

 

this is the original info.plist. what do i have to delete?

and add your code?

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>IOSMBusFamily</string>
<key>CFBundleIdentifier</key>
<string>com.apple.iokit.IOSMBusFamily</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>IOSMBusFamily</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1</string>
<key>IOKitPersonalities</key>
<dict/>
<key>OSBundleCompatibleVersion</key>
<string>1.0.0</string>
<key>OSBundleLibraries</key>
<dict>
	<key>com.apple.kpi.iokit</key>
	<string>8.0.0</string>
	<key>com.apple.kpi.libkern</key>
	<string>8.0.0</string>
	<key>com.apple.kpi.mach</key>
	<string>8.0.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>/

Link to comment
Share on other sites

  • 3 weeks later...

is not working right on my tiger im getting Current battery charge: 42949672% :) and the battery indicator keeps saying power source:power adapter no matter it is running on battery and always stays at 100% charge complete.

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
Hey slice,

 

Where do you get those reports where you start with | | |

 

Also, in the plist, do you actually replace the xml tags with yours or just replace the "IOKitPersonalities" portion of it?

 

thanks

reports made by

ioreg -l -x -w 2048 >ioreg.txt

 

Yes, I replace only "IOKitPersonalities"

Link to comment
Share on other sites

  • 8 months later...
  • 2 months later...
inku,

 

i have the same problem as you. my battery displays ridiculous percentages (like -400500%). Please reply if u find a fix for it or email me

 

havok310@gmail.com

as you can see this post is really old and by then i was on a different machine and running tiger.You should try voodoobattery or any other power management fix it might help.

Link to comment
Share on other sites

  • 4 months later...
  • 5 months later...

I have an Asus G60Vx laptop. used Empire EFI 1.08 to install 10.6 and updated to 10.6.3 and using chameleon 2 RC4. I have everything working now except the power management and battery monitoring. I'm still very new to this and would love a deeper explanation of your steps here or maybe a nudge in a different direction. This install I have working now would not have come to pass without the help of all the posts on this forum.

 

Thanks.

Link to comment
Share on other sites

  • 5 weeks later...

as others said before... a nice step-by-step explanation on how to accomplish this would be really appreciated... many of us don't have experience on editing plist files... please?

 

my battery icon shows charge and time, my problem is that instead of going 1 by 1%, it drops from 70 to 54% for example... it lasts what it should last, but I would like to know what percentage is left at any moment, and not when the icon decides to change =/

would this solution work for me?

thanks!

Link to comment
Share on other sites

 Share

×
×
  • Create New...