
KThinkBat
Source (link to git-repo or to original if based on someone elses unmodified work):
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
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.
Ratings & Comments
50 Comments
I posted the package of 0.2.8 for debian lenny: http://kde-apps.org/content/show.php/KThinkBat+Debian+Lenny?content=65334
kthinkbat-0.2.8-1.lotus.i586.rpm at http://home.scarlet.be/raoul.linux/rpm/kthinkbat.html
PKGBUILD is in ArchLinux's AUR
kthinkbat-0.2.7-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/lotus.html Raoul
http://www.aaue.dk/~janoc/#Linux
kthinkbat-0.2.6-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/lotus.html
kthinkbat-0.2.5-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/lotus.html
kthinkbat-0.2.4-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/ under DOWNLOAD section ( My SuSE RPM's )
Hi, seems that you forgot to increase the version info to 0.2.3. "About" still shows 0.2.2. Greetings m0nk
Did you compiled KThinkBat from source? If yes, please run make clean and rebuild again. If not, please contact the package provider, who made an misstake in his package build process, apparently. The source package contains the right version number.
kthinkbat-0.2.3-lotus.i586.rpm at http://home.tiscali.be/raoul.linux/ under DOWNLOAD section ( My Suse RPM's )
I have Lenovo N100 3000 laptop. Kthinkbat doesnt show the remaining time and the power meter does not show any value. They always shows "0" value on the tray icon. I have using MDV 2007 and kthinkbat 0.2.2
I think Lenovo's notebooks aren't supported because they aren't able to handle tp_smapi. Regards, Lenz.
You don't need tp_smapi to use KThinkBat. If no SMAPI is found on your laptop, the ACPI values provided via /proc/acpi/battery will be used. If you have a proper configured ACPI system and KThinkBat doesn't work for you, please post the output of the following command: cat /proc/acpi/battery/BAT0/*
Please try verion 0.2.6, which deals now with ACPI implementations, that don't report current power consumption values.
I booted up a new kernel without tp_smapi and KThinkBat used ACPI to display battery information. After compiling, installing, and loading tp_smapi, KThinkBat automatically switched over to the more accurate SMAPI BIOS display. Very good!
kthinkbat-0.2.2-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/ under DOWNLOAD section ( My SuSE RPMS's )
Hello, I have made a Mandriva 2007 package. It is available here: http://www.aaue.dk/~janoc/personal/linux/index.html
kthinkbat-0.2.1-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/ under DOWNLOAD section ( My Suse RPM's )
kthinkbat-0.2.0-lotus.i586.rpm at http://home.scarlet.be/raoul.linux/ under download section
Hi, I observed a behavior which seems to be a bug. I have two batteries in my thinkpad. I configured kthinkbat such that it shows individual displays for each battery. That seems to work. However when I connect and disconnect the AC power, only one battery's yellow indicator for AC power connectivity turns off and on. This becomes very confusing. I think both batteries yellow indicators should go off and on to indicate that AC is not connected. Osho
Thanks for reporting. I will check this, but give me three days, as I have examinations on Thursday.
Could you please answer the following questions? 1. Which battery AC indicator works wrong (1 or 2) ? 2. do you use ACPI provided or TP_SMAPI provided values ? (If you don't know, is the dir /sys/devices/platform/smapi/ present (then you are using TP_SMAPI BIOS) ? 3. Could you please send (private mail) me the output of the following commands ? (Please create these outputs in the same environment state, when KThinkBat shows you the wrong values/colors.) When using ACPI: # cat /proc/acpi/battery/BAT*/* When using TP_SMAPI: # cat /sys/devices/platform/smapi/BAT*/* # ls /sys/devices/platform/smapi/ac_adapter/ # cat /sys/devices/platform/smapi/ac_adapter/* Thanks in advance. PS: Your email address seems to be wrong. :(
i use kde 3.5 and the gentoo-ebuild... ck-new -fno-common -c -o batinfo.lo batinfo.cpp kthinkbat.cpp: In constructor `KThinkBat::KThinkBat(const QString&, KPanelApplet::Type, int, QWidget*, const char*)': kthinkbat.cpp:62: error: `assert' undeclared (first use this function) kthinkbat.cpp:62: error: (Each undeclared identifier is reported only once for each function it appears in.) kthinkbat.cpp: In member function `void KThinkBat::slotPreferences()': kthinkbat.cpp:96: error: `assert' undeclared (first use this function) kthinkbat.cpp: In member function `virtual void KThinkBat::mousePressEvent(QMouseEvent*)': kthinkbat.cpp:323: error: `assert' undeclared (first use this function) kthinkbat.cpp: In member function `virtual int KThinkBat::widthForHeight(int) const': kthinkbat.cpp:142: warning: unused parameter `int height' kthinkbat.cpp: In member function `virtual int KThinkBat::heightForWidth(int) const': kthinkbat.cpp:147: warning: unused parameter `int width' kthinkbat.cpp: In member function `virtual void KThinkBat::resizeEvent(QResizeEvent*)': kthinkbat.cpp:152: warning: unused parameter `QResizeEvent*e' kthinkbat.cpp: In member function `virtual void KThinkBat::paintEvent(QPaintEvent*)': kthinkbat.cpp:155: warning: unused parameter `QPaintEvent*event' make[2]: *** [kthinkbat.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/kthinkbat-0.1.5/work/kthinkbat-0.1.5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kthinkbat-0.1.5/work/kthinkbat-0.1.5' make: *** [all] Error 2 !!! ERROR: kde-misc/kthinkbat-0.1.5 failed. !!! Function kde_src_compile, Line 217, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message. jans-laptop ~ #
This problem is fixed. Please try this ebuild: https://192.168.1.21/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat/kthinkbat-0.1.5-r1.ebuild Don't forget to include this patch to files/ directory. https://192.168.1.21/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat/files/kthinkbat-0.1.5-assert-patch Good luck. ;)