https://bugzilla.novell.com/show_bug.cgi?id=361663 Summary: Wrong total remaining battery time of "Powersave Informations Dialog" on HP Compaq nx6125 Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Mobile Devices AssignedTo: zoz@novell.com ReportedBy: Tob_Sch@gmx.de QAContact: qa@suse.de Found By: --- This is the continuation of Bug 347219 I'm running openSUSE 10.3 x86_64 with the newest patches on a HP Compaq nx6125 notebook with a primary and an additional travel battery. When the Primary battery is full and the Travel battery is discharging, the remaining battery time of both batteries (Travel + Primary) is always as big as the remaining battery time of the discharging Travel battery. With former versions of OpenSUSE, this worked, I remember. Before closing this bug again with the words "there is no way to calculate the time correctly for both batteries atm.", please read this: Here'is a better method for calculating the total remaining battery time (t12) of the primary (B1) and the travel battery (B2) together: P=U*I <=> I=P/U W=P*t Q=I*t <=> t=Q/I t=Q/I=Q*U/P case B1 discharging, B2 charged: case B1 charged, B2 discharging: t12 = t1 + t2 = Q1/I1 + Q2/I2 = Q1*U1/P1 + Q2*U2/P2 => assuming that P=P1=P2 over remaining time, assuming that U is constant over remaining time (I know in reality, U decreases with decreasing remaining time ;-) => (Q1*U1 + Q2*U2)/P => assuming that I1=0 or I2=0 => t12 = (Q1*U1 + Q2*U2)/(U1*I1 + U2*I2) where t12=total remaining battery time of primary and travel battery together Q1=/proc/acpi/battery/C17B/state:remaining capacity Q2=/proc/acpi/battery/C17C/state:remaining capacity U1=/proc/acpi/battery/C17B/state:present voltage U2=/proc/acpi/battery/C17C/state:present voltage I1=/proc/acpi/battery/C17B/state:present rate I2=/proc/acpi/battery/C17C/state:present rate Please don't hit me, I know, that this is only an approximation (but much better than the status quo of "KPowersave Informations dialog"s total remaining battery time, if two batteries were residing in a notebook ;-) If you want more precision, you have always got to record, keep and evaluate the last complete U-Q-diagrams of both batteries to calculate the integral (assuming that this graph is independent from the I-t-diagrams ;-) case B1 discharging, B2 discharging: (perhaps, no notebook has this discharging design ) t12 = t1 * t2 = Q1/I1 + Q2/I2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.