Bug#486873: [PATCH] support batteries which don't provide energy_now v2

2008-09-01 Thread Michal Hocko
Attached patch is updated vetsion of the previous one with the fixed rate calculation (/sys/class/power_supply/*/current_* are in ľA according to the linux-src/Documentation/power/power_supply_class.txt and not in ľW as expected by the original code). Please note that I don't have any notebook whi

Bug#486873: patch

2008-09-01 Thread Michal Hocko
On Mon, Sep 01, 2008 at 02:14:46PM -0400, Joey Hess wrote: > The patch is better than nothing, though I don't trust the values it > reports when on battery. This is what I see when discharging: I have just found out that vanilla kernel (as I have mentioned in the original email with the patch) wor

Bug#486873: patch

2008-09-01 Thread Joey Hess
Patrick Winnertz wrote: > Hey Joey, > > > [EMAIL PROTECTED]:~/tmp/powertop-1.10>acpi > > Battery 0: Discharging, 87%, 00:04:51 remaining > > > Thanks, I'll have a look on this tomorrow. Please do not NMU. I attached an NMU diff just because I was testing a NMU when I saw that the report of t

Bug#486873: patch

2008-09-01 Thread Patrick Winnertz
Hey Joey, > [EMAIL PROTECTED]:~/tmp/powertop-1.10>acpi > Battery 0: Discharging, 87%, 00:04:51 remaining > Thanks, I'll have a look on this tomorrow. Please do not NMU. Thanks in advance Greetings Winnie signature.asc Description: This is a digitally signed message part.

Bug#486873: patch

2008-09-01 Thread Joey Hess
The patch is better than nothing, though I don't trust the values it reports when on battery. This is what I see when discharging: Power usage (ACPI estimate): 2.4W (23.0 hours) Obviously, I'm not really that lucky. [EMAIL PROTECTED]:~/tmp/powertop-1.10>acpi Battery 0: Discharging, 87%, 00:

Bug#486873: [PATCH] support batteries which don't provide energy_now

2008-07-22 Thread Michal Hocko
Package: powertop Version: 1.10-1 Followup-For: Bug #486873 Hi, I have exatly the same problem like the one reported in this issue. After some discussion with battery kernel module it seems that some batteries don't export energy_now attribute and export only charge_now value. Nevertheless energy