KThinkBat

System Software

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

KThinkBat is a laptop battery monitor for the KDE -Kicker written by Tobias Roeser. It is inspired by the "Battery Maximizer" included with IBM ThinkPads (now Lenovo).

Although there are allready some battery monitor applications for the K-Desktop Environment , they ar mostly too small to realize the current battery charge at first blush. Additionally, KThinkBat shows you the current power consumption of the laptop and brings support for a second battery.

The Layout of this applet is completelly customizable including number of batteries, colors, sizes, fonts

Packages for other Linux Distributions can be found on KThinkBat's homepage (https://lepetitfou.dyndns.org/kthinkbat).

Please post bug reports and ideas to the issue tracker system at https://lepetitfou.dyndns.org/kthinkbat
Last changelog:

12 years ago

KThinkBat 0.2.9 - 16.12.2007:
- New ACPI battery backend for new sysfs ACPI interface 'power_supply' for Linux Kernels >=2.6.24_rc1
- Refactored battery backend: Each backend has it's own driver
Available battery drivers: ACPI, ACPI_SYSFS (alpha), SMAPI
- make install installs kthinkbat_panelapplet.{la,so} now into $PREFIX/lib/kdeX
- Translation updates: German, Italian, Slovak
- Fixed regression bug: mW to mWh in some places
- Don't show percentage values greater than 100.

C

lefou

14 years ago

Arg! These local links are nasty.

Please use:
https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat/kthinkbat-0.1.5-r1.ebuild
and
https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat/files/kthinkbat-0.1.5-assert-patch

Report

screemo

14 years ago

Great tool there :)

The new beta3 now works on my T43 !

Could you maybe create an option for changing the colors of the text inside the applet ? When using transperant kicker with a darker color, the fonts is not easily readable.

cheers!

Report

C

lefou

14 years ago

0.1.5 RC 1 should make you happy :)

Report

screemo

14 years ago

oh my I better get it downloaded ! :)

Report

denisq

14 years ago

kpowersave works fine, but kthinkbat does not show my battery status.
maybe kthinkbat is configured for BAT0?
i've /proc/acpi/battery/BAT1/state by default! (suse 10.0 - acer travelmate)

Report

C

lefou

14 years ago

Are you using version 0.1.5_beta1?

If not, please try this version!

Report

denisq

14 years ago

i can confirm that is still not works! acpitool and any other acpi-related tools work fine, i'm wondering why kthinkbat is not able to get my batstatus! :-/

Report

C

lefou

14 years ago

I think, I found the bug, that gives you and possibly many others, the problem with the (second) ACPI battery.

Sometime, programmers are blind, esp. if they look for the 10th time at the same line of code...

Report

denisq

14 years ago

fine, finally it works now! Unfortunately the yellow pin does not disappear anymore when unplugging!

Report

SystemParadox

14 years ago

Hi.
Would it be possible for you to add an option to display the individual status of dual batteries?

You'd also need to have an option to get the status from the sysfs interface provided by tp_smapi, as the Linux ACPI interface will not show the second battery unless it was present on boot.

Report

C

lefou

14 years ago

> the Linux ACPI interface will not
> show the second battery unless it
> was present on boot.

Do you have tried to compile the acpi battery as module and reload it when pluggin' the second battery?

Report

SystemParadox

14 years ago

Trust me- I've tried everything. Without pretty substantial modifications to the kernel the sysfs interface is the only way. Even if the battery is present on boot, the proc interface does not work properly if the battery is swapped.

I've downloaded and installed 0.15_beta2 (or something) and interestingly the proc interface didn't work at all. The smapi interface works, and it's very useful (great job- thanks), but I have some more suggestions...

1. Currently it seems to give the average percentage of both batteries. I am always interested the percentage of individual batteries, so this is a bit annoying.
2. I usually have a very dark background and a transparent taskbar, so I can't read the numbers underneath the battery icon (if it's the current power usage then I'm not really interested in it anyway, but I thought I'd point this out).
3. I would find it very helpful to know the individual percentages of each battery- maybe have 2 battery icons?
4. Currently if I take out the main battery, the icon goes red, even if the ultrabay battery is 100%.
5. Should be able to set the level at which it goes red.
6. What is it the percentage of anyway? last_full_capacity? design_capacity? something else? I would prefer it to be of design capacity.
7. Looking through some of the source with my very limited experience of C, I noticed that it still uses the proc interface to get alarm levels, even if using the smapi interface. (Also see point 5). You can never assume that the other interface will be available- in my case- it probably won't be. Anyway- the alarm levels are just 5% (or something similar) and 1% of the design_capacity. Please note- these are FAR too low.

Report

C

lefou

14 years ago

Hi, thanks for you comment.

The problem with the not working acpi values is fixed in 0.1.5_rc1.

To your issues:
1. I'm planning an option to display both batteries with a separate battery symbol for version 0.1.6
2. Since version 0.1.5_rc1 you can select a different color for the text via the context menu
3. see 1)
4. I have to fix this. Could you please (private) mail me the output of the sysfs interface in this case
5. This will be definite a feature of the next version
6. It the last full capacity, because a battery never reaces it's design capacity after a while. Often the last full is around 70% of the design capacity
7. The sysfs interface has not such information, but see 5)

Report

C

lefou

14 years ago

The tp_smapi kernel module is ThinkPad specific. So this solution would only work on ThinkPads while KThinkBat works with every ACPI aware Laptop.

To switch between tp_smapi and acpi interface means a lot of work including some kind of config dialog.

I'm planing these features, but atm I'm very busy because I've to learn for my diploma examinations. Maybe you or anyone else will implement them and send me a patch...

Report

bugmenot

15 years ago

homepage url in posted ebuild is wrong, use .org instead of .de

Report

C

lefou

15 years ago

Why, the URL is just right.

Maybe you mean the copied ebuild from the first post, which is old and outdated.

You have to use the download link to get the right and up to date ebuild.

Report

oshogg

15 years ago

I have been looking for something like this for a while ago!!!

I wish it had an icon to visually show that a power is connected when it is..
Osho

Report

Delvien

14 years ago

Can anyone tell me where the icons are for this Utility? i want to make it look better, but need to know where the pictures are stored. So i can change the look of it

Report

C

lefou

15 years ago

It has allready. :)

If you are connected to AC, the +-Pin of the Battery is yellow. The Screenshot is in unconnected state.

Maybe I should mentioned it on the this page.

Report

oshogg

15 years ago

Hi,

Thanks. That is very subtle indication howerver. Maybe there should be a symbol such as power plug next to it when connected??/

thanks for the great app though.
Osho

Report

watzke

15 years ago

what about:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde

DESCRIPTION="A ThinkPad Battery Viewer Applet"
HOMEPAGE="http://lepetitfou.dyndns.de/download/kthinkbat"
SRC_URI="http://lepetitfou.dyndns.org/download/kthinkbat/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="x86 amd64"
S=${WORKDIR}/${PN}

need-kde 3.3

PS: It compiles on amd64 w/ gcc4

Report

C

lefou

15 years ago

You mean ebuid could better.

Ok, will be updated. Thanks.

Report

watzke

15 years ago

SRC_URI cannot be https! Just http! Don't change it. :(

Report

C

lefou

15 years ago

Ok, I understand. I have changed it to http and corrected the .de part to .org.

Sorry...

Report

watzke

15 years ago

No, i mean it's bad, because contains bad SRC_URI, etc.

Report

12 years ago

KThinkBat 0.2.9 - 16.12.2007:
- New ACPI battery backend for new sysfs ACPI interface 'power_supply' for Linux Kernels >=2.6.24_rc1
- Refactored battery backend: Each backend has it's own driver
Available battery drivers: ACPI, ACPI_SYSFS (alpha), SMAPI
- make install installs kthinkbat_panelapplet.{la,so} now into $PREFIX/lib/kdeX
- Translation updates: German, Italian, Slovak
- Fixed regression bug: mW to mWh in some places
- Don't show percentage values greater than 100.

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.9
updated Dec 16 2007
added Nov 19 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags app software