
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
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
13 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.
13 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.
lefou
15 years ago
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
15 years ago
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
lefou
15 years ago
Report
screemo
15 years ago
Report
denisq
15 years ago
maybe kthinkbat is configured for BAT0?
i've /proc/acpi/battery/BAT1/state by default! (suse 10.0 - acer travelmate)
Report
lefou
15 years ago
If not, please try this version!
Report
denisq
15 years ago
Report
lefou
15 years ago
Sometime, programmers are blind, esp. if they look for the 10th time at the same line of code...
Report
denisq
15 years ago
Report
SystemParadox
15 years ago
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
lefou
15 years ago
> 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
15 years ago
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
lefou
15 years ago
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
lefou
15 years ago
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
Report
lefou
15 years ago
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 wish it had an icon to visually show that a power is connected when it is..
Osho
Report
Delvien
15 years ago
Report
lefou
15 years ago
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
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
# 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
lefou
15 years ago
Ok, will be updated. Thanks.
Report
watzke
15 years ago
Report
lefou
15 years ago
Sorry...
Report
watzke
15 years ago
Report