Jump to content

AppleACPIBatteryManager for Tiger and Leopard


418 posts in this topic

Recommended Posts

Hi quinielascom,

 

I don't know what caused the random kernel panic at turn off yet. The only thing I could thing of is ApplePowerSoruce. You can check your system to see if ApplePowerSource is installed. (Probably inside the ApplePlatform) If it is, just move it out of Extensions folder to see if it makes any difference.

 

Chun-Nan

 

I do double check and ApplePowerSource.kext is not inside AppleACPIPlatform.kext (plugins), thanks, for now i go to test AppleACPIBatteryManager b11 and after post here my results.

 

Regards.

 

Ahh, and here is "the standard install/uninstall procedure" that i always use (copied from any place in this forum that no remember now where is):

 

Howto: Battery Info

 

Install:

 

Delete first AppleACPIPowersource.kext in AppleACPIPlatform.kext

Copy the AppleACPIBatteryManager.kext into your extensions folder, or install with Kexthelper.

Copy PowerManagement.bundle original into /../../SystemConfiguration

Repair permisions...

 

Uninstall:

 

Remove and restore your original files.

Link to comment
Share on other sites

Thanks Chun-Nan! The information is now displaying correctly!

 

Battery Information:

 

Model Information:

Serial Number: Battery pack -L41IIX-LiON-

Manufacturer: Battery pack

Device name: L41IIX

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware Version: 0000

Hardware Revision: 0000

Cell Revision: 0000

Charge Information:

Charge remaining (mAh): 3468

Fully charged: Yes

Charging: No

Full charge capacity (mAh): 3468

Health Information:

Cycle count: 59

Condition: Good

Battery Installed: Yes

Amperage (mA): 0

Voltage (mV): 12529

 

System Power Settings:

 

AC Power:

System Sleep Timer (Minutes): 0

Disk Sleep Timer (Minutes): 10

Display Sleep Timer (Minutes): 20

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

 

Way to Go! :D

 

 

PS. I haven't cycled 59 times, I've cycled much more.

Link to comment
Share on other sites

Tried all the beta's but it give's me KP during boot up without the AC plugged in , with AC adapter connected it works fine as normal.... but i wan to use my

 

laptop sometimes without the AC connected....

 

Battery Information:

 

Model Information:

Serial Number: Sony Corp.--LION-

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): 8211

Fully charged: No

Charging: Yes

Full charge capacity (mAh): 8245

Health Information:

Cycle count: 0

Condition: Good

Battery Installed: Yes

Amperage (mA): 364

Voltage (mV): 8397

 

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 LAN: Yes

Display Sleep Uses Dim: Yes

Battery Power:

System Sleep Timer (Minutes): 10

Disk Sleep Timer (Minutes): 10

Display Sleep Timer (Minutes): 2

Display Sleep Uses Dim: Yes

Reduce Brightness: Yes

 

Hardware Configuration:

 

UPS Installed: No

 

AC Charger Information:

 

Connected: Yes

Charging: Yes

 

 

I'm using vanilla kernel(9.4.0), vanilla acpi (1.2.1) w/out acpipowersource.kext and vanilla powermanagementbundle.kext(136.0.0)

 

OSX 10.5.4 Vaio TX57GN.

 

My ioreg

 

| | |

| | +-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,0xe178,0xe178,0x0,0x1ce8,0x0,0x78,0x0,0xa,"","","LION","Sony Corp.")

| | | "IONameMatched" = "PNP0C0A"

| | | "IOClass" = "AppleACPIBatteryManager"

| | | "IONameMatch" = "PNP0C0A"

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

| | | "Battery Status" = (0x0,0x0,0xe178,0x20b6)

| | | }

| | |

| | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain 5>

| | {

| | "ManufacturerData" = <>

| | "ExternalConnected" = Yes

| | "CurrentCapacity" = 0x2035

| | "FullyCharged" = Yes

| | "ManufactureDate" = 0x0

| | "Amperage" = 0x0

| | "LegacyBatteryInfo" = {"Capacity"=0x2035,"Voltage"=0x20b6,"Flags"=0x5,"Current"=0x2035,"Amperage"=0x0,"Cycle Count"=0x0}

| | "BatteryInstalled" = Yes

| | "DeviceName" = ""

| | "BatteryInvalidWakeSeconds" = 0x1e

| | "AvgTimeToFull" = 0xffff

| | "ExternalChargeCapable" = No

| | "Type" = "LION"

| | "AvgTimeToEmpty" = 0xffff

| | "DesignCapacity" = 0x2035

| | "PostDischargeWaitSeconds" = 0x78

| | "CellVoltage" = (0xae7,0xae7,0xae8,0x0)

| | "Temperature" = 0x0

| | "Serial" = ""

| | "Manufacturer" = "Sony Corp."

| | "SerialNumber" = 0x0

| | "InstantAmperage" = 0x0

| | "BatterySerialNumber" = "Sony Corp.--LION-"

| | "CycleCount" = 0x0

| | "Voltage" = 0x20b6

| | "IsCharging" = No

| | "InstantTimeToEmpty" = 0xffff

| | "Quick Poll" = No

| | "TimeRemaining" = 0xffff

| | "PostChargeWaitSeconds" = 0x78

| | "MaxErr" = 0x0

| | "MaxCapacity" = 0x2035

| | "AdapterInfo" = 0x1

| | "Location" = 0x1

| | "IOGeneralInterest" = "IOCommand is not serializable"

| | }

Link to comment
Share on other sites

Now it shows the icon again. I still have nothing in system profiler. The same "problem with gathering information" error.

But it does show the time remaining for charging!

Here is the ioreg log with b11:

		| +-o BAT0  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
   | | | {
   | | |   "_UID" = "0"
   | | |   "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"
   | |   |   "Battery Information" = (0x1,0x1130,0x105d,0x1,0x39d0,0x29,0x29,0x82,0x8,"	 ","00001","LiON","OEM")
   | |   |   "IONameMatched" = "PNP0C0A"
   | |   |   "IOClass" = "AppleACPIBatteryManager"
   | |   |   "IONameMatch" = "PNP0C0A"
   | |   |   "IOPowerManagement" = {"CurrentPowerState"=0x1}
   | |   |   "Battery Status" = (0x2,0x244,0xffb,0x4194)
   | |   | }
   | |   | 
   | |   +-o AppleACPIBatteryDevice  <class AppleACPIBatteryDevice, registered, matched, active, busy 0, retain 5>
   | |	   {
   | |		 "ManufacturerData" = <>
   | |		 "ExternalConnected" = Yes
   | |		 "CurrentCapacity" = 0xffb
   | |		 "FullyCharged" = No
   | |		 "ManufactureDate" = 0x0
   | |		 "Amperage" = 0x244
   | |		 "LegacyBatteryInfo" = {"Capacity"=0x105d,"Voltage"=0x4194,"Flags"=0x7,"Current"=0xffb,"Amperage"=0x244,"Cycle Count"=0x17}
   | |		 "BatteryInstalled" = Yes
   | |		 "DeviceName" = "	 "
   | |		 "BatteryInvalidWakeSeconds" = 0x1e
   | |		 "AvgTimeToFull" = 0xa
   | |		 "ExternalChargeCapable" = Yes
   | |		 "Type" = "LiON"
   | |		 "AvgTimeToEmpty" = 0xffff
   | |		 "DesignCapacity" = 0x1130
   | |		 "PostDischargeWaitSeconds" = 0x78
   | |		 "CellVoltage" = (0x15dc,0x15dc,0x15dc,0x0)
   | |		 "Temperature" = 0x1065
   | |		 "Serial" = "00001"
   | |		 "Manufacturer" = "OEM"
   | |		 "SerialNumber" = 0x0
   | |		 "InstantAmperage" = 0x244
   | |		 "BatterySerialNumber" = "OEM-	 -LiON-00001"
   | |		 "CycleCount" = 0x17
   | |		 "Voltage" = 0x4194
   | |		 "IsCharging" = Yes
   | |		 "InstantTimeToEmpty" = 0xffff
   | |		 "Quick Poll" = No
   | |		 "TimeRemaining" = 0xa
   | |		 "PostChargeWaitSeconds" = 0x78
   | |		 "MaxErr" = 0x0
   | |		 "MaxCapacity" = 0x105d
   | |		 "AdapterInfo" = 0x0
   | |		 "Location" = 0x0
   | |		 "IOGeneralInterest" = "IOCommand is not serializable"
   | |	   }

Link to comment
Share on other sites

Tried all the beta's but it give's me KP during boot up without the AC plugged in , with AC adapter connected it works fine as normal.... but i wan to use my

 

laptop sometimes without the AC connected....

 

.....

 

HI neos,

 

I have changed AppleACPIBattery class to AppleACPIBatteryDevice class on b11 edition. You can give b11 edition a try to see if it makes any difference. Thanks.

 

CHun-Nan

 

Now it shows the icon again. I still have nothing in system profiler. The same "problem with gathering information" error.

But it does show the time remaining for charging!

Here is the ioreg log with b11:

.....

 

Hi frauhottelmann,

 

Which version of PowerManagement are you using now? Make sure you are using the original one.

 

Ok well there's a clue, mine is 168kb. Perhaps pull the original from the Retail Leo DVD?

 

Hi gord0001a,

 

If you are going to get the file from MacOSXUpdCombo10.5.4, be aware that the PowerManagement inside MacOSXUpdCombo10.5.4.pkg is NOT complete. Make sure you have all necessary files inside the PowerManagement.

 

Chun-Nan

 

Also, thanks all for the feedbacks and for helping me test the AppleACPIBatteryManager. I appreciate it. :)

Link to comment
Share on other sites

Unzip

 

:excl: :excl: :excl: :excl: 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 :D ).

 

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::P

Thanks a lot... This has been very helpful. I can see my battery meter now. :D

Link to comment
Share on other sites

I have vanilla PowerManagement, vanilla AppleACPIPlatform without ACPIPowerSource and b11 of BatterManager...

 

All i see is a battery gauge with a "cross" in it. The drop down says something like "no battery installed".

 

My System is a IBM/Lenovo Thinkpad T60 (WITH battery :-D)

 

OS is Leopard 10.5.4 with vanilla Kernel 9.4.0. Everythink except the internal Keyboard/Mouse and Powermanagement ist working great. Do you have any ideas what i can check to get it working?

 

greetz, phil

 

ps: sorry 4 bad english ^_^

Link to comment
Share on other sites

Tried beta 11 and it's still the same , giving me KP during boot up without the AC connected......

 

But with AC connected to my laptop no problem at all , charging is fine info displays out also....

 

Well i did try another kext from Superhai ( ACPIBattery.kext ) and his kext works fine on my laptop without the AC conneted....

Link to comment
Share on other sites

I have vanilla PowerManagement, vanilla AppleACPIPlatform without ACPIPowerSource and b11 of BatterManager...

 

All i see is a battery gauge with a "cross" in it. The drop down says something like "no battery installed".

 

My System is a IBM/Lenovo Thinkpad T60 (WITH battery :-D)

 

OS is Leopard 10.5.4 with vanilla Kernel 9.4.0. Everythink except the internal Keyboard/Mouse and Powermanagement ist working great. Do you have any ideas what i can check to get it working?

 

greetz, phil

 

ps: sorry 4 bad english :rolleyes:

 

Hi pnu,

 

If possrible, can you post your ioreg_sp.txt here. Thanks.

 

Chun-Nan

 

Tried beta 11 and it's still the same , giving me KP during boot up without the AC connected......

 

But with AC connected to my laptop no problem at all , charging is fine info displays out also....

 

Well i did try another kext from Superhai ( ACPIBattery.kext ) and his kext works fine on my laptop without the AC conneted....

 

Hi neos,

 

I am not sure what caused your KP yet. If possible, can you post the KP of picture here. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Hi att all, i have tried your kext and it's wonderful.

 

Now i can see my battery info in mac info but.....my battery indicator is vanished.

 

How can i make return the little battery icon near the clock ?

 

Thx at all.

 

M'n'M

 

P.S. Sorry for my poor english

Link to comment
Share on other sites

Thanks a lot! This kext is awesome. I copied over the powermanagement.bundle from my Mac (just to make sure its totally vanilla, valid and complete), deleted the powersource kext from inside the vanilla acpiplatform.kext and used kext helper to install your kext. It worked instantly, without even requiring a reboot! Thanks again!

Link to comment
Share on other sites

 Share

×
×
  • Create New...