AppleACPIBatteryManager for Tiger and Leopard, (UPDATE: 10/25/2008) Showing battery meter on your notebook |
AppleACPIBatteryManager for Tiger and Leopard, (UPDATE: 10/25/2008) Showing battery meter on your notebook |
|
~Eureka
InsanelyMac Sage
|
![]() |
Jul 5 2008, 02:31 PM Post #1
|
![]() ![]() ![]() ![]() ![]() ![]()
|
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. 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 =====
PowerManagement.original.zip ( 224.78K )
Number of downloads: 4929(only English) ===== Update: 7/6/2008 1. Using "fCurrentVoltage" to FAKE "fCurrentRate" if "fCurrentRate" is read as 0.
AppleACPIBatteryManager.zip ( 182.06K )
Number of downloads: 289UPDATE: 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
AppleACPIBatteryManagerb2.zip ( 206.74K )
Number of downloads: 111UPDATE: 7/9/2008 1. Make sure "fMaxCapacity" is always equal to or larger than "fCurrentCapacity".
AppleACPIBatteryManager_b3.zip ( 509.08K )
Number of downloads: 83UPDATE: 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.
AppleACPIBatteryManager_b4.zip ( 218.71K )
Number of downloads: 135UPDATE: 7/11/2008 1. Cleaned up some unused codes. 2. Tried to fix the percentage issue.
AppleACPIBatteryManager_b5.zip ( 467.69K )
Number of downloads: 72UPDATE: 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)
AppleACPIBatteryManager_b6.zip ( 324.82K )
Number of downloads: 255UPDATE: 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)
AppleACPIBatteryManager_b7.zip ( 426.92K )
Number of downloads: 75UPDATE: 7/21/2008 1. Tried to fix more than one battery bay issue by using "_STA" flag. (need feedbacks)
AppleACPIBatteryManager_b8.zip ( 217.69K )
Number of downloads: 282UPDATE: 7/26/2008 1. Added CycleCount caculation and CellVoltages information. (need feedbacks)
AppleACPIBatteryManager_b9.zip ( 478.22K )
Number of downloads: 71UPDATE: 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.
AppleACPIBatteryManager_b10.zip ( 220.23K )
Number of downloads: 139UPDATE: 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.)
AppleACPIBatteryManager_b11.zip ( 220.65K )
Number of downloads: 399UPDATE: 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.
AppleACPIBatteryManager_b12.zip ( 223.45K )
Number of downloads: 232UPDATE: 8/15/2008 1. Fixed long "Calculating" problem.
AppleACPIBatteryManager_b13.zip ( 348.12K )
Number of downloads: 499UPDATE: 8/22/2008 1. Tried to fix more than one battery bay issue while ApplePowerSource is also installed at the same time. (need feedbacks)
AppleACPIBatteryManager_b14.zip ( 222.46K )
Number of downloads: 1736UPDATE: 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.
AppleACPIBatteryManager_b15.zip ( 450.24K )
Number of downloads: 9244 |
Chun-Nan AppleACPIBatteryManager for Tiger and Leopard Jul 5 2008, 02:31 PM
Slice Good work, Chun-Nan!
It's a pity I alread... Jul 5 2008, 09:54 PM
ivik Wow. Thanks. It works perfect on Acer Travelmate. ... Jul 6 2008, 02:41 PM
macgirl Chun-nan Battery indicator is showing fine, calcul... Jul 6 2008, 06:23 PM
Chun-Nan QUOTE (macgirl @ Jul 6 2008, 12:23 PM) Ch... Jul 6 2008, 07:13 PM
sonotone QUOTE (Chun-Nan @ Jul 6 2008, 09:13 ... Jul 10 2008, 08:43 PM
truongsg Hi Chunnan,
Can u up origin Powermanagement.bundl... Jul 7 2008, 08:38 AM
sonotone Works well on Inspiron 9400;
Energy Saver Pane is... Jul 7 2008, 11:48 AM
Chun-Nan QUOTE (sonotone @ Jul 7 2008, 05:48 AM) W... Jul 7 2008, 07:49 PM
sonotone QUOTE (Chun-Nan @ Jul 7 2008, 09:49 ... Jul 8 2008, 07:55 AM
outZider Lenovo ThinkPad T61, 14" WXGA+, 4 cell batter... Jul 8 2008, 02:56 AM
Wiwi Beta 2 don't change percentage problem for me ... Jul 8 2008, 10:31 AM
robi62 Hi how do I Install it????? Jul 8 2008, 11:07 AM
Wiwi Unzip
be sure to delete ACPIPOwersource k... Jul 8 2008, 12:48 PM
robi62 Ill do that as soon as I get new battery
thanks fo... Jul 8 2008, 01:56 PM
xfidelity sweet i'm gonna test it out now
what i have... Jul 8 2008, 04:20 PM
eraserhead77 QUOTE (xfidelity @ Jul 8 2008, 06:20 AM) ... Jul 11 2008, 01:13 AM
Wiwi POst your system power information to see why your... Jul 9 2008, 12:52 PM
xfidelity does not show anything helpful :s
CODEBattery Inf... Jul 9 2008, 02:10 PM
Chun-Nan Hi guys,
I have updated b3 edition. It will make... Jul 9 2008, 04:45 PM
xfidelity tried b3 and still the same result. i'm sure e... Jul 9 2008, 05:28 PM
Chun-Nan QUOTE (xfidelity @ Jul 9 2008, 11:28 AM) ... Jul 10 2008, 12:43 AM
extremeae Great work! I got it to work and the battery ... Jul 10 2008, 06:07 AM
BugsBunny QUOTE (Chun-Nan @ Jul 10 2008, 02:43... Jul 11 2008, 08:47 AM
Chun-Nan QUOTE (inku @ Jul 10 2008, 11:54 PM) I tr... Jul 12 2008, 04:41 AM
BugsBunny QUOTE (Chun-Nan @ Jul 12 2008, 06:41... Jul 12 2008, 01:14 PM
Wiwi Still same pb with b3:
Informations sur le modl... Jul 9 2008, 06:20 PM
BugsBunny Hi Master Chun-Nan
here's my report: b3 work... Jul 9 2008, 11:27 PM
inku Hi i tryied on Tiger but the kext won't load a... Jul 10 2008, 01:04 AM
xfidelity i got this
AppleACPIBattery: Battery found
AppleA... Jul 10 2008, 10:20 AM
Chun-Nan QUOTE (inku @ Jul 9 2008, 07:04 PM) Hi i ... Jul 11 2008, 02:01 AM
Wiwi QUOTE The values of 3828 and 4212 are read from yo... Jul 10 2008, 08:54 PM
eraserhead77 Tried the b4, still no changes for me, 100% charge... Jul 11 2008, 03:29 AM
inku QUOTE (Chun-Nan @ Jul 10 2008, 10:01... Jul 11 2008, 05:54 AM
extremeae Wohoo! I finally got the battery to work now,... Jul 11 2008, 06:41 AM
Chun-Nan QUOTE (extremeae @ Jul 11 2008, 12:41 AM)... Jul 12 2008, 06:05 PM
Wiwi Beta 4 donesn't change anything for me...Alway... Jul 11 2008, 09:55 AM
frauhottelmann Now it does show the icon in the top bar and the c... Jul 11 2008, 02:22 PM
SD Geek I'm using b4 and getting interesting output on... Jul 12 2008, 05:20 AM
frauhottelmann QUOTE Hi frauhottelmann,
If possible, can you pos... Jul 12 2008, 08:51 AM
nickhe mine says that the kext was put incorrectly when i... Jul 12 2008, 10:10 AM
dong not working on thinkpad T60, it seems only working... Jul 12 2008, 04:18 PM
eraserhead77 Chun-Nan, here is my log, I'm running 10.5.4 o... Jul 12 2008, 07:23 PM
Chun-Nan QUOTE (eraserhead77 @ Jul 12 2008, 01:23 ... Jul 13 2008, 05:28 AM
SD Geek Here's my ioreg info. It's showing two bat... Jul 12 2008, 08:11 PM
guilliamo Beta 4 Looks good on my HP DV9230US:
Battery Info... Jul 12 2008, 08:41 PM
pavement714 finally, a battery solution that works on my lapto... Jul 12 2008, 09:34 PM
outZider Installed b4, still not valid in System Profiler, ... Jul 12 2008, 11:39 PM
SD Geek Interesting data point. If I boot a vanilla OS X 1... Jul 13 2008, 01:51 AM
dong CODE | | +-o AppleACPIBatteryManager <class Ap... Jul 13 2008, 03:01 AM
frauhottelmann Strange, there are only two lines about the Batter... Jul 13 2008, 10:22 AM
dong QUOTE (frauhottelmann @ Jul 13 2008, 06:2... Jul 13 2008, 03:30 PM
eraserhead77 Chun-Nan, latest build is working perfectly. Fixe... Jul 13 2008, 11:23 AM
frauhottelmann Still nothing with latest build. But the battery i... Jul 13 2008, 03:07 PM
frauhottelmann Oh OK, thanks! I'll do that! I used th... Jul 13 2008, 03:41 PM
romanskij Hello!
The beta 5 release works perfect for m... Jul 13 2008, 06:17 PM
Wiwi QUOTE Chun-Nan, latest build is working perfectly.... Jul 13 2008, 08:04 PM
xfidelity b5 fixed the percentage for me but it still show p... Jul 13 2008, 10:54 PM
quinielascom Thanks Chun-Nan, now Battery Icon is working fine ... Jul 14 2008, 12:55 AM
Chun-Nan Hi SD Geek, dong, outZider, and xfidelity,
I have... Jul 14 2008, 04:16 AM
morphin999 Hi, I am a newbie. How to use this pkg?
replace t... Jul 14 2008, 04:32 AM
Chun-Nan QUOTE (morphin999 @ Jul 13 2008, 10:32 PM... Jul 14 2008, 04:35 AM
morphin999 Thanks for the quick response.
How do i open the... Jul 14 2008, 04:43 AM
eraserhead77 Great work again Chun-Nan, this is working fine an... Jul 14 2008, 04:41 AM
quinielascom QUOTE (quinielascom @ Jul 14 2008, 12:55 ... Jul 14 2008, 06:04 AM
romanskij Hello.
I was too early been pleased!
Have st... Jul 14 2008, 06:48 AM
frauhottelmann OK, now I finally have the correct part of iolog. ... Jul 14 2008, 06:53 AM
bozon42 Hello Chun-Nan,
I can confirm that b5 version of ... Jul 14 2008, 07:08 AM
xfidelity b6 still is the same. tell me what you need and i... Jul 14 2008, 09:31 AM
Wiwi Beta6 gives me hang on shutdown, restore b5 and wo... Jul 14 2008, 08:42 PM
dong Sorry that last time I'm not using vanilla Pow... Jul 15 2008, 12:10 AM
Chun-Nan QUOTE (dong @ Jul 14 2008, 05:10 PM) Sorr... Jul 21 2008, 06:29 AM
osxfr Hi Chun-Nan,
Beta 7 gave me a kernel panic, I did... Jul 21 2008, 08:46 AM

Chun-Nan QUOTE (osxfr @ Jul 21 2008, 02:46 AM) Hi ... Jul 21 2008, 05:41 PM

osxfr QUOTE (Chun-Nan @ Jul 21 2008, 07:41... Jul 21 2008, 06:53 PM

extremeae I re-installed Leo4Allv3, and this time without se... Jul 21 2008, 07:37 PM
T u r b o QUOTE (Chun-Nan @ Jul 21 2008, 06:29... Jul 21 2008, 01:09 PM
xfidelity the time should be decreasing during charge as it ... Jul 15 2008, 01:41 AM
dong Yes, you are right. I'm now in ubuntu, the tim... Jul 15 2008, 02:04 AM
bozon42 I think I have also som problem with displaying Ba... Jul 15 2008, 06:14 AM
outZider ThinkPad T61, b6. ioreg reports proper battery inf... Jul 15 2008, 05:00 PM
twobunnyrabbit Hi Chun-Nan
After updating my laptop to 10.5.4, th... Jul 16 2008, 11:20 AM
morphin999 Thanks, Chun-Nan. I have gone through this whole t... Jul 17 2008, 02:57 AM
lisette Thanks, Chun-Nan. Beta 6 is working properly on my... Jul 17 2008, 03:28 AM
SD Geek Chun-Nan,
I built and installed b6 with the same r... Jul 17 2008, 05:29 AM
paulicat The only issue I've found so far is after wake... Jul 17 2008, 03:47 PM
kytzu It fixed my bug, I see 100% now and not 83% as wit... Jul 17 2008, 03:57 PM
extremeae If someone can make this an install package, that ... Jul 17 2008, 09:22 PM
dong QUOTE (extremeae @ Jul 17 2008, 05:22 PM)... Jul 17 2008, 10:53 PM
extremeae QUOTE (dong @ Jul 17 2008, 03:53 PM) This... Jul 17 2008, 11:37 PM
jayman30 Working great on my Gateway Laptop, thanks a lot... Jul 18 2008, 12:18 AM
morphin999 Chun-Nan, I found a simple solution to show the ba... Jul 18 2008, 02:32 AM
T u r b o For Thinkpad owners (T61 specifically) I added thi... Jul 18 2008, 09:30 PM
osxfr QUOTE (T u r b o @ Jul 18 2008, 11:30 PM)... Jul 19 2008, 06:44 PM
dong Turbo, thanks for this. But does it solve the AC d... Jul 18 2008, 09:33 PM
T u r b o QUOTE (dong @ Jul 18 2008, 09:33 PM) Turb... Jul 19 2008, 04:44 AM
quinielascom Hi, someone has working AppleACPIBatteryManager.ke... Jul 19 2008, 01:25 AM
Chun-Nan Hi guys,
Sorry that I was out of this week but wi... Jul 20 2008, 03:57 AM
mrheat After restoring PowerManagement.bundle and vanilla... Jul 21 2008, 07:07 AM
xfidelity hey turbo, can you post the kext? Jul 21 2008, 02:07 PM ![]() |
|
Lo-Fi Version | Time is now: 9th September 2010 - 07:45 AM |