Help - Search - Members - Calendar
Full Version: Laptop battery is shown now
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > Other Peripheral Devices
Slice
Many users install PowerManagement.bundle and is happy. But not all! As mine. sad.gif

I found some new condition.
Edit IOSMBusFamily.kext/info,plist to have
CODE
    <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!
QUOTE
| | | | "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
QUOTE
| | +-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
QUOTE
| | +-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.
Behemoth Kat
thank you man,

i'll try tomorrow and report.

vnnet
it can show percent but can't show time. How can it show time?
Slice
QUOTE(vnnet @ Jun 16 2008, 12:29 AM) *
it can show percent but can't show time. How can it show time?

Time is shown without problems!
petezah
i don't get it.

this is the original info.plist. what do i have to delete?
and add your code?

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>/
inku
is not working right on my tiger im getting Current battery charge: 42949672% blink.gif and the battery indicator keeps saying power source:power adapter no matter it is running on battery and always stays at 100% charge complete.
extremeae
Hey all, I stumbled across this thread:

http://forum.insanelymac.com/index.php?sho...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.
nickhe
can you upload your IOSMBusFamily.kext/info,plist here ? smile.gif
nickhe
i couldn't make work here's my ioreg Click to view attachment
Slice
QUOTE(nickhe @ Sep 10 2008, 12:42 AM) *
i couldn't make work here's my ioreg Click to view attachment

I have not find SMBus in your config ( "class-code" = <00050c00>)!
Try other solutions.
nickhe
i've tried all of them acording to Chen nan it thinks i got 2 battery when i only have one
jbourassa
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
Slice
QUOTE(jbourassa @ Oct 3 2008, 10:38 PM) *
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"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.