Help - Search - Members - Calendar
Full Version: AppleACPIBatteryManager for Tiger and Leopard
InsanelyMac Forum > OSx86 Project > New Releases and Updates
Pages: 1, 2, 3, 4, 5, 6, 7, 8
~Eureka
Hi guys,

Here is the beta AppleACPIBatteryManager I have been working on. It will work with original PowerManagement and you don't need AppleACPIPowerSource. Although some values may have "0" value, it should display "Time" and "Percentage" but I am not sue if it is accurate or not. Also, "Power source" should detect correctly and icon should change correctly. If you are using the notebook, you can give it a try.

It is based on original AppleSmartBatteryManager and linux driver. It should work both on Tiger and Leopard. (I used Tiger to compile the source code and it work on my 10.4.11 and 10.5.4)

Again, it is just the beta version and you need the original PowerManagement with it. Make sure that you don't have AppleACPIPowerSource Installed or it will cause error.

Chun-Nan

=====
Battery Information:

Model Information:
Serial Number: TOSHIBA-PA3399U -Li-Ion-3658Q
Manufacturer: TOSHIBA
Device name: PA3399U
Pack Lot Code: 0000
PCB Lot Code: 0000
Firmware Version: 0000
Hardware Revision: 0000
Cell Revision: 0000
Charge Information:
Charge remaining (mAh): 4400
Fully charged: Yes
Charging: No
Full charge capacity (mAh): 4400
Health Information:
Cycle count: 1
Condition: Good
Battery Installed: Yes
Amperage (mA): 0
Voltage (mV): 11100

=====
Click to view attachment (only English)
=====
Update: 7/6/2008
1. Using "fCurrentVoltage" to FAKE "fCurrentRate" if "fCurrentRate" is read as 0.

Click to view attachment

UPDATE: 7/7/2008
1. Using "fMaxCapacity" to FAKE "fCurrentRate" if "fCurrentRate" is read as 0.
2. Change battery dectection funcion. (battery inserted and removed)
2. Change poll time from 10 seconds to 30 seconds

Click to view attachment

UPDATE: 7/9/2008
1. Make sure "fMaxCapacity" is always equal to or larger than "fCurrentCapacity".

Click to view attachment

UPDATE: 7/10/2008
1. Added "Battery Information" and "Battery Status" so that it will show on ioreg.
2. Using "fMaxCapacity" to caculate remaning time while battery is charging.

Click to view attachment

UPDATE: 7/11/2008
1. Cleaned up some unused codes.
2. Tried to fix the percentage issue.

Click to view attachment

UPDATE: 7/13/2008
1. Serial Number will show type and serial number instead of 0 if it reads any data.
2. Tried to fix more than one battery bay issue by using "_UID" flag. (need feedbacks)

Click to view attachment

UPDATE: 7/21/2008
1. Tried to fix OSString/OSData issue on battery info. (need feedbacks)
2. Tried to fix more than one battery bay issue. (need feedbacks)

Click to view attachment

UPDATE: 7/21/2008
1. Tried to fix more than one battery bay issue by using "_STA" flag. (need feedbacks)

Click to view attachment

UPDATE: 7/26/2008
1. Added CycleCount caculation and CellVoltages information. (need feedbacks)
2. Added "SMBIOS Informaiton" table for MaxErr, SerialNumber, and ManufactureDate. (need feedbacks)

Click to view attachment

UPDATE: 7/29/2008
1. Using "fCurrentVoltage" to caculate temperature.
( [fCurrentVoltage * fCurrentRate] should be used to caculate temperature. However, when the battery is FULL, fCurrentRate will be 0 and will make temperature become 0. To make it simpe, just use fCurrentVoltage untill I find a better solution.)
2. Fixed wrong "Power Unit" issue.

Click to view attachment

UPDATE: 7/29/2008
1. Changed [class AppleACPIBattery] to [class AppleACPIBatteryDevice]. Hopefully, it will fix the random KP due to the duplicated class AppleACPIBattery while ApplePowerSource is also installed at the same time.
2. Tried to fix more than one battery bay issue by using "numBatteriesSupported()" first. When the returned value is more than 1, it will check "_STA" flag. Otherwise, it will skip the "_STA" flag check. Also, rewrote the "_STA" flag check function. (need feedbacks from those who has more than one battery bay in the notebook.)

Click to view attachment

UPDATE: 8/11/2008
1. Removed "_UID" flag and related function.
2. Improved battery inserted/removed detection function.
3. Set "fUnitFactor" to 1 if it is read/caculated as 0. (Make sure denominator is not 0)
4. Moved "setExternalChargeCapable" function from "setBatteryBIF" to "setBatteryBST" rountine.
5. Reset "fAverageRate" to 0 when the state of battery changes.

(Now it will show "Calculating" first, then "Time" later, while plugging in or pulling out the AC power, like my MacBook does. tongue.gif )

Click to view attachment


UPDATE: 8/15/2008
1. Fixed long "Calculating" problem.

Click to view attachment

UPDATE: 8/22/2008
1. Tried to fix more than one battery bay issue while ApplePowerSource is also installed at the same time. (need feedbacks)

Click to view attachment

UPDATE: 10/25/2008
1. Fixed the problem that battery meter doesn't show 100% after finished charging.
2. Changed to only read last three bit for "fCurrentRate" in case that the value read from ACPI table is too big.

Click to view attachment
Slice
Good work, Chun-Nan!
It's a pity I already resolve a problem with battery indicator. I have other related question. Have you sources of IOSMBusFamily?
I see you got battery information from registry if present. Full solution will be rewriting hardware access to battery through SMBus.
ivik
Wow. Thanks. It works perfect on Acer Travelmate. Everything looks correcty.
Battery Information:

Model Information:
Serial Number: SANYO -GC86508SAT0 -0-0
Manufacturer: SANYO
Device name: GC86508SAT0
Pack Lot Code: 0000
PCB Lot Code: 0000
Firmware Version: 0000
Hardware Revision: 0000
Cell Revision: 0000
Charge Information:
Charge remaining (mAh): 3597
Fully charged: Yes
Charging: No
Full charge capacity (mAh): 3597
Health Information:
Cycle count: 0
Condition: Good
Battery Installed: Yes
Amperage (mA): 0
Voltage (mV): 12484

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
Display Sleep Uses Dim: Yes
Battery Power:
System Sleep Timer (Minutes): 5
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 1
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes

Hardware Configuration:

UPS Installed: No

AC Charger Information:

Connected: Yes
Charging: No

macgirl
Chun-nan Battery indicator is showing fine, calculation on time is working, percentage is also working but on Energy Saver Pane is showing as 123% ohmy.gif I have a Super Baterry tongue.gif

Also I can't select Custom Scheme on Battery Icon Menu and pmset command on Terminal shows an error:
pmset -g
pmset: internal error!

Thanks biggrin.gif
~Eureka
QUOTE(macgirl @ Jul 6 2008, 12:23 PM) *
Chun-nan Battery indicator is showing fine, calculation on time is working, percentage is also working but on Energy Saver Pane is showing as 123% ohmy.gif I have a Super Baterry tongue.gif

Also I can't select Custom Scheme on Battery Icon Menu and pmset command on Terminal shows an error:
pmset -g
pmset: internal error!

Thanks biggrin.gif


Hi macgirl,

That is interesting that you got 123% on battery. If possible, can you post the "Power" information here like I did on the 1st post.

I can select "custom" on Battery icon on my machine. I am not sure if it is related or not but are you using the original powermanagement? About pmset, I didn't get the error when I use "pmset -g". However, I will check it.

Chun-Nan
truongsg
Hi Chunnan,

Can u up origin Powermanagement.bundle? Now indicator on my laptop is quite good, but I want to try this one.

Thanks,
sonotone
Works well on Inspiron 9400;
Energy Saver Pane is also showing battery as 123%, but hacked powermanagement.bunble showing as 113% smile.gif
QUOTE
Can u up origin Powermanagement.bundle? Now indicator on my laptop is quite good, but I want to try this one.

Extract it from 10.5.3 update with pacifist.
~Eureka
QUOTE(sonotone @ Jul 7 2008, 05:48 AM) *
Works well on Inspiron 9400;
Energy Saver Pane is also showing battery as 123%, but hacked powermanagement.bunble showing as 113% smile.gif

Extract it form 10.5.3 update with pacifist.


Hi sonotone,

I have updated b2 version. You can give it a try.

I think "123%" and "113%" probably have something to do with the values of "fMaxCapacity" or "fDesignCapacity" but I am not sure yet.

Chun-Nan
outZider
Lenovo ThinkPad T61, 14" WXGA+, 4 cell battery.
I, too, had a working battery indicator, but this looked pretty cool. Extracted vanilla AppleACPIPlatform.kext and PowerManagement.bundle, and installed the kext. I do have a battery/power meter again, but my Power panel is still odd:
CODE
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:    Yes
  Charging:    No
sonotone
QUOTE(Chun-Nan @ Jul 7 2008, 09:49 PM) *
Hi sonotone,

I have updated b2 version. You can give it a try.

I think "123%" and "113%" probably have something to do with the values of "fMaxCapacity" or "fDesignCapacity" but I am not sure yet.

Chun-Nan

Still at 123%, but i guess you're right, look:
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): 7200
Fully charged: Yes
Charging: No
Full charge capacity (mAh): 5852
Health Information:
Cycle count: 1
Condition: Good
Battery Installed: Yes
Amperage (mA): 0
Voltage (mV): 12542

7200 of 5852 is 123%. Full Charge capacity is not correctly displayed.
Wiwi
Beta 2 don't change percentage problem for me too :

Informations de la batterie :

Informations sur le modèle :
Nº de série : ASUSTEK-YYYY-0-0
Fabricant : ASUSTEK
Pack Lot Code : 0000
PCB Lot Code : 0000
Version du programme interne : 0000
Révision du matériel : 0000
Révision de pile : 0000
Informations sur la charge :
Charge restante (mAh) : 3769 ------> Charge remaining
Charge complète : Oui
En cours de chargement : Non
Capacité de charge complète (mAh) : 4112 --------> Full charge capacity
Informations sur la santé :
Comptage de cycles : 1
Conditions : Bonne
Batterie installée : Oui
Intensité de courant (mA) : 0
Tension (mV) : 12499

Thanks Chun-Nan !!!
robi62
Hi how do I Install it?????
Wiwi
Unzip

excl.gif excl.gif excl.gif excl.gif be sure to delete ACPIPOwersource kext (in ACPIPlatform if you have it) before (KP in perspective)

Search into the build->release folder and copy the AppleACPIBatteryManager kext into your extensions folder (use Kexthelper can be good biggrin.gif ).

Copy vanilla PowerManagement bundle into SystemConfiguration folder (The "/System/Library/" one), repair permissions in doubt, delete caches and reboot.

Test, and post your information (in system profiler) !

Then kiss Chun-Nan ! huh.gif tongue.gif
robi62
Ill do that as soon as I get new battery
thanks for info wink.gif
J o e l
sweet biggrin.gif 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
Wiwi
POst your system power information to see why your indicators are wrong !
J o e l
does not show anything helpful :s

CODE
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):    20
  Wake On Clamshell Open:    Yes
  Wake On LAN:    Yes
  Display Sleep Uses Dim:    Yes
  Battery Power:
  System Sleep Timer (Minutes):    15
  Disk Sleep Timer (Minutes):    10
  Display Sleep Timer (Minutes):    5
  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


~Eureka
Hi guys,

I have updated b3 edition. It will make sure "fMaxCapacity" is always equal to or larger than "fCurrentCapacity". It should fix the "percentage" issue on Energy Saver Panel.

BTW, the following inforamtion will always show 0 snice there is no data to be read.

Pack Lot Code: 0000
PCB Lot Code: 0000
Firmware Version: 0000
Hardware Revision: 0000
Cell Revision: 0000

Others will depend on your BIOS or ACPI table.

Chun-Nan

QUOTE(xfidelity @ Jul 9 2008, 08:10 AM) *
does not show anything helpful :s

[code]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

.....

Hi xfidelity,

It showed that you don't have battery installed. Which version of AppleACPIBatteryManager did you use? If possible, try b3 edition and post your information here again. (Make sure you are using the original PowerManagement) Thanks.

Chun-Nan
J o e l
tried b3 and still the same result. i'm sure every thing is original as i did a clean installation of leopard.

battery indicator works fine only when i use the powersource kext and the modified power management bundle
Wiwi
Still same pb with b3:

Informations sur le modèle :
Nº de série : ASUSTEK-YYYY-0-0
Fabricant : ASUSTEK
Pack Lot Code : 0000
PCB Lot Code : 0000
Version du programme interne : 0000
Révision du matériel : 0000
Révision de pile : 0000
Informations sur la charge :
Charge restante (mAh) : 3828
Charge complète : Oui
En cours de chargement : Non
Capacité de charge complète (mAh) : 4212

Informations sur la santé :
Comptage de cycles : 1
Conditions : Bonne
Batterie installée : Oui
Intensité de courant (mA) : 0 ----> negative value when unplug... normal ?
Tension (mV) : 12431


That's strange, coconutBatterry recognize good my battery it can say its original capacity !
But it it do the same error
BugsB
Hi Master Chun-Nan smile.gif

here's my report: b3 working perfectly with org bundle, Leo .3. With hacked bundle I got a hang @ shutdown/ restart with the Desktop still visible. So I stay with org bundle now.

Thanks a lot about this new masterpiece for the community thumbsup_anim.gif
~Eureka
QUOTE(xfidelity @ Jul 9 2008, 11:28 AM) *
tried b3 and still the same result. i'm sure every thing is original as i did a clean installation of leopard.

battery indicator works fine only when i use the powersource kext and the modified power management bundle


Hi xfidelity,

I have enabled the debug function to show the information (it is the same as b3). Try this one and go to terminal. Look for any information such as:

AppleACPIBattery: Battery found
AppleACPIBattery: Battery State 0x82.
AppleACPIBattery: Battery is charging.

Then post yours here so that I can try to find out the reason. Thanks.

Click to view attachment

QUOTE(Wiwi @ Jul 9 2008, 12:20 PM) *
Still same pb with b3:

Informations sur le modèle :
Nº de série : ASUSTEK-YYYY-0-0
Fabricant : ASUSTEK
Pack Lot Code : 0000
PCB Lot Code : 0000
Version du programme interne : 0000
Révision du matériel : 0000
Révision de pile : 0000
Informations sur la charge :
Charge restante (mAh) : 3828
Charge complète : Oui
En cours de chargement : Non
Capacité de charge complète (mAh) : 4212

Informations sur la santé :
Comptage de cycles : 1
Conditions : Bonne
Batterie installée : Oui
Intensité de courant (mA) : 0 ----> negative value when unplug... normal ?
Tension (mV) : 12431


That's strange, coconutBatterry recognize good my battery it can say its original capacity !
But it it do the same error


Hi Wiwi,

Yes, according to my Apple Macbook, it will show negative value while power cord is not plugged.

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

Chun-Nan

QUOTE(BugsBunny @ Jul 9 2008, 05:27 PM) *
Hi Master Chun-Nan smile.gif

here's my report: b3 working perfectly with org bundle, Leo .3. With hacked bundle I got a hang @ shutdown/ restart with the Desktop still visible. So I stay with org bundle now.

Thanks a lot about this new masterpiece for the community thumbsup_anim.gif


Hi BugsBunny,

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

Chun-Nan
inku
Hi i tryied on Tiger but the kext won't load at boot.
extremeae
Great work! I got it to work and the battery meter to show up, but then if I select to view in Time or Charging or something, I can't remember correctly, I got a kernal panic and the system just freezes.

Am I doing something wrong here?

Update: I reread post #13 by Wiwi and I saw this: delete ACPIPOwersource kext (in ACPIPlatform if you have it) before (KP in perspective). So I missed that step that's why I was getting KP. I couldn't locate ACPIPOwersource kext, but after googling, I saw that ACPIPOwersource kext was still in AppleACPIPlatform.
J o e l
i got this

AppleACPIBattery: Battery found
AppleACPIBattery: Battery State 0x02.
AppleACPIBattery: Battery is charging.
sonotone
QUOTE(Chun-Nan @ Jul 6 2008, 09:13 PM) *
Hi macgirl,

That is interesting that you got 123% on battery. If possible, can you post the "Power" information here like I did on the 1st post.

Fixed with B3.
THX.
Wiwi
QUOTE
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 !
eraserhead77
QUOTE(xfidelity @ Jul 8 2008, 06:20 AM) *
sweet biggrin.gif 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 biggrin.gif

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
~Eureka
QUOTE(inku @ Jul 9 2008, 07:04 PM) *
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

QUOTE(xfidelity @ Jul 10 2008, 04:20 AM) *
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

QUOTE(Wiwi @ Jul 10 2008, 02:54 PM) *
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
eraserhead77
Tried the b4, still no changes for me, 100% charge reads as 83%
inku
QUOTE(Chun-Nan @ Jul 10 2008, 10:01 PM) *
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.
extremeae
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.
BugsB
QUOTE(Chun-Nan @ Jul 10 2008, 02:43 AM) *
Hi BugsBunny,

Great, it works. However, it is still beta version. Any feedbacks/bugs are welcome. smile.gif
OkeeDoke - Bugs says, no Bugs .. tongue.gif

Chun-Nan, are you running a Toshiba Laptop? If so, which model?
Wiwi
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
frauhottelmann
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!
~Eureka
QUOTE(inku @ Jul 10 2008, 11:54 PM) *
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

QUOTE(BugsBunny @ Jul 11 2008, 02:47 AM) *
OkeeDoke - Bugs says, no Bugs .. tongue.gif

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. tongue.gif

Chun-Nan

QUOTE(frauhottelmann @ Jul 11 2008, 08:22 AM) *
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

QUOTE(eraserhead77 @ Jul 10 2008, 09:29 PM) *
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
SD Geek
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 biggrin.gif

CODE

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

frauhottelmann
QUOTE
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


Could you kindly tell me how I can do that?
nickhe
mine says that the kext was put incorrectly when i put it in right
BugsB
QUOTE(Chun-Nan @ Jul 12 2008, 06:41 AM) *
Hi BugsBunny,

Yes, I have 2 Toshiba notebooks. One is Satellite M100 and the other is Satellite M105. tongue.gif
.. congrats .. angel.png
dong
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?
CODE
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
~Eureka
QUOTE(extremeae @ Jul 11 2008, 12:41 AM) *
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

QUOTE(nickhe @ Jul 12 2008, 04:10 AM) *
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

QUOTE(SD Geek @ Jul 11 2008, 11:20 PM) *
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 biggrin.gif

.....



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
eraserhead77
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)
SD Geek
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.
CODE

| +-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"
| | }
| |

guilliamo
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


pavement714
finally, a battery solution that works on my laptop

hp dv9335nr

thanks a lot
outZider
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:
CODE

| +-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:
CODE

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
SD Geek
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.
dong
CODE
| | +-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>
| | }
~Eureka
QUOTE(eraserhead77 @ Jul 12 2008, 01:23 PM) *
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

QUOTE(SD Geek @ Jul 12 2008, 02:11 PM) *
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.