Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Issue with ACPI-Battery #7
Comments
|
Post DSDT. And ioreg when it is showing the incorrect state. Use IORegistryExplorer v2.1. |
Vmonheros
commented
Jun 22, 2014
|
Here the required information. You've got the original & patched DSDTs, and also 2 Ioregistrys, one with your last kext + the other one from Zprood kext (I just reboot after replacing your kext by Zprood one). Note that in this case, I've got the "battery" with 100% power with your kext, and the "normal" battery with power plug inside with Zprood one. Your kext say that my power source is battery, Zprood one says power is transformer. As I said previously, it only occurs when the battery is completely charged, or discharged so slightly (just a few % under 100) that default behavior is not to charge it even if we plug the transformer. Here the link for the files https://drive.google.com/folderview?id=0B6xzsYEopnzNQ3d0LVpaeTg2WDA&usp=sharing Thanks. |
Vmonheros
closed this
Jun 22, 2014
Vmonheros
reopened this
Jun 22, 2014
Vmonheros
commented
Jul 31, 2014
|
Hi RehabMan, have you got some news on this topic ? Is there something I can do to help you ? |
|
Install debug version of ACPIBatteryManager.kext and provide logs from system.log. Also, what is output from 'kextstat|grep battery'? |
Vmonheros
commented
Aug 9, 2014
|
Hi I upload your debug kext version. Here the output of my kextstat 1 57 0xffffff7f807e3000 0x8d80 0x8d80 com.apple.kpi.bsd (13.3.0) As line 19, you can see 19 0 0xffffff7f8230a000 0xa000 0xa000 org.rehabman.driver.AppleSmartBatteryManager (1.52) <10 4 3>. So your kext is correctly uploaded. I will charge my battery again, and provide you the output of my log when my battery is full, as it's at this time that I've got "my issue" |
Vmonheros
commented
Aug 10, 2014
|
Hi, I did the test. So, you will see in log "battery charging", and at the end of the charge (12h38min37s), we go to "Battery discharging". However, I didn't unplug the charger at this time ! You will find the log at my google drive https://drive.google.com/folderview?id=0B6xzsYEopnzNQ3d0LVpaeTg2WDA&usp=sharing |
|
This section here is I think where you're referring to...
If you did not unplug the power at this time, then your issue is a DSDT issue. According to _BST, your battery is discharging at a rate of 202 mA. |
Vmonheros
commented
Aug 11, 2014
|
Hi. No, I didn't unplug the power at this time. For DSDT, I use the battery patch you did for Asus N55SL/Vivobook (and some Asus Zenbook). It works with Zprood battery manager. I gave you inside my link my original and patched DSDT. I must admit that pointers are welcome here ! |
|
I think you're going to have to figure out why your DSDT _BST reports status 0x01 (battery discharging) upon full charge with AC power still connected. You can use my ACPIDebug.kext to figure it out. |
Vmonheros
commented
Aug 16, 2014
|
Hi, I re-did all my DSDT corrections. Informations provided by _BST are OK now (seems that I badly applied the battery corrections the last time), but I've always got the same behavior. Here a small trace of the logs. 16/08/2014 16:54:02,000 kernel[0]: AppleSmartBattery::pollingTimeOut called FCurrentRate = 0, so 0 charge or discharge at this time... Normal, battery is at 100% and the power is plug. Furthermore, if I look with "information system", it says in "Power" that my battery is not charging, but also that my power is unplugged. Note that when the battery is charging, I've got battery is charging & power plugged correctly reported. I also use your ACPIBacklight driver. When I unplug the power, the screen backlight doesn't changed also. If I switch your kext with the Zprood one, and reboot, I've got the right icon (so my battery is full & that I'm on power), the right charger "plug in" in "Information System" and your ACPI Backlight driver detects when my power is plug & unplugged and so changes the backlight of my screen. So the issue seems to be in the power plug/unplug detection. Have you got some trick on how to trace that ? I yet found in log the Aug 16 17:14:44 air-de-frederic kernel[0]: ACPIACAdapter::message: type: E0028010 provider: AC0 and Aug 16 17:14:53 air-de-frederic kernel[0]: ACPIACAdapter::message: type: E0028010 provider: AC0 So for me "power" status is correctly detected by ACPIACAdapter. P.S.: I updated my google drive share with my update DSDT |
|
Your DSDT is still reporting the wrong value for _BST fCurrentStatus. It should report zero (0) when there is no discharging or charging. I could special case it in the kext, but I see no reason to do so. You should change your DSDT so it is compliant with the spec. |
Vmonheros
commented
Aug 22, 2014
|
Hi. You were right. Thanks to ACPIDebug, I hunt bit inside my DSDT, to find where is define fCurrentStatus. As you pointed me on _BST, it helps... The culprit is here, inside method FBST (called inside _BST) Store (Zero, Local0) So Local0=1 if the laptop is on power, fine ;) With this "small" correction, everything works well now. Thanks for all the hints !!! |
Vmonheros
closed this
Aug 22, 2014
|
Makes sense. Glad you have it working... |
dhnguyen92
commented
Apr 7, 2015
|
Can you add this to your DSDT patch repo? I saw many laptops with same problem. |
|
Not possible to create a generic patch. It will always be DSDT/machine specific. |
Vmonheros commentedJun 21, 2014
I use your last BatteryManager kext (download from here) and I encounter an "issue" with it about the battery status icon.
When I'm charging the battery, normal icon (the battery with the "power" inside). However, when the battery is finished to be charge, the battery icon change to the default battery one - the one you've got in fact when you're on battery (and normally discharging it) remaining at 100% charge (and when I check the status, it says that the power is coming from battery, not from wall plug). So, the icon didn't change to the normal "electrical plug" one. It is the same if I remove the charger, let the battery discharge only few % (I know that in this case, battery will not charge after to avoid "memory" ) and plug again the transformer on the laptop, the battery icon doesn't change and remain "on battery"... However, for sure, battery % didn't decrease...
I don't have this behavior (in fact I've got the normal one) with the Zprood kext (the old from) from here http://www.insanelymac.com/forum/topic/272...nager-for-lion/. However, this kext is not able to read correctly battery count cycle for my battery.
So, can I help you to track this ?
Thanks.
Fred.
P.S.: I've got an Asus Zenbook UX32LN patched with your MacIASL "repository" change 4.08. I can forward you my patched DSDT and SSDTs if necessary.