Bug 62297 - battery power running out: 0 min left
Summary: battery power running out: 0 min left
Alias: None
Product: klaptopdaemon
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
Depends on:
Reported: 2003-08-07 07:27 UTC by Chris Ford
Modified: 2003-08-10 13:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ford 2003-08-07 07:27:17 UTC
Version:           1.3 (using KDE KDE 3.1.2)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.3-r1 
OS:          Linux

I have an HP ze1115 which basically had no bios and must use acpi to function properly in linux.  For some reason my computer will not return a present rate of change for the battery discharging so klaptop can calculate the number of minutes left, therefore I get the error box shown in the title of this bug.  Here is some of my output:

root@laptop ctford0 # cat /proc/acpi/battery/BAT0/info
present:                 yes
design capacity:         4016 mAh
last full capacity:      4011 mAh
battery technology:      rechargeable
design voltage:          9600 mV
design capacity warning: 602 mAh
design capacity low:     401 mAh
capacity granularity 1:  201 mAh
capacity granularity 2:  3409 mAh
model number:            QT07
serial number:
battery type:            LION
OEM info:                SANYO

root@laptop ctford0 # cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            unknown
remaining capacity:      762 mAh
present voltage:         9600 mV

Now I know that I am not the only user who has this problem.  Is there anyway that klaptop could be changed so that it calculates the rate on its own?  Or perhaps even go on a percentage of battery remaining instead of remaining time for users such as I?

The rate itself would be easy to calculate if it could poll the state file once a minute or something, it could then calculate the rate and I would not see that warning.  Also I might be able to use the sleep ablities of klaptop then also.

A fix for this or maybe a hint for a work around would be great.


Comment 1 Volker Krause 2003-08-09 16:33:05 UTC
This still applys to CVS HEAD.
Comment 2 Volker Krause 2003-08-10 13:53:30 UTC
Subject: kdeutils/klaptopdaemon

CVS commit by vkrause: 

Use -1 instead of 0 as a default value for the remaining battery time. 
This will result in falling back to remaining time interpolation based on the 
battery percentage if we can't provide useful values e.g. based on the ACPI 
discharging rate.

CCMAIL 62297-done@bugs.kde.org