twobunnyrabbit Posted July 16, 2008 Share Posted July 16, 2008 Hi Chun-Nan After updating my laptop to 10.5.4, the previous patched powermanagement bundle didn't work. Tried the b6 release with the original one and it works. Thanks. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-821223 Share on other sites More sharing options...
morphin999 Posted July 17, 2008 Share Posted July 17, 2008 Thanks, Chun-Nan. I have gone through this whole thread and tried several ways to get my battery meter to show up. You know what? Today I happend to find a simple way to solve this problem: I simply installed the OS X 10.4.8 only using the batter without plugging in the power adapter. Then when the systerm reboots, the battery meter showed up and indicate the exact amount of power level. Also there are options in the Energy Saver for the batter. I hope this will help other people who may want to give it a try. To me, it seems that the installer can detect the battery during installation when the power adapter is not in use. I do not know what exactly in the program. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-822166 Share on other sites More sharing options...
lisette Posted July 17, 2008 Share Posted July 17, 2008 Thanks, Chun-Nan. Beta 6 is working properly on my Dell M90. The system is able to recognize whether I plug or unplug the power cord. Lisette Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-822191 Share on other sites More sharing options...
SD Geek Posted July 17, 2008 Share Posted July 17, 2008 Chun-Nan, I built and installed b6 with the same result as before. Basically, time and percentage look right, but the icon only changes from full to charging (no decay) and SP shows zeroed-out information for the battery. Also, I don't know if it has anything to do with the battery manager code, but my system's power profile doesn't change between AC and Battery states. For example, I have my machine set to sleep after 5mins if on battery, and to never sleep if on AC; however, it always sleeps after 5min whether AC is connected or not. Here's my ioreg -lxw1024 output | +-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,0x1cb7,0x1,0x2b5c,0x30c,0xec,0x4e,0x4e,<44454c4c2059443632333800>,<32333200>,<4c494f4e00>,<534d5000>) | | | "IONameMatched" = "PNP0C0A" | | | "IOClass" = "AppleACPIBatteryManager" | | | "IONameMatch" = "PNP0C0A" | | | "IOPowerManagement" = {"CurrentPowerState"=0x1} | | | "Battery Status" = (0x1,0x94e,0x4f8,0x2a39) | | | } | | | | | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain 5> | | { | | "ManufacturerData" = <> | | "ExternalConnected" = No | | "CurrentCapacity" = 0x4f8 | | "FullyCharged" = No | | "ManufactureDate" = 0x0 | | "Amperage" = 0xfffffffffffff6a0 | | "LegacyBatteryInfo" = {"Capacity"=0x1cb7,"Voltage"=0x2a39,"Flags"=0x4,"Current"=0x4f8,"Amperage"=0xfffffffffffff6a0,"Cycle Count"=0x1} | | "BatteryInstalled" = Yes | | "AvgTimeToFull" = 0xffff | | "BatteryInvalidWakeSeconds" = 0x1e | | "ExternalChargeCapable" = Yes | | "AvgTimeToEmpty" = 0x1f | | "DesignCapacity" = 0x1e78 | | "PostDischargeWaitSeconds" = 0x78 | | "CellVoltage" = () | | "Temperature" = 0x0 | | "SerialNumber" = 0x0 | | "BatterySerialNumber" = "XXXX-YYYY-ZZZZ-0000" | | "InstantAmperage" = 0xfffffffffffff6b2 | | "CycleCount" = 0x1 | | "Voltage" = 0x2a39 | | "IsCharging" = No | | "InstantTimeToEmpty" = 0x20 | | "Quick Poll" = No | | "TimeRemaining" = 0x1f | | "PostChargeWaitSeconds" = 0x78 | | "MaxErr" = 0x1 | | "MaxCapacity" = 0x1cb7 | | "AdapterInfo" = 0x0 | | "Location" = 0x1 | | "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" | | } And here's the SP output: Battery Information: Model Information: Serial Number: XXXX-YYYY-ZZZZ-0000 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 Automatic Restart On Power Loss: No Wake On Clamshell Open: Yes Display Sleep Uses Dim: Yes Battery Power: System Sleep Timer (Minutes): 5 Disk Sleep Timer (Minutes): 10 Display Sleep Timer (Minutes): 1 Wake On Clamshell Open: Yes Display Sleep Uses Dim: Yes Reduce Brightness: Yes Hardware Configuration: UPS Installed: No AC Charger Information: Connected: No Charging: No Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-822286 Share on other sites More sharing options...
paulicat Posted July 17, 2008 Share Posted July 17, 2008 The only issue I've found so far is after wake from sleep, battery icon says no battery installed. Otherwise, great work Chun-Nan! Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-822888 Share on other sites More sharing options...
kytzu Posted July 17, 2008 Share Posted July 17, 2008 It fixed my bug, I see 100% now and not 83% as with b4. Thx again Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-822903 Share on other sites More sharing options...
extremeae Posted July 17, 2008 Share Posted July 17, 2008 If someone can make this an install package, that would be great! That will save a lot of time. Off topic: I reinstall Leo4All 10.5.2 to see if I can duplicate and make the battery meter appear again, no go. I can't understand why it's not working now. Luckily I image the partition with Acronis and restore the working image with the working battery meter. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-823261 Share on other sites More sharing options...
dong Posted July 17, 2008 Share Posted July 17, 2008 If someone can make this an install package, that would be great! That will save a lot of time. Off topic: I reinstall Leo4All 10.5.2 to see if I can duplicate and make the battery meter appear again, no go. I can't understand why it's not working now. Luckily I image the partition with Acronis and restore the working image with the working battery meter. This battery kext only works with vanilla AppleACPIPlatform.kext and vanilla PowerManagement.bundle. Check to see if you selected hacked version of them during installation. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-823376 Share on other sites More sharing options...
extremeae Posted July 17, 2008 Share Posted July 17, 2008 This battery kext only works with vanilla AppleACPIPlatform.kext and vanilla PowerManagement.bundle. Check to see if you selected hacked version of them during installation. I backup the AppleACPIPlatform.kext and vanilla PowerManagement.bundle that has worked before I re-install, and I copy over after I redo the installation, still nothing. I was only testing the installation because I can't seem to get my HP DV6500T to show as MacBook Pro. Instead it kept showing Mac Pro. I tried to replaced whatever AppleSMBIOS.kext I can find but nothing seem to work. If anyone out there can help, I appreciate a lot! Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-823412 Share on other sites More sharing options...
jayman30 Posted July 18, 2008 Share Posted July 18, 2008 Working great on my Gateway Laptop, thanks a lot!! Battery Information: Model Information: Serial Number: XXXX-YYYY-ZZZZ-0000 Pack Lot Code: 0000 PCB Lot Code: 0000 Firmware Version: 0000 Hardware Revision: 0000 Cell Revision: 0000 Charge Information: Charge remaining (mAh): 1477 Fully charged: No Charging: Yes Full charge capacity (mAh): 4281 Health Information: Cycle count: 1 Condition: Good Battery Installed: Yes Amperage (mA): 1721 Voltage (mV): 11137 Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-823445 Share on other sites More sharing options...
morphin999 Posted July 18, 2008 Share Posted July 18, 2008 Chun-Nan, I found a simple solution to show the battery meter in 10.4.8. Just installed the OS X with batter power only, don't plug in the AC adapter during installation. After the installation completes, the batter meter is automatically shown on the task bar. but I still have the problem with sleep. Once the computer sleeps, it will never wake up. Have to shut it down and restart. Do you have any solution for this? Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-823529 Share on other sites More sharing options...
T u r b o Posted July 18, 2008 Share Posted July 18, 2008 For Thinkpad owners (T61 specifically) I added this routine to make sure that matching only happens for the first battery (battery 0) /****************************************************************************** * AppleACPIBatteryManager::probe * ******************************************************************************/ IOService *AppleACPIBatteryManager::probe(IOService *provider, SInt32 *score) { OSString *OSS; IOService *ret = super::probe(provider,score); // Attach only to battery UID 0 if (ret) { OSS=(OSString*)provider->getProperty("_UID"); if (!OSS->isEqualTo("0")) return(NULL); } return(ret); } I can stick a binary up if somebody needs it. Thanks for your great work, Chun-Nan! - Turbo Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-824501 Share on other sites More sharing options...
dong Posted July 18, 2008 Share Posted July 18, 2008 Turbo, thanks for this. But does it solve the AC displayed as battery problem? Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-824504 Share on other sites More sharing options...
quinielascom Posted July 19, 2008 Share Posted July 19, 2008 Hi, someone has working AppleACPIBatteryManager.kext in a Acer Aspire laptop of this models: Acer Aspire 4320, 4720, 5720, 5920, 2920 or Acer laptop with 960/965 chipset without power o related problems, example kernel panic at turnoff or restart, etc. Version Leopard is not matter (10.5.1 up 10.5.4 is fine). Regards Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-824707 Share on other sites More sharing options...
T u r b o Posted July 19, 2008 Share Posted July 19, 2008 Turbo, thanks for this. But does it solve the AC displayed as battery problem? It does for me. - Turbo Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-824857 Share on other sites More sharing options...
osxfr Posted July 19, 2008 Share Posted July 19, 2008 For Thinkpad owners (T61 specifically) I added this routine to make sure that matching only happens for the first battery (battery 0) /****************************************************************************** * AppleACPIBatteryManager::probe * ******************************************************************************/ IOService *AppleACPIBatteryManager::probe(IOService *provider, SInt32 *score) { OSString *OSS; IOService *ret = super::probe(provider,score); // Attach only to battery UID 0 if (ret) { OSS=(OSString*)provider->getProperty("_UID"); if (!OSS->isEqualTo("0")) return(NULL); } return(ret); } I can stick a binary up if somebody needs it. Thanks for your great work, Chun-Nan! - Turbo Turbo, please make the binary available. I have not tried to compile such things myself, so it would be very helpful for me and others who own T61. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-825559 Share on other sites More sharing options...
~Eureka Posted July 20, 2008 Author Share Posted July 20, 2008 Hi guys, Sorry that I was out of this week but will be back tomorrow. About serial informaiton, it seems that some notebooks use OSData type to store informaiton while some use OSString. I will check it when I am back. Also, I will check the multi-battery bays issue, too. Thanks. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-826049 Share on other sites More sharing options...
~Eureka Posted July 21, 2008 Author Share Posted July 21, 2008 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. However, there are still problem in reading correct BatterySerialNumber. Also, the time displayed is decreasing instead of increasing during charge. ..... Hi guys, I have uploaded b7 version. For those who got "Serial Number: XXXX-YYYY-ZZZZ-0000", you can give it a try to see if it can get the battery info. (I am not sure if it will work or not because my notebook uses OSString for battery info instead of OSData) I think the reason why System Profiler shows zeroed-out information for the battery is because it read the data from the battery bay without batteries installed. That is probably the reason why power profile doesn't change between AC and Battery states. BTW, the displayed time is decreasing while the battery is charged because it shows how long it will finish charging. Chun-Nan The only issue I've found so far is after wake from sleep, battery icon says no battery installed.Otherwise, great work Chun-Nan! Hi paulicat, I checked the source code. It should read the battery info again after waking up from sleep. Perhaps, it just needs some time to respond. Chun-Nan For Thinkpad owners (T61 specifically) I added this routine to make sure that matching only happens for the first battery (battery 0) ..... I can stick a binary up if somebody needs it. Thanks for your great work, Chun-Nan! - Turbo Hi T u r b o, Thanks for the codes. I think it will work with certain notebooks because not all the notebooks have the same _UID. (Therefore, I didn't add it to the source code) It will be great if you can post the change files here. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-827431 Share on other sites More sharing options...
mrheat Posted July 21, 2008 Share Posted July 21, 2008 After restoring PowerManagement.bundle and vanilla AppleACPI kext, it shows Battery Info correctly in System Profiler, Serial Values are all 0 but Capacity and others are fine. coconutBattery shows Infos, but i cant get the icon in menubar working, Power Manager Panel is missing the knob. I have a Maxdata Pro800IW with Core2Duo 1,83ghz and 945gcm chipset. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-827446 Share on other sites More sharing options...
osxfr Posted July 21, 2008 Share Posted July 21, 2008 Hi Chun-Nan, Beta 7 gave me a kernel panic, I did not have that with previous versions. My laptop is Thinkpad T61 and it can be equipped with an additional battery, but it is not. My problem is that the meter shows that I'm on battery, whereas actually I'm on AC power, and also the system profiler info is wrong: Battery Information: Model Information: Serial Number: XXXX-YYYY-ZZZZ-0000 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): 0 Display Sleep Timer (Minutes): 0 Automatic Restart On Power Loss: No Wake On Clamshell Open: Yes Display Sleep Uses Dim: Yes Battery Power: System Sleep Timer (Minutes): 0 Disk Sleep Timer (Minutes): 0 Display Sleep Timer (Minutes): 0 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 Here is the log info. | +-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,0xdb60,0xdb60,0x1,0x2a30,0xaf8,0xc8,0x1,0x1,<34325434353636000000000000000000>,<203436313200>,<4c494f4e00>,<534f4e59003036000000000000000000>) | | | "IONameMatched" = "PNP0C0A" | | | "IOClass" = "AppleACPIBatteryManager" | | | "IONameMatch" = "PNP0C0A" | | | "IOPowerManagement" = {"CurrentPowerState"=0x1} | | | "Battery Status" = (0x0,0x0,0xd962,0x3003) | | | } | | | | | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain 5> | | { | | "ManufacturerData" = <> | | "ExternalConnected" = Yes | | "CurrentCapacity" = 0x15bd | | "FullyCharged" = Yes | | "ManufactureDate" = 0x0 | | "Amperage" = 0x0 | | "LegacyBatteryInfo" = {"Capacity"=0x15f0,"Voltage"=0x3003,"Flags"=0x5,"Current"=0x15bd,"Amperage"=0x0,"Cycle Count"=0x1} | | "BatteryInstalled" = Yes | | "AvgTimeToFull" = 0xffff | | "BatteryInvalidWakeSeconds" = 0x1e | | "ExternalChargeCapable" = Yes | | "AvgTimeToEmpty" = 0xffff | | "DesignCapacity" = 0x15f0 | | "PostDischargeWaitSeconds" = 0x78 | | "CellVoltage" = () | | "Temperature" = 0x0 | | "SerialNumber" = 0x0 | | "BatterySerialNumber" = "XXXX-YYYY-ZZZZ-0000" | | "InstantAmperage" = 0x0 | | "CycleCount" = 0x1 | | "Voltage" = 0x3003 | | "IsCharging" = No | | "InstantTimeToEmpty" = 0xffff | | "Quick Poll" = No | | "TimeRemaining" = 0xffff | | "PostChargeWaitSeconds" = 0x78 | | "MaxErr" = 0x1 | | "MaxCapacity" = 0x15f0 | | "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" | | } | | I hope this could help you to fix the problems eventually. Thanks a lot for your work! osxfr Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-827513 Share on other sites More sharing options...
T u r b o Posted July 21, 2008 Share Posted July 21, 2008 Hi T u r b o, Thanks for the codes. I think it will work with certain notebooks because not all the notebooks have the same _UID. (Therefore, I didn't add it to the source code) It will be great if you can post the change files here. Chun-Nan Yes I agree this is not a great permanent fix. There could be a property set if you only want to match a specific battery _UID. I can add this and post the change here. There's probably a better way to probe and determine whether to use the battery info or not, but a configuration option would guarantee it can work for all cases. - Turbo Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-827735 Share on other sites More sharing options...
mrbonkers Posted July 21, 2008 Share Posted July 21, 2008 hey turbo, can you post the kext? Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-827805 Share on other sites More sharing options...
~Eureka Posted July 21, 2008 Author Share Posted July 21, 2008 Hi Chun-Nan, Beta 7 gave me a kernel panic, I did not have that with previous versions. My laptop is Thinkpad T61 and it can be equipped with an additional battery, but it is not. My problem is that the meter shows that I'm on battery, whereas actually I'm on AC power, and also the system profiler info is wrong: ..... I hope this could help you to fix the problems eventually. Thanks a lot for your work! osxfr Hi osxfr, Sorry for the kernel panic. I have uploaded another b7 edition. You can give it a try and let me know the result. Thanks. Chun-Nan Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-828055 Share on other sites More sharing options...
osxfr Posted July 21, 2008 Share Posted July 21, 2008 Hi osxfr, Sorry for the kernel panic. I have uploaded another b7 edition. You can give a try and let me know the result. Thanks. Chun-Nan Thanks Chun-Nan! Now no kernel panic and it shows some non-zero model information in system profiler, but the meter still shows me on battery power (wrong). Here is the info: Battery Information: Model Information: Serial Number: SONY-42T4566-LION- 4612 Manufacturer: SONY Device name: 42T4566 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): 0 Display Sleep Timer (Minutes): 0 Automatic Restart On Power Loss: No Wake On Clamshell Open: Yes Display Sleep Uses Dim: Yes Battery Power: System Sleep Timer (Minutes): 0 Disk Sleep Timer (Minutes): 0 Display Sleep Timer (Minutes): 0 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 | +-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,0xdb60,0xdb60,0x1,0x2a30,0xaf8,0xc8,0x1,0x1,<34325434353636000000000000000000>,<203436313200>,<4c494f4e00>,<534f4e59003036000000000000000000>) | | | "IONameMatched" = "PNP0C0A" | | | "IOClass" = "AppleACPIBatteryManager" | | | "IONameMatch" = "PNP0C0A" | | | "IOPowerManagement" = {"CurrentPowerState"=0x1} | | | "Battery Status" = (0x0,0x0,0xd958,0x3003) | | | } | | | | | +-o AppleACPIBattery <class AppleACPIBattery, registered, matched, active, busy 0, retain 5> | | { | | "ManufacturerData" = <> | | "ExternalConnected" = Yes | | "CurrentCapacity" = 0x15bc | | "FullyCharged" = Yes | | "ManufactureDate" = 0x0 | | "Amperage" = 0x0 | | "LegacyBatteryInfo" = {"Capacity"=0x15f0,"Voltage"=0x3003,"Flags"=0x5,"Current"=0x15bc,"Amperage"=0x0,"Cycle Count"=0x1} | | "BatteryInstalled" = Yes | | "DeviceName" = "42T4566" | | "BatteryInvalidWakeSeconds" = 0x1e | | "AvgTimeToFull" = 0xffff | | "ExternalChargeCapable" = Yes | | "Type" = "LION" | | "AvgTimeToEmpty" = 0xffff | | "DesignCapacity" = 0x15f0 | | "PostDischargeWaitSeconds" = 0x78 | | "CellVoltage" = () | | "Temperature" = 0x0 | | "Serial" = " 4612" | | "Manufacturer" = "SONY" | | "SerialNumber" = 0x0 | | "InstantAmperage" = 0x0 | | "BatterySerialNumber" = "SONY-42T4566-LION- 4612" | | "CycleCount" = 0x1 | | "Voltage" = 0x3003 | | "IsCharging" = No | | "InstantTimeToEmpty" = 0xffff | | "Quick Poll" = No | | "TimeRemaining" = 0xffff | | "PostChargeWaitSeconds" = 0x78 | | "MaxErr" = 0x1 | | "MaxCapacity" = 0x15f0 | | "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" = 0x1 | | "Location" = 0x1 | | "LegacyBatteryInfo" = {"Capacity"=0x0,"Voltage"=0x0,"Flags"=0x0,"Current"=0x0,"Amperage"=0x0,"Cycle Count"=0x0} | | "IOGeneralInterest" = "IOCommand is not serializable" | | } | | Please let me know if you need more tests or info. osxfr Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-828153 Share on other sites More sharing options...
extremeae Posted July 21, 2008 Share Posted July 21, 2008 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. Link to comment https://www.insanelymac.com/forum/topic/114105-appleacpibatterymanager-for-tiger-and-leopard/page/4/#findComment-828207 Share on other sites More sharing options...
Recommended Posts