Jump to content

AppleACPIBatteryManager for Tiger and Leopard


418 posts in this topic

Recommended Posts

The values of 3828 and 4212 are read from your BIOS/ACPI table.

 

Chun-Nan

 

 

That means there is a BIOS/ACPI error ??

Strange...I haven't this issue with hacked PM and ACPIPowersource... There is any solution to force good reading ??

MAc should read 0 instead of 3828.... (full charge)

 

Good news, time is very accurate on battery ! Just percentage, according to the precedents values...

 

Thanks !

Link to comment
Share on other sites

sweet :blink: i'm gonna test it out now

 

 

what i have found:

 

battery source is detected even though power adapter is plugged in,

displays "Calculation..." when power is plugged in

when battery is fully charged, it shows 83% full

the calculation is not very accurate

 

hope this will allow you know what bugs to fix for the new release

 

So far it works great for me, Thank you for this :D

 

The only thing I have noticed is I also read 83% when the battery is fully charged.

 

Battery Information:

 

 

 

Model Information:

 

Serial Number: Sony Corp.--0-0

 

Manufacturer: Sony Corp.

 

Device name:

 

Pack Lot Code: 0000

 

PCB Lot Code: 0000

 

Firmware Version: 0000

 

Hardware Revision: 0000

 

Cell Revision: 0000

 

Charge Information:

 

Charge remaining (mAh): 5220

 

Fully charged: Yes

 

Charging: No

 

Full charge capacity (mAh): 6264

 

Health Information:

 

Cycle count: 1

 

Condition: Good

 

Battery Installed: Yes

 

Amperage (mA): 0

 

Voltage (mV): 12555

Link to comment
Share on other sites

Hi i tryied on Tiger but the kext won't load at boot.

 

Hi inku,

 

I have uploaded b4 edition. You can give it a try. If it still cannot be loaded, you probably need to compile the source code yourself. (Make sure you don't have ApplePowerSource installed.)

 

Chun-Nan

 

i got this

 

AppleACPIBattery: Battery found

AppleACPIBattery: Battery State 0x02.

AppleACPIBattery: Battery is charging.

 

Hi xfidelity,

 

I have uploaded b4 edition. You can give it a try. If you are still not getting information like using other editions, check your ioreg_sp.txt and look for the information like:

 

| | +-o AppleACPIBatteryManager <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>

| | | {

| | | "IOProviderClass" = "IOACPIPlatformDevice"

| | | "IOProbeScore" = 0x0

| | | "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"

| | | "IOMatchCategory" = "IODefaultMatchCategory"

| | | "Battery Information" = (0x1,0x1130,0x1130,0x1,0x2b5c,0x1a4,0x9c,0x108,0xec4,"PA3399U ","3658Q","Li-Ion","TOSHIBA")

| | | "IONameMatched" = "PNP0C0A"

| | | "IOClass" = "AppleACPIBatteryManager"

| | | "IONameMatch" = "PNP0C0A"

| | | "IOPowerManagement" = {"CurrentPowerState"=0x1}

| | | "Battery Status" = (0x80,0x0,0x1130,0x2b5c)

| | | }

| | |

 

If possible, post your results here. Thanks.

 

Chun-Nan

 

That means there is a BIOS/ACPI error ??

Strange...I haven't this issue with hacked PM and ACPIPowersource... There is any solution to force good reading ??

MAc should read 0 instead of 3828.... (full charge)

 

Good news, time is very accurate on battery ! Just percentage, according to the precedents values...

 

Thanks !

 

Hi Wiwi,

 

Right now, I am not sure if it is really due to reading error or it just represents your battery's real capacity.

I have uploaded b4 edition. You can give it a try. Also, you can check battery informaiton on ioreg_sp.txt

 

Chun-Nan

Link to comment
Share on other sites

Hi inku,

 

I have uploaded b4 edition. You can give it a try. If it still cannot be loaded, you probably need to compile the source code yourself. (Make sure you don't have ApplePowerSource installed.)

 

Chun-Nan

I tried that too but still the same,did you got it to work on Tiger? If you did can you please post your files so i can give it a try.Thanks.

Link to comment
Share on other sites

Wohoo! I finally got the battery to work now, and nomore KP! Here's my info:

 

Battery Information:

 

Model Information:

Serial Number: Hewlett-Packard-Primary-0-0

Manufacturer: Hewlett-Packard

Device name: Primary

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware Version: 0000

Hardware Revision: 0000

Cell Revision: 0000

Charge Information:

Charge remaining (mAh): 4288

Fully charged: Yes

Charging: No

Full charge capacity (mAh): 4288

Health Information:

Cycle count: 1

Battery health: Fair

Battery Installed: Yes

Amperage (mA): 0

Voltage (mV): 12501

 

I'm not sure why my Battery Health says Fair. I hardly have the battery installed; it's always plugged straight into the AC outlet.

Link to comment
Share on other sites

Hi BugsBunny,

 

Great, it works. However, it is still beta version. Any feedbacks/bugs are welcome. :)

OkeeDoke - Bugs says, no Bugs .. :P

 

Chun-Nan, are you running a Toshiba Laptop? If so, which model?

Link to comment
Share on other sites

Beta 4 donesn't change anything for me...Always percentage/ChargeRemaining error... I was wondering, if it bios reading error... can it be caused by SMBios ? I use vanilla with enabler from SuperHai..

But hacked PM worked good...

 

[in FULL CHARGE]

 

Informations sur la charge :

Charge restante (mAh) : 3818

Charge complète : Oui

En cours de chargement : Non

Capacité de charge complète (mAh) : 4195

Link to comment
Share on other sites

I tried that too but still the same,did you got it to work on Tiger? If you did can you please post your files so i can give it a try.Thanks.

 

Hi inku,

 

That is odd. The files I use are the ones I posted. Which kernel of Tiger are you using now? Maybe you can compile the source code yourself to see if it will work.

 

Chun-Nan

 

OkeeDoke - Bugs says, no Bugs .. :)

 

Chun-Nan, are you running a Toshiba Laptop? If so, which model?

 

Hi BugsBunny,

 

Yes, I have 2 Toshiba notebooks. One is Satellite M100 and the other is Satellite M105. :P

 

Chun-Nan

 

Now it does show the icon in the top bar and the correct percentage, but in system profiler I get an error! It gets an error during information fetching!

 

Hi frauhottelmann,

 

If possible, can you post the error messages or pictures so that I can try to find out the reason? Thanks.

 

Chun-Nan

 

Tried the b4, still no changes for me, 100% charge reads as 83%

 

Hi eraserhead77 & Wiwi,

 

If possible, check your ioreg_sp.txt and look for the information as following: (Battery Information & Battery Status when the battery is full charged):

 

| | +-o AppleACPIBatteryManager <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>

| | | {

| | | "IOProviderClass" = "IOACPIPlatformDevice"

| | | "IOProbeScore" = 0x0

| | | "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"

| | | "IOMatchCategory" = "IODefaultMatchCategory"

| | | "Battery Information" = (0x1,0x1130,0x1130,0x1,0x2b5c,0x1a4,0x9c,0x108,0xec4,"PA3399U ","3658Q","Li-Ion","TOSHIBA")

| | | "IONameMatched" = "PNP0C0A"

| | | "IOClass" = "AppleACPIBatteryManager"

| | | "IONameMatch" = "PNP0C0A"

| | | "IOPowerManagement" = {"CurrentPowerState"=0x1}

| | | "Battery Status" = (0x80,0x0,0x1130,0x2b5c)

| | | }

| | |

 

Then post your resuts here. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

I'm using b4 and getting interesting output on my system (Dell Latitude D830 with vanilla 10.5 install updated to 10.5.4 via software update.) It appears that my battery is not even installed, but I'm typing this message on it and it's not plugged in to AC power. I get a battery icon and the time appears to be fairly accurate. Must be a practical upshot of global warming :)

 

Battery Information:

 Model Information:
 Serial Number:	XXXX-YYYY-0-0
 Pack Lot Code:	0000
 PCB Lot Code:	0000
 Firmware Version:	0000
 Hardware Revision:	0000
 Cell Revision:	0000
 Charge Information:
 Charge remaining (mAh):	0
 Fully charged:	No
 Charging:	No
 Full charge capacity (mAh):	0
 Health Information:
 Cycle count:	0
 Battery Installed:	No
 Amperage (mA):	0
 Voltage (mV):	0

Link to comment
Share on other sites

not working on thinkpad T60, it seems only working on Toshiba laptop.

Also my wireless network became unstable after this kext installed, some power manage problem?

Battery Information:

 Model Information:
 Serial Number:	XXXX-YYYY-0-0
 Pack Lot Code:	0000
 PCB Lot Code:	0000
 Firmware Version:	0000
 Hardware Revision:	0000
 Cell Revision:	0000
 Charge Information:
 Charge remaining (mAh):	0
 Fully charged:	No
 Charging:	No
 Full charge capacity (mAh):	0
 Health Information:
 Cycle count:	0
 Battery Installed:	No
 Amperage (mA):	0
 Voltage (mV):	0

System Power Settings:

 AC Power:
 System Sleep Timer (Minutes):	10
 Disk Sleep Timer (Minutes):	10
 Display Sleep Timer (Minutes):	10
 Automatic Restart On Power Loss:	No
 Wake On Clamshell Open:	Yes
 Display Sleep Uses Dim:	Yes
 Battery Power:
 System Sleep Timer (Minutes):	10
 Disk Sleep Timer (Minutes):	10
 Display Sleep Timer (Minutes):	2
 Wake On Clamshell Open:	Yes
 Display Sleep Uses Dim:	Yes
 Reduce Brightness:	Yes

Hardware Configuration:

 UPS Installed:	No

AC Charger Information:

 Connected:	Yes
 Charging:	No

Link to comment
Share on other sites

Wohoo! I finally got the battery to work now, and nomore KP! Here's my info:

 

.....

 

I'm not sure why my Battery Health says Fair. I hardly have the battery installed; it's always plugged straight into the AC outlet.

 

Hi extremeae,

 

That is what I found out on the source code related to how to determine the battery health.....

 

/* We must fend for ourselves and construct a poor/fair/good

estimate of battery health ourselves.

 

Our preferred formula says:

ratio = MaxCap / DesignCap

(ratio >= 80%) - Good Health

(ratio < 80%) && (CycleCount < 300) - Fair Health

 

A battery suffering permant battery failure will be labeled as 'Poor'

 

Always set Confidence to High Confidence.

*/

 

Chun-Nan

 

mine says that the kext was put incorrectly when i put it in right

 

 

Hi nickhe,

 

You probably need to check your file permission.

 

Chun-Nan

 

I'm using b4 and getting interesting output on my system (Dell Latitude D830 with vanilla 10.5 install updated to 10.5.4 via software update.) It appears that my battery is not even installed, but I'm typing this message on it and it's not plugged in to AC power. I get a battery icon and the time appears to be fairly accurate. Must be a practical upshot of global warming :(

 

.....

 

 

Hi SD Geek ,dong & frauhottelmann,

 

If possible, upload your ioreg result (or ioreg_sp.txt) containning the follow information:

 

| | +-o AppleACPIBatteryManager <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>

| | | {

| | | "IOProviderClass" = "IOACPIPlatformDevice"

| | | "IOProbeScore" = 0x0

| | | "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"

| | | "IOMatchCategory" = "IODefaultMatchCategory"

| | | "Battery Information" = (0x1,0x1130,0x1130,0x1,0x2b5c,0x1a4,0x9c,0x108,0xec4,"PA3399U ","3658Q","Li-Ion","TOSHIBA")

| | | "IONameMatched" = "PNP0C0A"

| | | "IOClass" = "AppleACPIBatteryManager"

| | | "IONameMatch" = "PNP0C0A"

| | | "IOPowerManagement" = {"CurrentPowerState"=0x1}

| | | "Battery Status" = (0x80,0x0,0x1130,0x2b5c)

| | | }

| | |

 

Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Chun-Nan, here is my log, I'm running 10.5.4 on a Sony TZ150. Installed from 10.5.2, then 10.5.3 Kalyway Combo update and Apples 10.5.4 update:

 

| | +-o AppleACPIBatteryManager <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>

| | | {

| | | "IOProviderClass" = "IOACPIPlatformDevice"

| | | "IOProbeScore" = 0x0

| | | "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"

| | | "IOMatchCategory" = "IODefaultMatchCategory"

| | | "Battery Information" = (0x0,0xf4b0,0xf4b0,0x0,0x2a30,0x0,0x78,0x0,0xa,"","","LION","Sony Corp.")

| | | "IONameMatched" = "PNP0C0A"

| | | "IOClass" = "AppleACPIBatteryManager"

| | | "IONameMatch" = "PNP0C0A"

| | | "IOPowerManagement" = {"CurrentPowerState"=0x1}

| | | "Battery Status" = (0x1,0x3bdc,0xbb08,0x2d62)

Link to comment
Share on other sites

Here's my ioreg info. It's showing two batteries, BAT0 & BAT1. BAT1 is an optional bay that has no battery in it. Maybe the System Profiler is picking the second battery rather than the first. Should it be showing info for both? Anyway, here's the output for both batteries.

   | +-o AC  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 6>
   | |   {
   | |     "name" = <414350493030303300>
   | |     "_STA" = 0xf
   | |   }
   | |   
   | +-o BAT0  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
   | | | {
   | | |   "_UID" = "1"
   | | |   "name" = <504e503043304100>
   | | |   "_STA" = 0x1f
   | | | }
   | | | 
   | | +-o AppleACPIBatteryManager  <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>
   | |   | {
   | |   |   "IOProviderClass" = "IOACPIPlatformDevice"
   | |   |   "IOProbeScore" = 0x0
   | |   |   "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"
   | |   |   "IOMatchCategory" = "IODefaultMatchCategory"
   | |   |   "Battery Information" = (0x1,0x1e78,0x1cb2,0x1,0x2b5c,0x30c,0xec,0x4e,0x4e,<44454c4c2059443632333800>,<32333200>,<4c494f4e00>,<534d5000>)
   | |   |   "IONameMatched" = "PNP0C0A"
   | |   |   "IOClass" = "AppleACPIBatteryManager"
   | |   |   "IONameMatch" = "PNP0C0A"
   | |   |   "IOPowerManagement" = {"CurrentPowerState"=0x1}
   | |   |   "Battery Status" = (0x1,0x7ef,0xc8c,0x2bb2)
   | |   | }
   | |   | 
   | |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 5>
   | |       {
   | |         "ManufacturerData" = <>
   | |         "ExternalConnected" = No
   | |         "CurrentCapacity" = 0xc8c
   | |         "FullyCharged" = No
   | |         "ManufactureDate" = 0x0
   | |         "Amperage" = 0xfffffffffffff7e2
   | |         "LegacyBatteryInfo" = {"Capacity"=0x1cb2,"Voltage"=0x2bb2,"Flags"=0x4,"Current"=0xc8c,"Amperage"=0xfffffffffffff7e2,"Cycle Count"=0x1}
   | |         "BatteryInstalled" = Yes
   | |         "AvgTimeToFull" = 0xffff
   | |         "BatteryInvalidWakeSeconds" = 0x1e
   | |         "ExternalChargeCapable" = Yes
   | |         "AvgTimeToEmpty" = 0x5c
   | |         "DesignCapacity" = 0x1e78
   | |         "PostDischargeWaitSeconds" = 0x78
   | |         "CellVoltage" = ()
   | |         "Temperature" = 0x0
   | |         "SerialNumber" = 0x0
   | |         "BatterySerialNumber" = "XXXX-YYYY-0-0"
   | |         "InstantAmperage" = 0xfffffffffffff811
   | |         "CycleCount" = 0x1
   | |         "Voltage" = 0x2bb2
   | |         "IsCharging" = No
   | |         "InstantTimeToEmpty" = 0x5e
   | |         "Quick Poll" = No
   | |         "TimeRemaining" = 0x5c
   | |         "PostChargeWaitSeconds" = 0x78
   | |         "MaxErr" = 0x1
   | |         "MaxCapacity" = 0x1cb2
   | |         "AdapterInfo" = 0x0
   | |         "Location" = 0x0
   | |         "IOGeneralInterest" = "IOCommand is not serializable"
   | |       }
   | |       
   | +-o BAT1  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
   | | | {
   | | |   "_UID" = "2"
   | | |   "name" = <504e503043304100>
   | | |   "_STA" = 0xf
   | | | }
   | | | 
   | | +-o AppleACPIBatteryManager  <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>
   | |   | {
   | |   |   "IOProviderClass" = "IOACPIPlatformDevice"
   | |   |   "IOProbeScore" = 0x0
   | |   |   "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"
   | |   |   "IOMatchCategory" = "IODefaultMatchCategory"
   | |   |   "IONameMatched" = "PNP0C0A"
   | |   |   "IOClass" = "AppleACPIBatteryManager"
   | |   |   "IONameMatch" = "PNP0C0A"
   | |   |   "IOPowerManagement" = {"CurrentPowerState"=0x1}
   | |   | }
   | |   | 
   | |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 5>
   | |       {
   | |         "PostDischargeWaitSeconds" = 0x78
   | |         "CurrentCapacity" = 0x0
   | |         "FullyCharged" = No
   | |         "CycleCount" = 0x0
   | |         "Voltage" = 0x0
   | |         "IsCharging" = No
   | |         "Amperage" = 0x0
   | |         "TimeRemaining" = 0x0
   | |         "PostChargeWaitSeconds" = 0x78
   | |         "BatteryInstalled" = No
   | |         "MaxCapacity" = 0x0
   | |         "BatteryInvalidWakeSeconds" = 0x1e
   | |         "AdapterInfo" = 0x0
   | |         "Location" = 0x0
   | |         "LegacyBatteryInfo" = {"Capacity"=0x0,"Voltage"=0x0,"Flags"=0x0,"Current"=0x0,"Amperage"=0x0,"Cycle Count"=0x0}
   | |         "IOGeneralInterest" = "IOCommand is not serializable"
   | |       }
   | |       

Link to comment
Share on other sites

Beta 4 Looks good on my HP DV9230US:

 

Battery Information:

 

Model Information:

Serial Number: Hewlett-Packard-Primary-0-0

Manufacturer: Hewlett-Packard

Device name: Primary

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware Version: 0000

Hardware Revision: 0000

Cell Revision: 0000

Charge Information:

Charge remaining (mAh): 4320

Fully charged: Yes

Charging: No

Full charge capacity (mAh): 4320

Health Information:

Cycle count: 1

Condition: Check battery

Battery Installed: Yes

Amperage (mA): 0

Voltage (mV): 16435

 

System Power Settings:

 

AC Power:

System Sleep Timer (Minutes): 0

Disk Sleep Timer (Minutes): 10

Display Sleep Timer (Minutes): 0

Automatic Restart On Power Loss: No

Wake On LAN: Yes

Display Sleep Uses Dim: Yes

Battery Power:

System Sleep Timer (Minutes): 60

Disk Sleep Timer (Minutes): 10

Display Sleep Timer (Minutes): 60

Display Sleep Uses Dim: Yes

Reduce Brightness: Yes

 

Hardware Configuration:

 

UPS Installed: No

 

AC Charger Information:

 

Connected: Yes

Charging: No

Link to comment
Share on other sites

Installed b4, still not valid in System Profiler, but ioreg shows it just fine. ThinkPads allow a battery in the drive bay on the right, hence the additional BAT1. Is the battery icon supposed to no longer show battery run down graphically?

 

Anyway, ioreg:

   | +-o BAT0  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
   | | | {
   | | |   "_UID" = "0"
   | | |   "name" = <"PNP0C0A">
   | | |   "_STA" = 31
   | | | }
   | | | 

   | | +-o AppleACPIBatteryManager  <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>
   | |   | {
   | |   |   "IOProviderClass" = "IOACPIPlatformDevice"
   | |   |   "IOProbeScore" = 0
   | |   |   "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"
   | |   |   "IOMatchCategory" = "IODefaultMatchCategory"
   | |   |   "Battery Information" = (0,37440,37480,1,14400,1874,200,1,1,<34325435323237000000000000000000>,<" 8254">,$
   | |   |   "IONameMatched" = "PNP0C0A"
   | |   |   "IOClass" = "AppleACPIBatteryManager"
   | |   |   "IONameMatch" = "PNP0C0A"
   | |   |   "IOPowerManagement" = {"CurrentPowerState"=1}
   | |   |   "Battery Status" = (0,0,37480,16570)
   | |   | }
   | |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 5>
   | |       {
   | |         "ManufacturerData" = <>
   | |         "ExternalConnected" = Yes
   | |         "CurrentCapacity" = 2342
   | |         "FullyCharged" = Yes
   | |         "ManufactureDate" = 0
   | |         "Amperage" = 0
   | |         "LegacyBatteryInfo" = {"Capacity"=2677,"Voltage"=16570,"Flags"=5,"Current"=2342,"Amperage"=0,"Cycle Cou$
   | |         "BatteryInstalled" = Yes
   | |         "AvgTimeToFull" = 65535
   | |         "BatteryInvalidWakeSeconds" = 30
   | |         "ExternalChargeCapable" = Yes
   | |         "AvgTimeToEmpty" = 65535
   | |         "DesignCapacity" = 2674
   | |         "PostDischargeWaitSeconds" = 120
   | |         "CellVoltage" = ()
   | |         "Temperature" = 0
   | |         "SerialNumber" = 0
   | |         "BatterySerialNumber" = "XXXX-YYYY-0-0"
   | |         "InstantAmperage" = 0
   | |         "CycleCount" = 1
   | |         "Voltage" = 16570
   | |         "IsCharging" = No
   | |         "InstantTimeToEmpty" = 65535
   | |         "Quick Poll" = No
   | |         "TimeRemaining" = 65535
   | |         "PostChargeWaitSeconds" = 120
   | |         "MaxErr" = 1
   | |         "MaxCapacity" = 2677
   | |         "AdapterInfo" = 0
   | |         "Location" = 0
   | |         "IOGeneralInterest" = "IOCommand is not serializable"
   | |       }
   | +-o BAT1  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
   | | | {
   | | |   "_UID" = "1"
   | | |   "name" = <"PNP0C0A">
   | | |   "_STA" = 15
   | | | }
   | | | 
   | | +-o AppleACPIBatteryManager  <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>
   | |   | {
   | |   |   "IOProviderClass" = "IOACPIPlatformDevice"
   | |   |   "IOProbeScore" = 0
   | |   |   "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"
   | |   |   "IOMatchCategory" = "IODefaultMatchCategory"
   | |   |   "IONameMatched" = "PNP0C0A"
   | |   |   "IOClass" = "AppleACPIBatteryManager"
   | |   |   "IONameMatch" = "PNP0C0A"
   | |   |   "IOPowerManagement" = {"CurrentPowerState"=1}
   | |   | }
   | |   | 
   | |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 5>
   | |       {
   | |         "PostDischargeWaitSeconds" = 120
   | |         "CurrentCapacity" = 0
   | |         "FullyCharged" = No
   | |         "CycleCount" = 0
   | |         "Voltage" = 0
   | |         "IsCharging" = No
   | |         "Amperage" = 0
   | |         "TimeRemaining" = 0
   | |         "PostChargeWaitSeconds" = 120
   | |         "BatteryInstalled" = No
   | |         "MaxCapacity" = 0
   | |         "BatteryInvalidWakeSeconds" = 30
   | |         "AdapterInfo" = 0
   | |         "Location" = 0
   | |         "LegacyBatteryInfo" = {"Capacity"=0,"Voltage"=0,"Flags"=0,"Current"=0,"Amperage"=0,"Cycle Count"=0}
   | |         "IOGeneralInterest" = "IOCommand is not serializable"
   | |       }
   | |       
   | +-o AC  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 6>
   | |   {
   | |     "_UID" = "0"
   | |     "name" = <"ACPI0003">
   | |     "_STA" = 15
   | |   }
   | |   

 

System Profiler:

Battery Information:

 Model Information:
 Serial Number:	XXXX-YYYY-0-0
 Pack Lot Code:	0000
 PCB Lot Code:	0000
 Firmware Version:	0000
 Hardware Revision:	0000
 Cell Revision:	0000
 Charge Information:
 Charge remaining (mAh):	0
 Fully charged:	No
 Charging:	No
 Full charge capacity (mAh):	0
 Health Information:
 Cycle count:	0
 Battery Installed:	No
 Amperage (mA):	0
 Voltage (mV):	0

System Power Settings:

 AC Power:
 System Sleep Timer (Minutes):	0
 Disk Sleep Timer (Minutes):	10
 Display Sleep Timer (Minutes):	10
 Automatic Restart On Power Loss:	No
 Wake On Clamshell Open:	Yes
 Display Sleep Uses Dim:	Yes
 Battery Power:
 System Sleep Timer (Minutes):	7
 Disk Sleep Timer (Minutes):	10
 Display Sleep Timer (Minutes):	2
 Wake On Clamshell Open:	Yes
 Display Sleep Uses Dim:	Yes
 Reduce Brightness:	No

Hardware Configuration:

 UPS Installed:	No

AC Charger Information:

 Connected:	No
 Charging:	No

Link to comment
Share on other sites

Interesting data point. If I boot a vanilla OS X 10.5 install DVD using the DFE loader with Chun-Nan's ACPI Battery Manager kext, the battery shows the discharge state graphically. It doesn't when I'm running a full install.

Link to comment
Share on other sites

	| | +-o AppleACPIBatteryManager  <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>
| |   | {
| |   |   "IOProviderClass" = "IOACPIPlatformDevice"
| |   |   "IOProbeScore" = 0x0
| |   |   "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"
| |   |   "IOMatchCategory" = "IODefaultMatchCategory"
| |   |   "Battery Information" = (0x0,0x14910,0x142da,0x1,0x2a30,0x1024,0xc8,0x1,0x1,<39325031313333000000000000000000>,<202039323600>,<4c494f4e00>,<50616e61736f6e696300303600000000>)
| |   |   "IONameMatched" = "PNP0C0A"
| |   |   "IOClass" = "AppleACPIBatteryManager"
| |   |   "IONameMatch" = "PNP0C0A"
| |   |   "IOPowerManagement" = {"CurrentPowerState"=0x1}
| |   |   "Battery Status" = (0x0,0x0,0x142da,0x30f8)
| |   | }
| |   | 
| |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 287>
| |	   {
| |		 "ManufacturerData" = <>
| |		 "ExternalConnected" = Yes
| |		 "CurrentCapacity" = 0x1ae7
| |		 "FullyCharged" = Yes
| |		 "ManufactureDate" = 0x0
| |		 "Amperage" = 0x0
| |		 "LegacyBatteryInfo" = {"Capacity"=0x2049,"Voltage"=0x30f8,"Flags"=0x5,"Current"=0x1ae7,"Amperage"=0x0,"Cycle Count"=0x1}
| |		 "BatteryInstalled" = Yes
| |		 "AvgTimeToFull" = 0xffff
| |		 "BatteryInvalidWakeSeconds" = 0x1e
| |		 "ExternalChargeCapable" = Yes
| |		 "AvgTimeToEmpty" = 0xffff
| |		 "DesignCapacity" = 0x20e8
| |		 "PostDischargeWaitSeconds" = 0x78
| |		 "CellVoltage" = ()
| |		 "Temperature" = 0x0
| |		 "SerialNumber" = 0x0
| |		 "BatterySerialNumber" = "XXXX-YYYY-0-0"
| |		 "InstantAmperage" = 0x0
| |		 "CycleCount" = 0x1
| |		 "Voltage" = 0x30f8
| |		 "IsCharging" = No
| |		 "InstantTimeToEmpty" = 0xffff
| |		 "Quick Poll" = No
| |		 "TimeRemaining" = 0xffff
| |		 "PostChargeWaitSeconds" = 0x78
| |		 "MaxErr" = 0x1
| |		 "MaxCapacity" = 0x2049
| |		 "AdapterInfo" = 0x0
| |		 "Location" = 0x0
| |	   }
| |	   
| +-o BAT1  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
| | | {
| | |   "_UID" = "1"
| | |   "name" = <504e503043304100>
| | |   "_STA" = 0xf
| | | }
| | | 
| | +-o AppleACPIBatteryManager  <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6>
| |   | {
| |   |   "IOProviderClass" = "IOACPIPlatformDevice"
| |   |   "IOProbeScore" = 0x0
| |   |   "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager"
| |   |   "IOMatchCategory" = "IODefaultMatchCategory"
| |   |   "IONameMatched" = "PNP0C0A"
| |   |   "IOClass" = "AppleACPIBatteryManager"
| |   |   "IONameMatch" = "PNP0C0A"
| |   |   "IOPowerManagement" = {"CurrentPowerState"=0x1}
| |   | }
| |   | 
| |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 287>
| |	   {
| |		 "PostDischargeWaitSeconds" = 0x78
| |		 "CurrentCapacity" = 0x0
| |		 "FullyCharged" = No
| |		 "CycleCount" = 0x0
| |		 "Voltage" = 0x0
| |		 "IsCharging" = No
| |		 "Amperage" = 0x0
| |		 "TimeRemaining" = 0x0
| |		 "PostChargeWaitSeconds" = 0x78
| |		 "BatteryInstalled" = No
| |		 "MaxCapacity" = 0x0
| |		 "BatteryInvalidWakeSeconds" = 0x1e
| |		 "AdapterInfo" = 0x0
| |		 "Location" = 0x0
| |		 "LegacyBatteryInfo" = {"Capacity"=0x0,"Voltage"=0x0,"Flags"=0x0,"Current"=0x0,"Amperage"=0x0,"Cycle Count"=0x0}
| |	   }
| |	   
| +-o AC  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 6>
| |   {
| |	 "_UID" = "0"
| |	 "name" = <414350493030303300>
| |	 "_STA" = 0xf
| |   }
| |   
| +-o HKEY  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 6>
| |   {
| |	 "name" = <49424d3030363800>
| |	 "_STA" = 0xf
| |   }
| |   
| +-o power-button  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 5>
| | | {
| | |   "device_type" = <706f7765722d627574746f6e00>
| | |   "IOInterruptControllers" = ("ACPIEventController")
| | |   "IOInterruptSpecifiers" = (<0200000000000000>)
| | | }
| | | 
| | +-o AppleACPIButton  <class AppleACPIButton, !registered, !matched, active, busy 0, retain 5>
| |	 {
| |	   "IOProviderClass" = "IOACPIPlatformDevice"
| |	   "IOProbeScore" = 0x0
| |	   "CFBundleIdentifier" = "com.apple.driver.AppleACPIButtons"
| |	   "IOMatchCategory" = "IODefaultMatchCategory"
| |	   "IONameMatched" = "power-button"
| |	   "IOClass" = "AppleACPIButton"
| |	   "IONameMatch" = ("PNP0C0C","power-button","PNP0C0E","sleep-button","APP000A")
| |	   "IOPowerManagement" = {"CurrentPowerState"=0x2}
| |	 }
| |	 
| +-o THM0  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 5>
| |   {
| |	 "device_type" = <746865726d616c2d7a6f6e6500>
| |   }
| |   
| +-o THM1  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 5>
| |   {
| |	 "device_type" = <746865726d616c2d7a6f6e6500>
| |   }

Link to comment
Share on other sites

Chun-Nan, here is my log, I'm running 10.5.4 on a Sony TZ150. Installed from 10.5.2, then 10.5.3 Kalyway Combo update and Apples 10.5.4 update:

 

.....

 

Hi eraserhead77,

 

I have uploaded b5 editon. Give it a try to see if the percentage changed.

 

Chun-Nan

 

Here's my ioreg info. It's showing two batteries, BAT0 & BAT1. BAT1 is an optional bay that has no battery in it. Maybe the System Profiler is picking the second battery rather than the first. Should it be showing info for both? Anyway, here's the output for both batteries.

.....

 

Hi SD Geek, dong & outZider,

 

Thanks for the data. I found that all of you have more than one battery bay. I think it might have something to do with the "blank" informaiton. I only have 1 battery bay on my notebook so I am not sure how to test it. However, I will look into it. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

 Share

×
×
  • Create New...