GNOME Bugzilla – Bug 747370
Backlight dropdown gets cut off
Last modified: 2015-06-30 21:18:28 UTC
Created attachment 300984 [details] screenshot This is on a hidpi monitor if that makes any difference.
Created attachment 306439 [details] [review] When battery reports amps not watts, approximate the power On systems that report battery capacity in amps, not watts, we can approximate the power used by looking at the reported battery voltage.
Created attachment 306440 [details] [review] Don't add together voltage_now values for multiple batteries If there are multiple batteries, it's not possible to compute an overall "voltage_now" for the system, so just ignore it.
Created attachment 306441 [details] [review] Improve the approximation of power from current P = Integral from Q1 to Q2 of V(Q)dQ Use: (V1 + V2)/2 * (Q2 - Q1) as the trapezoid rule approximation of this instead of: V2 * Q2 - V1 * Q1 which doesn't have a clear meaning. If V is constant, both are the same, but for example, if we had a capacitor with V(Q) = Q/C, then the old expression would over-estimate by a factor of 2, while the new expression is asymptotically right for small changes.
Attachment 306439 [details] pushed as 3eb42d2 - When battery reports amps not watts, approximate the power Attachment 306440 [details] pushed as b769f92 - Don't add together voltage_now values for multiple batteries Attachment 306441 [details] pushed as fa60529 - Improve the approximation of power from current