~Eureka Posted July 21, 2008 Author Share Posted July 21, 2008 Hi guys, I have uploaded b8 edition. It will use "_STA" flag to determine if the driver should be loaded or not. (Thanks Turbo for the idea.) If it returns 0xf, which there is no battery in the bay, it won't load the driver. It should work on those notebooks with more than one battery bay. For those who have more than one battery bay in the notebook, you can give it a try and let me know the result. Thanks. (I know it is not the best way to fix the issue. I will keep looking for the solution.) Chun-Nan I re-installed Leo4Allv3, and this time without selecting any kernel. Once the installation finished and booted onto the desktop, I get the Battery Meter automatically. Now I have MacBook as the machine identifier. I guess all is working nicely now. What's the diference if I use yours? Also I don't get any battery info like when I have your AppleACPIBatteryManager installed. Hi extremeae, It seems that you have patched PowerManagement and AppleACPIPowerSource on your machine. However, I don't have Leo4Allv3 installed right now so I cannot be sure what it includes. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828379 Share on other sites More sharing options...
Dense Posted July 21, 2008 Share Posted July 21, 2008 Just tested b7 and b8 (you uploaded b8 while I was doing b7 ). Both are working fine and my Dell Inspiron 9300 is showing the battery information correctly (before it didnt display Serial Number, Manufacturer and Device Name). It also seems to be showing charge count and condition but the cycle count is 1 which obviously isn't true. | | +-o AppleACPIBatteryManager <class AppleACPIBatteryManager, registered, matched, active, busy 0, retain 6> | | | { | | | "IOProviderClass" = "IOACPIPlatformDevice" | | | "IOProbeScore" = 0 | | | "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager" | | | "IOMatchCategory" = "IODefaultMatchCategory" | | | "Battery Information" = (1,7200,3792,1,11100,720,218,72,72,<"DELL C54475">,<"2030">,<"LION">,<"Sanyo">) | | | "IONameMatched" = "PNP0C0A" | | | "IOClass" = "AppleACPIBatteryManager" | | | "IONameMatch" = "PNP0C0A" | | | "IOPowerManagement" = {"CurrentPowerState"=1} | | | "Battery Status" = (0,1,7200,12376) | | | } | | | | | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain 5> | | { | | "ManufacturerData" = <> | | "ExternalConnected" = Yes | | "CurrentCapacity" = 7200 | | "FullyCharged" = Yes | | "ManufactureDate" = 0 | | "Amperage" = 0 | | "LegacyBatteryInfo" = {"Capacity"=7200,"Voltage"=12376,"Flags"=5,"Current"=7200,"Amperage"=0,"Cycle Count"=1} | | "BatteryInstalled" = Yes | | "DeviceName" = "DELL C54475" | | "BatteryInvalidWakeSeconds" = 30 | | "AvgTimeToFull" = 65535 | | "ExternalChargeCapable" = Yes | | "Type" = "LION" | | "AvgTimeToEmpty" = 65535 | | "DesignCapacity" = 7200 | | "PostDischargeWaitSeconds" = 120 | | "CellVoltage" = () | | "Temperature" = 0 | | "Serial" = "2030" | | "Manufacturer" = "Sanyo" | | "SerialNumber" = 0 | | "InstantAmperage" = 0 | | "BatterySerialNumber" = "Sanyo-DELL C54475-LION-2030" | | "CycleCount" = 1 | | "Voltage" = 12376 | | "IsCharging" = No | | "InstantTimeToEmpty" = 65535 | | "Quick Poll" = No | | "TimeRemaining" = 65535 | | "PostChargeWaitSeconds" = 120 | | "MaxErr" = 1 | | "MaxCapacity" = 7200 | | "AdapterInfo" = 1 | | "Location" = 1 | | "IOGeneralInterest" = "IOCommand is not serializable" | | } Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828390 Share on other sites More sharing options...
~Eureka Posted July 21, 2008 Author Share Posted July 21, 2008 Just tested b7 and b8 (you uploaded b8 while I was doing b7 ). Both are working fine and my Dell Inspiron 9300 is showing the battery information correctly (before it didnt display Serial Number, Manufacturer and Device Name). It also seems to be showing charge count and condition but the cycle count is 1 which obviously isn't true. ..... Hi Dense, Yes, right now cycle count will always show 1 because I haven't found the equation for it yet. There are also some values not set correctly, either. Such as: ManufacturerData, ManufacturerDate, CellVoltage, Temperature, MaxErr, etc. Those values are included in Smart Battery but not in the Control Method Battery. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828408 Share on other sites More sharing options...
osxfr Posted July 21, 2008 Share Posted July 21, 2008 Hi guys, I have uploaded b8 edition. It will use "_STA" flag to determine if the driver should be loaded or not. (Thanks Turbo for the idea.) If it returns 0xf, which there is no battery in the bay, it won't load the driver. It should work on those notebooks with more than one battery bay. For those who have more than one battery bay in the notebook, you can give it a try and let me know the result. Thanks. (I know it is not the best way to fix the issue. I will keep looking for the solution.) Chun-Nan Thanks a lot Chun-Nan! b8 works for my T61 and shows the battery information as well as the power source! I appreciate your work very much. osxfr Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828417 Share on other sites More sharing options...
dong Posted July 21, 2008 Share Posted July 21, 2008 B8 works almost perfect on my T60. The only problem is: When no battery is in the bay, battery indicator as well as battery option in system preference disappeared. It make sense since the kext is not loaded. But if add the battery during system on, nothing won't happen. A manually kextload of the kext does not help, it will unload automatically several seconds later. Only a reboot with battery on make everything working. Above is the battery information displayed in winXP, hope it will help you figure out the mechanisms behind other parameters. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828490 Share on other sites More sharing options...
outZider Posted July 22, 2008 Share Posted July 22, 2008 Chun Nan: Sweeeeeeeeeeeeeeet. I have working icons, power source, battery information, everything. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828709 Share on other sites More sharing options...
mrbonkers Posted July 22, 2008 Share Posted July 22, 2008 thanks! it b8 worked for me Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828729 Share on other sites More sharing options...
Jeezoflip Posted July 22, 2008 Share Posted July 22, 2008 thank u!!!!!! b8 works well with 10.5.4 Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-828784 Share on other sites More sharing options...
crankshaft Posted July 22, 2008 Share Posted July 22, 2008 Hi; I have just upgraded to 10.5.4 on my X60s, I have the AppleACPIPS2Nub_b3 installed, and as far as I can tell I have the stock AppleACPIplatform.kext (1.1.0) and there is no AppleACPIPowerSource installed in the AppleACPIPlatform.kext, the PowerManagementBundle is version 136. As soon as I use kexthepler to install the AppleACPIBatteryManager everything freezes, if I do a hard reboot I get a kernel panic whilst loading the AppleACPIBatteryManager.kext. Can you let me know the dependancies and versions required to get this working ?? Many thanks Pete Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-829116 Share on other sites More sharing options...
super37 Posted July 22, 2008 Share Posted July 22, 2008 Great job! Thank you,chun-nan.It works on dell D630. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-829245 Share on other sites More sharing options...
eraserhead77 Posted July 22, 2008 Share Posted July 22, 2008 b8 working fine here...great work as always Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-829553 Share on other sites More sharing options...
SD Geek Posted July 23, 2008 Share Posted July 23, 2008 Solved my blank info in System Profiler and the icon now shows the proper discharge state. Thank you. Edit: Forgot to mention that my power profile now switches properly as well. Also, my battery info follows: Battery Information: Model Information: Serial Number: SMP-DELL YD9999-LION-232 Manufacturer: SMP Device name: DELL YD9999 Pack Lot Code: 0000 PCB Lot Code: 0000 Firmware Version: 0000 Hardware Revision: 0000 Cell Revision: 0000 Charge Information: Charge remaining (mAh): 253 Fully charged: No Charging: Yes Full charge capacity (mAh): 7180 Health Information: Cycle count: 1 Condition: Good Battery Installed: Yes Amperage (mA): 4336 Voltage (mV): 11295 Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-829977 Share on other sites More sharing options...
mrheat Posted July 23, 2008 Share Posted July 23, 2008 tried b7 and b8 b7 works, its just displaying in sys profiler b8 shows nothing how can i get the battery menu icon working? have vanilla acpiplatform kext & powermanagement kext with smbios from macdotnub Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-830164 Share on other sites More sharing options...
Jingu Posted July 23, 2008 Share Posted July 23, 2008 Beta 8 works perfect on my Acer Aspire 9525 notebook in Leopard 10.5.4. Vanilla AppleSMBIOS, AppleACPIPlatform and PowerManagement.bundle. I used AppleACPIPS2Nub.kext and AppleSMBIOSEFI-28. Correctly displays the proper icon when I am on battery and when I am plugged in. The full battery information appears in system profiler. The only small problem is that activating powermangement functions still breaks DVD player playback. When playing DVD's I hear sound but I only have a black screen without the picture. That problem has always been around each time powermanagement functions are activated, regardless of the method under which powermanagement functions are activated. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-830759 Share on other sites More sharing options...
Gunslinger1984 Posted July 23, 2008 Share Posted July 23, 2008 i installed the kext using kexthelper and it seemed to install it fine, but after restart... nothing happens, no info about power source, battery or anything.... any ideas? Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-831002 Share on other sites More sharing options...
~Eureka Posted July 23, 2008 Author Share Posted July 23, 2008 Hi; I have just upgraded to 10.5.4 on my X60s, I have the AppleACPIPS2Nub_b3 installed, and as far as I can tell I have the stock AppleACPIplatform.kext (1.1.0) and there is no AppleACPIPowerSource installed in the AppleACPIPlatform.kext, the PowerManagementBundle is version 136. As soon as I use kexthepler to install the AppleACPIBatteryManager everything freezes, if I do a hard reboot I get a kernel panic whilst loading the AppleACPIBatteryManager.kext. Can you let me know the dependancies and versions required to get this working ?? Many thanks Pete Hi Pete, It should work on any version of AppleACPIPlatform. You can go to [system Profiler] -> [software] -> [Extensions] to see if AppleACPIPowerSource is installed and loaded. If possible, can you post the picture of kernel panic? Thanks. Chun-Nan tried b7 and b8 b7 works, its just displaying in sys profiler b8 shows nothing how can i get the battery menu icon working? have vanilla acpiplatform kext & powermanagement kext with smbios from macdotnub Hi mrheat, If you are using b8, make sure you have the battery in the bay or the driver may not be loaded. Chun-Nan i installed the kext using kexthelper and it seemed to install it fine, but after restart... nothing happens, no info about power source, battery or anything.... any ideas? hi Gunslinger1984, If possible, post your ioreg_sp.txt here if you are using Leopard. Thanks. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-831142 Share on other sites More sharing options...
UserNet Posted July 24, 2008 Share Posted July 24, 2008 Hi, Someone have a working solution for AMD laptops using Leo 10.5.4? Thanks! Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-831429 Share on other sites More sharing options...
jhc8756 Posted July 25, 2008 Share Posted July 25, 2008 I installed b8 but there is no battery icon on the bar, just a blank icon with option say that no batteries available. Did i do something wrong when install? Or i missed any step? Pls help, Thanks! Battery Information: Model Information: Manufacturer: XXX-YYYY Device name: ZZZZZZ Pack Lot Code: 0000 PCB Lot Code: 0000 Firmware Version: 0000 Hardware Revision: 0000 Cell Revision: 0000 Charge Information: Charge remaining (mAh): 3024 Fully charged: No Charging: No Full charge capacity (mAh): 3528 Health Information: Cycle count: 1 Battery Installed: Yes Amperage (mA): -1176 Voltage (mV): 11497 Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-832810 Share on other sites More sharing options...
~Eureka Posted July 25, 2008 Author Share Posted July 25, 2008 I installed b8 but there is no battery icon on the bar, just a blank icon with option say that no batteries available. Did i do something wrong when install? Or i missed any step? Pls help, Thanks! ..... Hi jhc8756, If possible, can you post your ioreg_sp.txt? Just go to [system profiler] -> [software] -> [Logs]. You should see ioreg_sp.txt listed there. Thanks. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-833758 Share on other sites More sharing options...
jhc8756 Posted July 26, 2008 Share Posted July 26, 2008 Sorry, I can't find the ioreg_sp.text in the place [system profiler] -> [software] -> [Logs]. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-834179 Share on other sites More sharing options...
~Eureka Posted July 26, 2008 Author Share Posted July 26, 2008 Hi guys, I have uploaded b9 edition. I added CycleCount caculation and CellVoltages caculation. (need feedbacks). In addition, I added "SMBIOS informaiton" table for MaxErr, SerialNumber, and ManufactureDate. However, the data read from my notebook are not accurate. | +-o BAT1 <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 | | | "SMBIOS Information" = ("1st Battery","TOSHIBA ","12/01/2005","3658Q","PA3395U ","Lithium-ion",0xc4e,0x39d0,"",0xff,0x0,0x0,"",0xa,"") | | | "CFBundleIdentifier" = "com.apple.driver.AppleACPIBatteryManager" | | | "IOMatchCategory" = "IODefaultMatchCategory" | | | "Battery Information" = (0x1,0xfa0,0xfa0,0x1,0x2b5c,0x1a4,0x9c,0x108,0xec4,"PA3399U ","3658Q","Li-Ion","TOSHIBA") | | | "IONameMatched" = "PNP0C0A" | | | "IOClass" = "AppleACPIBatteryManager" | | | "IONameMatch" = "PNP0C0A" | | | "IOPowerManagement" = {"CurrentPowerState"=0x1} | | | "Battery Status" = (0x80,0x0,0xfa0,0x2b5c) | | | } | | | | | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain 5> | | { | | "ManufacturerData" = <> | | "ExternalConnected" = Yes | | "CurrentCapacity" = 0xfa0 | | "FullyCharged" = Yes | | "ManufactureDate" = 0x0 | | "Amperage" = 0x0 | | "LegacyBatteryInfo" = {"Capacity"=0xfa0,"Voltage"=0x2b5c,"Flags"=0x5,"Current"=0xfa0,"Amperage"=0x0,"Cycle Count"=0x0} | | "BatteryInstalled" = Yes | | "DeviceName" = "PA3399U " | | "BatteryInvalidWakeSeconds" = 0x1e | | "AvgTimeToFull" = 0xffff | | "ExternalChargeCapable" = Yes | | "Type" = "Li-Ion" | | "AvgTimeToEmpty" = 0xffff | | "DesignCapacity" = 0xfa0 | | "PostDischargeWaitSeconds" = 0x78 | | "CellVoltage" = (0xe74,0xe74,0xe74,0x0) | | "Temperature" = 0x0 | | "SerialNumber" = 0x0 | | "Serial" = "3658Q" | | "Manufacturer" = "TOSHIBA" | | "InstantAmperage" = 0x0 | | "BatterySerialNumber" = "TOSHIBA-PA3399U -Li-Ion-3658Q" | | "CycleCount" = 0x0 | | "Voltage" = 0x2b5c | | "IsCharging" = No | | "InstantTimeToEmpty" = 0xffff | | "Quick Poll" = No | | "TimeRemaining" = 0xffff | | "PostChargeWaitSeconds" = 0x78 | | "MaxErr" = 0xff | | "MaxCapacity" = 0xfa0 | | "AdapterInfo" = 0x1 | | "Location" = 0x1 | | "IOGeneralInterest" = "IOCommand is not serializable" | | } | | You can give it a try to see if you can get the correct information. If possible, please put your ioreg_sp.txt here. Thanks a lot. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-834688 Share on other sites More sharing options...
jhc8756 Posted July 26, 2008 Share Posted July 26, 2008 I updated to 10.5.2 and the battery working well(b8). Chun-Nan, Thanks a lot!! Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-834790 Share on other sites More sharing options...
djmastera2000 Posted July 26, 2008 Share Posted July 26, 2008 I work on totally vanilla 10.5.4 and got kernel panic with b9, b8 working without problems. But i cannot show you the message... Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-834826 Share on other sites More sharing options...
romanskij Posted July 26, 2008 Share Posted July 26, 2008 I get a kernel panic with the b9 too. b8 works perfect! here my battery info: Batterie-Informationen: 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): 7200 Vollständig geladen: Ja 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): 0 Spannung (in mV): 11100 I don´t know what info do you need to fix this problem. If you need a photo from the kernel panic i can do this! Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-834925 Share on other sites More sharing options...
~Eureka Posted July 27, 2008 Author Share Posted July 27, 2008 I work on totally vanilla 10.5.4 and got kernel panic with b9, b8 working without problems. But i cannot show you the message... Hi djmastera2000 & romanskij, Sorry for the kernel panic. I have removed it from the forum and will try to find why it caused kernel panic. (It ran ok on my machine. I think it probably has something to do with SMBIOS table.) Thanks. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/5/#findComment-835033 Share on other sites More sharing options...
Recommended Posts