-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans (2) .- Knowledge Base  . 

Enhanced Battery Monitor

   0.9.1  

Plasmoid Script

Score 71%
Enhanced Battery Monitor
zoom


Depends on  KDE 4.x
Downloads:  1674
Submitted:  Sep 13 2012
Updated:  Dec 28 2013

Description:

This is the enhanced battery monitor that for now shows the battery\'s remaining time apart from the features in the default plasmoid.

EDIT: This plasmoid is no longer maintained.




LicenseGPL
(enhanced-battery.plasmoid)
Send to a friend
Subscribe
Other  Artwork  from viranch
Report inappropriate content



goto page: prev   1  2  3 

-

 Displays only one of two batteries

 
 by claude0001 on: Oct 15 2012
 
Score 50%

Hi viranch. Many thanks for making this non-official version available.

I have a system (Lenovo T400) with two batteries. The Enhanced Battery Monitor correctly displays the total remaining time.

However, it displays only the charge state of one battery, although two ("Battery0" and "Battery1") show up correctly as sources in Plasma Engine Explorer.

The tooltip states e.g. "Battery: 93% (discharging)". Comparison with the information form Plasma Engine Explorer suggests that this corresponds to "Battery0". The information for "Battery1" is omitted.

I'm running Ubuntu 12.04.1 with Kernel 3.2.0 (amd64) and KDE 4.9.2.


Reply to this

-
.

 Re: Displays only one of two batteries

 
 by viranch on: Oct 15 2012
 
Score 50%

Did you set the "Show info for each battery" configuration option?


Reply to this

-

 Re: Re: Displays only one of two batteries

 
 by claude0001 on: Oct 15 2012
 
Score 50%

"Show info for each battery" was already set.

After some trying around I now believe that the problem is related to hibernation (aka. suspend-to-disk): Upon resume from hibernation, the plasmoid reproducibly "forgets" about one of the two batteries, although the information displayed by Plasma Engine Explorer is always correct.

After a clean reboot both batteries show up again in the plasmoid. Sending the system to sleep (suspend-to-ram) does not seem to result in "loss" of one battery.

All in all, the problem is less important than I first thought. Still, maybe things can be improved by somehow re-initialising the battery count upon resume ... ?


Reply to this

-
.

 Re: Re: Re: Displays only one of two batteries

 
 by viranch on: Oct 15 2012
 
Score 50%

That's odd, does the official plasmoid have the same problem?


Reply to this

-

 Re: Re: Re: Re: Displays only one of two batteries

 
 by claude0001 on: Oct 15 2012
 
Score 50%

At first sight, the situation with the official plasmoid seems to be worse: Right now I cannot get it to display both batteries ("show all batteries" is set of course) even after a clean boot. I will test further though ...

I was using the official plasmoid on KDE 4.8.5 til yesterday, where it always worked as it should. I do not know if it ever worked properly on KDE 4.9.2 as I immediately switched to the unofficial plasmoid to get the remaining-time-feature back.

Sorry for double posting btw. it seems to happen when Firefox refreshes the page after submission ...


Reply to this

-

 Re: Re: Re: Re: Re: Displays only one of two batte

 
 by viranch on: Oct 16 2012
 
Score 50%

The official plasmoid did not support multiple batteries for a couple of releases, but was fixed in 4.9.2. So please check if the official plasmoid in 4.9.2 works as expected. Since I don't have a computer with multiple batteries I can't test it myself.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Displays only one of two b

 
 by claude0001 on: Oct 16 2012
 
Score 50%

I now used both plasmoids side-by-side for one day.

The official plasmoid consistently displays only one battery, no matter what I do.

The unofficial plasmoid (which I downloaded using the "add new widget" function of KDE) mostly works as it should, i.e. displays total remaining time and charge states for two batteries. Only when I send the machine into hibernation it often (though not always) forgets one battery upon resume. Rebooting or cycling to sleep state and back then restores display of the second battery. The issue is not critical for me, but indicates that something is undeterminate with the battery count upon resuming from hibernation. The information shown by Plasma Engine Explorer has never been wrong up to now.

I run KDE 4.9.2 installed from the Kubuntu-Backports repo. How can I tell if the version of the battery plasmoid packaged by the Kubuntu-devs is really the most recent upstream version?



-
.

 Re: Re: Re: Re: Re: Re: Displays only one of two b

 
 by viranch on: Oct 17 2012
 
Score 50%

Thank you for thoroughly testing both versions of the plasmoid.

I just checked the release logs and realised that support for multiple batteries hasn't yet been shipped in 4.9.2, we'll probably do it in next release.

For the unofficial plasmoid, I will have to look into it. Thank you again for reporting the problem.



-

 Re: Re: Displays only one of two batteries

 
 by claude0001 on: Oct 15 2012
 
Score 50%

"Show info for each battery" was already set.

After some trying around I now believe that the problem is related to hibernation (aka. suspend-to-disk): Upon resume from hibernation, the plasmoid reproducibly "forgets" about one of the two batteries, although the information displayed by Plasma Engine Explorer is always correct.

After a clean reboot both batteries show up again in the plasmoid. Sending the system to sleep (suspend-to-ram) does not seem to result in "loss" of one battery.

All in all, the problem is less important than I first thought. Still, maybe things can be improved by somehow re-initialising the battery count upon resume ... ?


Reply to this

-

 patch to show time on icon

 
 by cyberbeat on: Dec 24 2012
 
Score 50%

I made some modifications to show the remaining time also on the battery icon:

diff -r enbattery/contents/ui/batterymonitor.qml ../../../../../Downloads/153981-enhanced-battery/contents/ui/batterymonitor.qml
52,53d51
< property int remainingMsec: Number(pmSource.data["Battery"]["Remaining msec"])
<
90d87
< property int remainingMsec: Number(pmSource.data["Battery"]["Remaining msec"])
124c121
< text: show_remaining_time?formatDuration2(remainingMsec):i18nc("overlay on the battery, needs to be really tiny", "%1%", percent);
---
> text: i18nc("overlay on the battery, needs to be really tiny", "%1%", percent);
241,254d237
< }
<
< function formatDuration2(msec) {
< if (msec==0)
< return "";
<
< var time = new Date(msec);
< var hours = time.getUTCHours();
< var minutes = time.getUTCMinutes();
< if (minutes<10)
< minutes = "0"+minutes;
< var str = hours+":"+minutes;
<
< return str;


Reply to this

-
.

 Re: patch to show time on icon

 
 by viranch on: Dec 25 2012
 
Score 50%

your patch is a "reverse" one. you probably did- "diff your_plasmoid original_plasmoid" - which is wrong, you always do "diff old new", ie, "diff original_plasmoid your_plasmoid".


Reply to this

-

 Re: patch to show time on icon

 
 by tomchiverton on: Apr 25 2013
 
Score 50%

I'd love to see this as an option, given the KDE developers feel they know better than their users and removed this feature (even as an option) https://bugs.kde.org/show_bug.cgi?id=304510


Reply to this

-

 Re: Re: patch to show time on icon

 
 by tomchiverton on: Apr 13 2014
 
Score 50%

Here is the patch updated for the latest release of this widget. Turn on 'show charge information' in the widget prefs to see the time remaining on the battery icon.

$ diff -u batterymonitor.qml.orig batterymonitor.qml
--- batterymonitor.qml.orig 2014-04-13 13:43:57.976169606 +0100
+++ batterymonitor.qml 2014-04-13 13:48:38.216181061 +0100
@@ -85,6 +85,7 @@
property bool hasBattery: view.singleBattery ? batteries.cumulativePluggedin : model["Plugged in"]
property int percent: view.singleBattery ? batteries.cumulativePercent : model["Percent"]
property bool pluggedIn: pmSource.data["AC Adapter"]["Plugged in"]
+ property int remainingMsec: Number(pmSource.data["Battery"]["Remaining msec"])

width: view.width/view.count
height: view.height
@@ -118,7 +119,7 @@

Text {
id: overlayText
- text: i18nc("overlay on the battery, needs to be really tiny", "%1%", percent);
+ text: show_remaining_time?formatDuration2(remainingMsec):i18nc("overlay on the battery, needs to be really tiny", "%1%", percent);
color: theme.textColor
font.pixelSize: Math.max(parent.size/8, 11)
anchors.centerIn: labelRect
@@ -236,4 +237,18 @@
}
}
}
+ function formatDuration2(msec) {
+ if (msec==0)
+ return "";
+
+ var time = new Date(msec);
+ var hours = time.getUTCHours();
+ var minutes = time.getUTCMinutes();
+ if (minutes<10)
+ minutes = "0"+minutes;
+ var str = hours+":"+minutes;
+
+ return str;
+}
+
}


Reply to this

-

 Thumbs Up

 
 by EazyVG on: Feb 19 2013
 
Score 50%

Thanks a lot for this; I find it strange that estimated time is still not present in KDE 4.10!


Reply to this

-

 Re: Thumbs Up

 
 by EazyVG on: Feb 19 2013
 
Score 50%

BTW, I will be getting my second UltraBay battery (ThinkPad T430s) in about 2 weeks and will report back on the above issue in the posts.


Reply to this

-

 Re: Re: Thumbs Up

 
 by EazyVG on: Mar 2 2013
 
Score 50%

Got my second UltraBay battery. With 2 batteries the applet correctly displays their presence but the time remaining is showed first for the UltraBay battery and once it has been exhausted then for the 2nd which is the main battery once it starts discharging.

Anyways, showing total time for both is not of critical essence for me, and as I undesratnd it might be related with tp_smapi as the same is yet not fully supported (kernel 3.4.x openSUSE 12.2) on newer ThinkPad notebooks.

Thanks again for the applet.


Reply to this

-

 Re: Re: Re: Thumbs Up

 
 by EazyVG on: Mar 2 2013
 
Score 50%

BTW, in case of charge state it correctly displays state of total, i.e. both the batteries.


Reply to this

-
.

 only main battery? no mouse/keyboard batteries?

 
 by arekm on: Mar 26 2013
 
Score 50%

Recent upower + solid from kde git recognizes other type of batteries like logitech wireless mouse/keyboard/trackball batteries.

Unfortunatelly battery applet seems unable to deal with this type of batteries even with "show the state for each battery present" set.

Could support for this be added?

I guess "show the state for each battery present" should become "show the state for each battery type present" with such support.

[arekm@t400 ~]$ solid-hardware details '/org/freedesktop/UPower/devices/mouse_0003o046DoC52Bx00BC'
udi = '/org/freedesktop/UPower/devices/mouse_0003o046DoC52Bx00BC'
parent = '/org/freedesktop/UPower' (string)
vendor = 'Logitech, Inc.' (string)
product = 'M570' (string)
description = 'Unknown Battery' (string)
Battery.plugged = true (bool)
Battery.type = 'MouseBattery' (0x4) (enum)
Battery.chargePercent = 50 (0x32) (int)
Battery.rechargeable = true (bool)
Battery.chargeState = 'Discharging' (0x2) (enum)


Reply to this

-

 Re: only main battery? no mouse/keyboard batteries

 
 by viranch on: Mar 27 2013
 
Score 50%

I don't have the keyboard/mouse with a battery to test it out. If the remaining time doesn't bother you, you can use the default battery plasmoid.


Reply to this

-

 Re: Re: only main battery? no mouse/keyboard batte

 
 by arekm on: Mar 27 2013
 
Score 50%

The default also doesn't support this.


Reply to this

-

 This doesn't work on Mint 13 KDE

 
 by Myrmidon83 on: May 28 2013
 
Score 50%

This doesn't seem to work. I have installed the plasmoid and checked the box which says 'show time' but it only shows the percentage, KDE 4.10.3. :(

Is it something I have missed? Distro? KDE version?


Reply to this

-

 Re: This doesn't work on Mint 13 KDE

 
 by Myrmidon83 on: May 29 2013
 
Score 50%

Works now, didn't realise I had to click the icon, I thought hovering mouse over would show it. :P


Reply to this

-

 Translations

 
 by Winnerer on: Sep 22 2013
 
Score 50%

If there is availability to translate this plasmoid to another languages? I can make Russian translation!


Reply to this

goto page: prev   1  2  3 

Add commentBack






-

-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore




 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Participate
Groups
Forum
Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2001-2014 KDE-Look.org Team  
All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.