<p>Matt DeVillier has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21545">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ec/purism/librem: fix battery present rate<br><br>EC ACPI code was calculating the drain rate, but not storing in<br>the battery status package before returning it.  Correct this<br>omission, and set the drain rate to a preset minimum if calculated<br>value is less.  Taken from vendor firmware ACPI dump.<br><br>Change-Id: I52837d5879112ab3103976bda28906fac8f880ec<br>Signed-off-by: Matt DeVillier <matt.devillier@gmail.com><br>---<br>M src/ec/purism/librem/acpi/battery.asl<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/21545/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/ec/purism/librem/acpi/battery.asl b/src/ec/purism/librem/acpi/battery.asl<br>index a090b7c..5a4891e 100644<br>--- a/src/ec/purism/librem/acpi/battery.asl<br>+++ b/src/ec/purism/librem/acpi/battery.asl<br>@@ -183,6 +183,11 @@<br>                 } Else {<br>                      And (Local1, 0x7FFF, Local0)<br>          }<br>+            If(LLess(Local0, 0x0352))<br>+            {<br>+                    Store(0x0352, Local0)<br>+                }<br>+            Store (Local0, Index (PBST, 1))<br> <br>            /*<br>             * 2: BATTERY REMAINING CAPACITY<br></pre><p>To view, visit <a href="https://review.coreboot.org/21545">change 21545</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21545"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I52837d5879112ab3103976bda28906fac8f880ec </div>
<div style="display:none"> Gerrit-Change-Number: 21545 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Matt DeVillier <matt.devillier@gmail.com> </div>