Jump to content

AppleACPIBatteryManager for Tiger and Leopard


418 posts in this topic

Recommended Posts

Strange, there are only two lines about the BatteryManager in the ioreg. I am attaching the whole log.

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

Link to comment
Share on other sites

Thanks Chun-Nan, now Battery Icon is working fine (i have 10.5.2 install) with you kext.

 

For me was necessary copy the PowerManagement.bundle original from 10.5.3 otherwise; kernel panic at turn off, (same failure with powermangement.bundle original from 10.5.2).

 

My system profile shows:

 

Información de la batería:

 

Información sobre el modelo:

Número de serie: SANYO-Chapala-0-0

Fabricante: SANYO

Nombre del dispositivo: Chapala

Pack Lot Code: 0000

PCB Lot Code: 0000

Versión del firmware: 0000

Revisión de hardware: 0000

Revisión de celda: 0000

Información sobre la carga:

Carga restante (mAh): 3260

Totalmente cargada: No

Cargando: Sí

Capacidad de plena carga (mAh): 3696

Información sobre el estado:

Número de ciclos: 1

Estado de la batería: Buena

Batería instalada: Sí

Amperaje (mA): 63768

Voltaje (mV): 12488

 

Regards.

Link to comment
Share on other sites

Hi SD Geek, dong, outZider, and xfidelity,

 

I have updated b6 version. It will use "_UID" to determine the locaiton. However, I only have one battery bay on my notebook. You can give it a try to see if it shows correct information. Let me know the result. Thanks.

 

Also, Serial Number section will show type and serial number instead of 0 if it reads any data.

 

Chun-Nan

Link to comment
Share on other sites

Hi, I am a newbie. How to use this pkg?

replace the kext file?

I tried it on my Acer 5570z-2297 running 10.4.8 and got a kernel panic.

Did I do anything wrong? I did repair the permissions.

 

Hi morphin999,

 

If you have ApplePowerSource installed on your Tiger, you may need to remove it. Also, you can use some tools such as kexthelper or others to install files.

 

I don't know if it will work on 10.4.8 Tiger since I used 10.4.11 to compile the source code. If possible, maybe you can post the kernel panic photo here. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Great work again Chun-Nan, this is working fine and pulling the Serial Number info instead of the 0 it was before.

 

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):	2436
 Fully charged:	No
 Charging:	No
 Full charge capacity (mAh):	6264
 Health Information:
 Cycle count:	1
 Condition:	Good
 Battery Installed:	Yes
 Amperage (mA):	-1502
 Voltage (mV):	10668

Link to comment
Share on other sites

Thanks for the quick response.

 

How do i open the kext folder? I will try to remove the ApplePowerSource.

 

Thanks.

 

Hi morphin999,

 

If you have ApplePowerSource installed on your Tiger, you may need to remove it. Also, you can use some tools such as kexthelper or others to install files.

 

I don't know if it will work on 10.4.8 Tiger since I used 10.4.11 to compile the source code. If possible, maybe you can post the kernel panic photo here. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Thanks Chun-Nan, now Battery Icon is working fine (i have 10.5.2 install) with you kext.

 

For me was necessary copy the PowerManagement.bundle original from 10.5.3 otherwise; kernel panic at turn off, (same failure with powermangement.bundle original from 10.5.2).

 

Still some random kernel panic at turn off.

 

While, i have enabled hardware monitor without icon but works (text and % only).

 

Hardware monitor in action:

 

post-178287-1216015435_thumb.png

 

Regards.

Link to comment
Share on other sites

Hello.

 

I was too early been pleased!

 

Have still a shutdown problem!

If the Powersuply don´t pluged in when I boot than the notebook hang at shutdown. :P

 

My Notebook is a Compal IFL90

This is my Battery information:

 

 Informationen zum Batteriemodell:
 Seriennummer:	Sanyo	 -PA3465U -Li-Ion-3658Q
 Hersteller:	Sanyo
 Gerätename:	PA3465U
 Pack Lot Code:	0000
 PCB Lot Code:	0000
 Firmware-Version:	0000
 Hardware-Version:	0000
 Batterieversion überprüfen:	0000
 Informationen zum Ladezustand:
 Verbleibende Ladung (in mAh):	2952
 Vollständig geladen:	Nein
 Batterie wird geladen:	Nein
 Volle Ladekapazität (in mAh):	7200
 Informationen zum Batteriezustand:
 Anzahl der Zyklen:	1
 Bedingung:	Gut
 Batterie ist installiert:	Ja
 Stromverbrauch (in mA):	-2400
 Spannung (in mV):	11100

Link to comment
Share on other sites

Hello Chun-Nan,

 

I can confirm that b5 version of your solution worked with original PowerManegement.bundle

on Acer5220 (Kalyway 10.5.1+Kalyway update 10.5.2+Kalyway Combo Update 10.5.3+Mac Update 10.5.4).

 

Thanks and congratulation for great work!

Good Macing!!:-)

 

bozon42

Link to comment
Share on other sites

Sorry that last time I'm not using vanilla Powermanagement.bundle.

You actually did a wonderful job. With vanilla 10.5.3 Powermanagement.bundle, b6 works great.

post-75935-1216080531.png

However, there are still problem in reading correct BatterySerialNumber. Also, the time displayed is decreasing instead of increasing during charge.

    | +-o BAT0  <class IOACPIPlatformDevice, registered, matched, active, busy 0, retain 7>
   | | | {
   | | |   "_UID" = "0"
   | | |   "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" = (0x0,0x14910,0x142e4,0x1,0x2a30,0x1025,0xc8,0x1,0x1,<39325031313333000000000000000000>,<202039323600>,<4c494f4e00>,<50616e61736f6e696300303600000000>)
   | |   |   "IONameMatched" = "PNP0C0A"
   | |   |   "IOClass" = "AppleACPIBatteryManager"
   | |   |   "IONameMatch" = "PNP0C0A"
   | |   |   "IOPowerManagement" = {"CurrentPowerState"=0x1}
   | |   |   "Battery Status" = (0x2,0x9f09,0x3dd6,0x2df0)
   | |   | }
   | |   | 
   | |   +-o AppleACPIBattery  <class AppleACPIBattery, registered, matched, active, busy 0, retain 5>
   | |       {
   | |         "ManufacturerData" = <>
   | |         "ExternalConnected" = Yes
   | |         "CurrentCapacity" = 0x62f
   | |         "FullyCharged" = No
   | |         "ManufactureDate" = 0x0
   | |         "Amperage" = 0xfcd
   | |         "LegacyBatteryInfo" = {"Capacity"=0x204a,"Voltage"=0x2df0,"Flags"=0x7,"Current"=0x62f,"Amperage"=0xfcd,"Cycle Count"=0x1}
   | |         "BatteryInstalled" = Yes
   | |         "AvgTimeToFull" = 0x63
   | |         "BatteryInvalidWakeSeconds" = 0x1e
   | |         "ExternalChargeCapable" = Yes
   | |         "AvgTimeToEmpty" = 0xffff
   | |         "DesignCapacity" = 0x20e8
   | |         "PostDischargeWaitSeconds" = 0x78
   | |         "CellVoltage" = ()
   | |         "Temperature" = 0x0
   | |         "SerialNumber" = 0x0
   | |         "BatterySerialNumber" = "XXXX-YYYY-ZZZZ-0000"
   | |         "InstantAmperage" = 0xfe7
   | |         "CycleCount" = 0x1
   | |         "Voltage" = 0x2df0
   | |         "IsCharging" = Yes
   | |         "InstantTimeToEmpty" = 0xffff
   | |         "Quick Poll" = No
   | |         "TimeRemaining" = 0x63
   | |         "PostChargeWaitSeconds" = 0x78
   | |         "MaxErr" = 0x1
   | |         "MaxCapacity" = 0x204a
   | |         "AdapterInfo" = 0x0
   | |         "Location" = 0x0
   | |         "IOGeneralInterest" = "IOCommand is not serializable"
   | |       }
   | |       
   | +-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 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"
   | |       }
   | |       
   | +-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

the time should be decreasing during charge as it shows you how much time is left before the battery is fully charged

 

anyway here's my ioreg

 

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

Link to comment
Share on other sites

Yes, you are right. I'm now in ubuntu, the time displayed is really for remaining time for a full charge. :thumbsup_anim:

The backlight is dimmed previously in ubuntu. In leopard, no battery options can turn it brighter. Now in ubuntu, it automatically changed back. Possibly a problem of video driver.

 

And yes, I also have same problems as other Thinkpad users.

Link to comment
Share on other sites

I think I have also som problem with displaying Battery Info:

 

| | +-o AppleACPIBatteryManager  

   | |   | {

   | |   |   "IOProviderClass" = "IOACPIPlatformDevice"

   | |   |   "IOProbeScore" = 0x0

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

   | |   |   "IOMatchCategory" = "IODefaultMatchCategory"

   | |   |   "Battery Information" = (0x1,0xfa0,0xec2,0x1,0x2b5c,0xb9,0x81,0x38,0xe09,<47524150453332000000000000000000>,<313230383400>,<4c494f4e000000000000000000000000>,<53414e594f0000000000000000000000>)

   | |   |   "IONameMatched" = "PNP0C0A"

   | |   |   "IOClass" = "AppleACPIBatteryManager"

   | |   |   "IONameMatch" = "PNP0C0A"

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

   | |   |   "Battery Status" = (0x0,0x0,0xec2,0x30cc)

   | |   | }

   | |   | 

   | |   +-o AppleACPIBattery  

   | |       {

   | |         "ManufacturerData" = <>

   | |         "ExternalConnected" = Yes

   | |         "CurrentCapacity" = 0xec2

   | |         "FullyCharged" = Yes

   | |         "ManufactureDate" = 0x0

   | |         "Amperage" = 0x0

   | |         "LegacyBatteryInfo" = {"Capacity"=0xec2,"Voltage"=0x30cc,"Flags"=0x5,"Current"=0xec2,"Amperage"=0x0,"Cycle Count"=0x1}

   | |         "BatteryInstalled" = Yes

   | |         "AvgTimeToFull" = 0xffff

   | |         "BatteryInvalidWakeSeconds" = 0x1e

   | |         "ExternalChargeCapable" = Yes

   | |         "AvgTimeToEmpty" = 0xffff

   | |         "DesignCapacity" = 0xfa0

   | |         "PostDischargeWaitSeconds" = 0x78

   | |         "CellVoltage" = ()

   | |         "Temperature" = 0x0

   | |         "SerialNumber" = 0x0

   | |         "BatterySerialNumber" = "XXXX-YYYY-0-0"

   | |         "InstantAmperage" = 0x0

   | |         "CycleCount" = 0x1

   | |         "Voltage" = 0x30cc

   | |         "IsCharging" = No

   | |         "InstantTimeToEmpty" = 0xffff

   | |         "Quick Poll" = No

   | |         "TimeRemaining" = 0xffff

   | |         "PostChargeWaitSeconds" = 0x78

   | |         "MaxErr" = 0x1

   | |         "MaxCapacity" = 0xec2

   | |         "AdapterInfo" = 0x0

   | |         "Location" = 0x0

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

   | |       }

   | |       

   | +-o ADP1  

   | |   {

   | |     "name" = <414350493030303300>

   | |     "_STA" = 0xf

   | |   }

:




Link to comment
Share on other sites

ThinkPad T61, b6. ioreg reports proper battery information, System Profiler is all zeroes still.

 

Also, menu icon shows the adapter icon, but shows the power source as battery when the adapter is plugged in. This has the entertaining consequence of showing the 'you are on reserve power' warning when the battery is 10 minutes from being charged. ;)

Link to comment
Share on other sites

 Share

×
×
  • Create New...