Jump to content

Laptop battery is shown now


  • Please log in to reply
20 replies to this topic

#1
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,976 posts
  • Gender:Male
  • Location:Moscow
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&amp;0xffff0000</string>
			<key>IOProviderClass</key>
			<string>IOPCIDevice</string>
		</dict>
	</dict>
It works!

| | | | "compatible" = <"pci144d,b028","pci1002,4353","pciclass,0c0500">
| | | | "name" = "pci1002,4353"
| | | | }
| | | |
| | | +-o IOSMBusController <class IOSMBusController, !registered, !matched, active, busy 0, retain count 4>
| | | {
| | | "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 <class AppleACPIBattery, registered, matched, active, busy 0, retain count 121>
| | | {
| | | "Battery Present" = No
| | +-o AppleACPIBatteryHub <class AppleACPIBatteryHub, !registered, !matched, active, busy 0, retain count 6>
| | {
| | "IOMatchCategory" = "IODefaultMatchCategory"
| | "IOBatteryInfo" = ({"Capacity"=0x0,"Amperage"=0x0,"Current"=0x0,"Voltage"=0x0,"Flags"=0x0})

Now I have

| | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain count 9>
| | | {
| | | "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 <class AppleACPIBatteryHub, !registered, !matched, active, busy 0, retain count 6>
| | {
| | "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.

Attached Files



#2
Behemoth Kat

Behemoth Kat

    InsanelyMac Protégé

  • Members
  • Pip
  • 12 posts
thank you man,

i'll try tomorrow and report.

#3
vnnet

vnnet

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
it can show percent but can't show time. How can it show time?

#4
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,976 posts
  • Gender:Male
  • Location:Moscow

it can show percent but can't show time. How can it show time?

Time is shown without problems!

Attached Files



#5
petezah

petezah

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
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>/


#6
inku

inku

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
  • Gender:Male
  • Location:Puerto Rico
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.

#7
extremeae

extremeae

    InsanelyMac Protégé

  • Members
  • PipPip
  • 73 posts
Hey all, I stumbled across this thread:

http://forum.insanel...o...114105&st=0

I managed to get it working but I missed something so I had to redo my system. I'm going to play with it some more.

#8
nickhe

nickhe

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 365 posts
  • Gender:Male
  • Location:Where all the girls are sexy
can you upload your IOSMBusFamily.kext/info,plist here ? :)

#9
nickhe

nickhe

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 365 posts
  • Gender:Male
  • Location:Where all the girls are sexy
i couldn't make work here's my ioreg Attached File  ioreg.rtf   222.92KB   111 downloads

#10
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,976 posts
  • Gender:Male
  • Location:Moscow

i couldn't make work here's my ioreg Attached File  ioreg.rtf   222.92KB   111 downloads

I have not find SMBus in your config ( "class-code" = <00050c00>)!
Try other solutions.

#11
nickhe

nickhe

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 365 posts
  • Gender:Male
  • Location:Where all the girls are sexy
i've tried all of them acording to Chen nan it thinks i got 2 battery when i only have one

#12
jbourassa

jbourassa

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
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

#13
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,976 posts
  • Gender:Male
  • Location:Moscow

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"

#14
AlterDiaz

AlterDiaz

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts
can i use this for my aspireOne?

my aspireOne show battery indicator before,,,

don't know why, that indicator isn't my menu bar...

#15
.klimaxx

.klimaxx

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
this completely messed up my system! please, how do i get it back without having to reinstall osx? i have important files that i can't afford to lose.
god bless.

#16
havok310

havok310

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
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

#17
inku

inku

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
  • Gender:Male
  • Location:Puerto Rico

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.

#18
AntonDarmawan

AntonDarmawan

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Is this work for Snow Leo?

#19
jfmock350

jfmock350

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
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.

#20
Aardappel

Aardappel

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:The Netherlands
Can you attach it here please?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy