<div dir="ltr">On Tue, Feb 12, 2013 at 9:28 PM, Richard Hughes <span dir="ltr"><<a href="mailto:hughsient@gmail.com" target="_blank">hughsient@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11 February 2013 00:38, mark ellis <<a href="mailto:m@rkellis.com">m@rkellis.com</a>> wrote:<br>
> I've made a new patch that works just the same, but instead of copy and<br>
> pasting i've just moved the block that works out energy-full and<br>
> energy-full-design out of the coldplug if.<br>
<br>
</div>So energy-full and energy-full-design actually change at runtime?! If<br>
that's the case, I guess your patch makes sense. Could you grab me the<br>
output the full output of the sysfs battery device before and after<br>
the energy-full-design value changes please? Thanks.<br></blockquote><div><br></div><div style>They do change, but only for a split second (because the battery is broken, and lies about it's charge state every now and then) so I can't get a dump of before and after (well I can but they're the same). </div>
<div style><br></div><div style>The only noticeable change is that according to upower energy-full goes up, from around 48Wh to ~700Wh, which makes the calculation for remaining energy way off. </div><div style><br></div>
<div style>This patch just means that upower will reread what the battery says it's charge_full is so it can work out the correct % remaining. Before this patch I had to restart upower every so often (sometimes every few minutes, sometimes longer).</div>
<div style><br></div><div style>I wish I could provide more info to help, but it's all because of the broken battery, and it's a nightmare trying to track it down!</div><div style><br></div><div style>Hope this helps,</div>
<div style><br></div><div style>Mark</div></div></div></div>