There is nice kde thinkpad battery monitor based on tp_smapi which is in the portage already. Here is a latest ebuilds for it: https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat/
Created attachment 80775 [details] ebuild for the latest version of KThinkBat. I'm the author of KThinkBat and be willing to maintain any new version of this ebuild. On some (maybe older) KDE installations will the assert.h not included through the kde libraries. This gives a compile error which is resolved in the next -r1 version of the ebuild.
Created attachment 80776 [details] app-laptop/kthinkbat-0.1.5-r1.ebuild This ebuild assumes the patch (see next attachment) in files directory.
Created attachment 80777 [details, diff] kthinkbat-0.1.5-assert-patch This patch will be needed for app-laptop/kthinkbat-0.1.5-r1 to solve a compile error with missing <assert.h> include. This problem is fixed upstream. Patching will not be necessary in next version.
Created attachment 92550 [details] app-laptop/kthinkbat-0.1.6.ebuild New version of KThinkBat (0.1.6) is available. It works stable and is used by many people outside of gentoo, too. Please include it to the main portage tree.
*** Bug 141488 has been marked as a duplicate of this bug. ***
One thing for clarification: Although KThinkBat can optionally use app-laptop/tp_smapi on IBM Laptops, it doesn't need it. KThinkBat works with any ACPI Laptop, independent of the brand.
ebuild for version 0.1.9 can be found here: https://lepetitfou.dyndns.org/wiki/view/Werkstatt/KThinkBat#Download
Latest version of KThinkBat is 0.2.2. An ebuild can be (as always) found here: https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat/kthinkbat-0.2.2.ebuild
https://lepetitfou.dyndns.org/svn/gentoo/lefous_portage_overlay/app-laptop/kthinkbat/kthinkbat-0.2.6.ebuild Bumping this. KThinkBat works stable on all installations I know. An ebuild is available, too. It is a nice laptop battery monitor for any ACPI laptop and there is no comparable other software in the tree. Maybe I'll find a proxy maintainer?
Created attachment 120025 [details] app-laptop/kthinkbat-0.2.6.ebuid ebuild for the latest stable version of kthinkbat
works for me on an ibm/lenovo x60s, apart from the fact that the current consumption/remaining time is only shown with panel size "normal" (or bigger).
(In reply to comment #11) > works for me on an ibm/lenovo x60s, apart from the fact that the current > consumption/remaining time is only shown with panel size "normal" (or bigger). > This is not a bug but a feature. You can configure the layout of KThinkBat in it's preferences dialog. If you panel is to small you can either make the battery gauge smaller or deselect "Info Field below of Battery Gauge" or select a smaller font for the info field or a combination of these settings, as you prefer.
Btw, actual ebuild can be found in 'lefous_portage_overlay'. Overlay page: http://lepetitfou.dyndns.org/projects/gentoo/wiki/LefousPortageOverlay Direct Link to kthinkbat-0.2.8.ebuild: https://lepetitfou.dyndns.org/svn/gentoo/lefous_portage_overlay/app-laptop/kthinkbat/kthinkbat-0.2.8.ebuild SVNebuild: https://lepetitfou.dyndns.org/svn/gentoo/lefous_portage_overlay/app-laptop/kthinkbat-svn/kthinkbat-svn-0.ebuild
(In reply to comment #12) > You can configure the layout of KThinkBat in it's preferences dialog. If you > panel is to small you can either make the battery gauge smaller or deselect > "Info Field below of Battery Gauge" or select a smaller font for the info field > or a combination of these settings, as you prefer. Thanks for clarifying. This works for the small panel size. With a "tiny" panel the info text does not fit even the smallest available height (10/2). Anyway - 0.2.8 also works for me. (:
(In reply to comment #14) > This works for the small panel size. With a "tiny" panel the info text does not > fit even the smallest available height (10/2). Well.. there is an option for the font size too. I'm just too tired.
Looks good. Added to the tree.