-
 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   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


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

Battery Time Remaining

   0.4  

Plasmoid Binary

Score 80%
Battery Time Remaining
zoom


Battery Time Remaining
zoom


Battery Time Remaining
zoom


Minimum required   KDE 4.x
Downloads:  1412
Submitted:  Apr 25 2010
Updated:  Oct 5 2012

Description:

This project is discontinued. Please do not use this. Use the default plasmoid from KDE.

There will be no more updates.


Battery Remaining Time Display Widget

Update: works with kde SC 4.5


1. By default it \"constantly\" displays the \"Battery time remaining\" in HH : MM (when discharging).

2. Alternatively, you can change it to per cent remaining in \"Settings\".

3. When AC-adaptor is connected it displays the \"Time required to reach full charge\".

4. Complete integration with \"Power management - Power Devil\"


REQUIREMENTS:
A recent KDE SC 4.5 or above for version 0.4

(if you have 4.4 or lower then use version 0.3)

If you have kubuntu then issue:
sudo apt-get build-dep kdeplasma-addons
For a list of dependencies for other distros see Depends packages:
http://packages.ubuntu.com/karmic/kdeplasma-addons

INSTALL:
tar jxvf
cd plasma-??????
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=Release ../
make
make install
(or you may need sudo make install)

USING:
1. Logout of KDE SC and then login again.
2. Add Widgets -> \"Remaining Time\"

FAQ:
If you have problems please check that you can _read_ permission for the two files:
`kde4-config --prefix`/lib/kde4/plasma_applet_remainingtime.so
`kde4-config --prefix`/share/kde4/services/plasma-remainingtime.desktop

After inserting the AC-adaptor the widget takes approx.10 sec to update.
This is because
$> plasmaengineexplorer --engine powermanagement

takes sometime to update. (can someone help me and send a patch).

If you have strange \"time remaining values\" please check the directory:
/proc/acpi/battery/BAT{0,1}
Contact your distro or laptop manufacturer. Some batteries report strange values: See for example:
https://bugzilla.redhat.com/show_bug.cgi?id=439460
https://bugs.launchpad.net/bugs/460631


UNINSTALL:
Delete the two files:
`kde4-config --prefix`/lib/kde4/plasma_applet_remainingtime.so
`kde4-config --prefix`/share/kde4/services/plasma-remainingtime.desktop
and logout and login again

CREDITS:
(Whereas Battery Plasmoid with Remaining Time shows the time only on mouse hover my plasmoid shows "Data" constantly.)
http://kde-look.org/content/show.php?content=120309




Changelog:

Monochrome icons: There is now space between the time and icons in the new monochrome icons kde 4.5 SC for Lucid.

0.4: works with kde 4.5

0.3 Fixed the paint colour font problem.

0.2: Change line 59: in file batterytime.cpp

from: Separator
to : KSeparator

0.1: initial version

Can anyone help me with translations.




LicenseGPL
Source(kde 4.5 plasma-batterytime-monochrome-0.4.tar.gz)
Source(plasma-batterytime-0.1.tar.bz2)
Source(plasma-batterytime-0.2.tar.bz2)
Source(Lucid: plasma-batterytime-monochrome-0.2.tar.gz)
Source(kde 4.4 plasma-batterytime-monochrome-0.3.tar.gz)
Send to a friend
Subscribe
Other  Apps  from biophysics
Report inappropriate content



goto page:  1  2 

-

 :(

 
 by nameless89 on: Apr 25 2010
 
Score 50%

Scanning dependencies of target plasma_applet_batterytime
[ 66%] Building CXX object CMakeFiles/plasma_applet_batterytime.dir/plasma_applet_batterytime_automoc.o
[100%] Building CXX object CMakeFiles/plasma_applet_batterytime.dir/batterytime.o
/usr/src/plasma-batterytime-0.1/batterytime.cpp:59:28: error: Plasma/Separator: Nincs ilyen fájl vagy könyvtár
/usr/src/plasma-batterytime-0.1/batterytime.cpp: In constructor ‘Battery::Battery(QObject*, const QVariantList&)’:
/usr/src/plasma-batterytime-0.1/batterytime.cpp:104: error: ‘ActiveStatus’ is not a member of ‘Plasma’
/usr/src/plasma-batterytime-0.1/batterytime.cpp:104: error: ‘setStatus’ was not declared in this scope
/usr/src/plasma-batterytime-0.1/batterytime.cpp: In member function ‘void Battery::dataUpdated(const QString&, const QHash<QString, QVariant>&)’:
/usr/src/plasma-batterytime-0.1/batterytime.cpp:264: error: ‘PassiveStatus’ is not a member of ‘Plasma’
/usr/src/plasma-batterytime-0.1/batterytime.cpp:264: error: ‘setStatus’ was not declared in this scope
/usr/src/plasma-batterytime-0.1/batterytime.cpp:266: error: ‘NeedsAttentionStatus’ is not a member of ‘Plasma’
/usr/src/plasma-batterytime-0.1/batterytime.cpp:266: error: ‘setStatus’ was not declared in this scope
/usr/src/plasma-batterytime-0.1/batterytime.cpp:268: error: ‘ActiveStatus’ is not a member of ‘Plasma’
/usr/src/plasma-batterytime-0.1/batterytime.cpp:268: error: ‘setStatus’ was not declared in this scope
make[2]: *** [CMakeFiles/plasma_applet_batterytime.dir/batterytime.o] Error 1
make[1]: *** [CMakeFiles/plasma_applet_batterytime.dir/all] Error 2
make: *** [all] Error 2


Reply to this

-

 Re: :(

 
 by biophysics on: Apr 25 2010
 
Score 50%

You do not have the include files:

`kde4-config --prefix`/include/plasma/widgets/separator.h

Install all the include files for plasma


Reply to this

-

 Re: Re: :(

 
 by biophysics on: Apr 25 2010
 
Score 50%

Please use version 0.2 or edit
line 59: in file batterytime.cpp

from: Separator
to : KSeparator

Hope this works.


Reply to this

-
.

 Re: 02 breaks build

 
 by bitcrazy on: Apr 25 2010
 
Score 50%

While version 0.1 builds, changes in 0.2 on batterytime.cpp breaks the build:
/usr/src/packages/BUILD/plasma-batterytime-0.2/batterytime.cpp:59:29: error: Plasma/KSeparator: No such file or directory.

m0nk


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: Re: 02 breaks build

 
 by biophysics on: Apr 25 2010
 
Score 50%

which distro and kde sc version are you using ?

0.1 and 0.2 have the same features. So it is no problem.


Reply to this

-
.

 Re: 02 breaks build

 
 by bitcrazy on: Apr 26 2010
 
Score 50%

Correct, I still use 0.1 on somewhat openSUSE 11.2 with a spice of KDE 4.4.2 and Qt 4.6.2.

m0nk


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 separator.h

 
 by gcp420 on: May 28 2010
 
Score 50%

Where do I get all these header files

Ganesh


Reply to this

-

 Re: separator.h

 
 by biophysics on: May 28 2010
 
Score 50%

If you have kubuntu then issue:
sudo apt-get build-dep kdeplasma-addons
For a list of dependencies for other distros see Depends packages:
http://packages.ubuntu.com/karmic/kdeplasma-addons


what distro and version are you using ?


Reply to this

-
.

 monochrome

 
 by hallowname on: Apr 26 2010
 
Score 50%
hallownamehallowname
Tattooz / Konquer The World!
Home
-
Drake Justice 2

Tattooz / Konquer The World!
United States of America, Anderson
Last visit Jan 7 2011
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

does this use the monochrome svg styling when in a panel or systray? eg, liek trunk 'battery'.


Reply to this

-

 Re: monochrome

 
 by biophysics on: Apr 27 2010
 
Score 50%

yes. see the screenshot.


Reply to this

-

 Re: Re: monochrome

 
 by hallowname on: Apr 28 2010
 
Score 50%
hallownamehallowname
Tattooz / Konquer The World!
Home
-
Drake Justice 2

Tattooz / Konquer The World!
United States of America, Anderson
Last visit Jan 7 2011
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

erm. the screenshots dont use the monochromatic svg. :P


Reply to this

-

 Re: Re: Re: monochrome

 
 by biophysics on: May 1 2010
 
Score 50%

The icons are from whatever kde sc you installed in your prefix.
BTW what do you mean my monochromatic icons in trunk. I can see the same coloured icons as this in trunk.
http://websvn.kde.org/trunk/kdesupport/oxygen-icons/48x48/status/

can you send me the URL of the monochrome icons ?
Thanks,


Reply to this

-

 Re: Re: Re: Re: monochrome

 
 by hallowname on: May 5 2010
 
Score 50%
hallownamehallowname
Tattooz / Konquer The World!
Home
-
Drake Justice 2

Tattooz / Konquer The World!
United States of America, Anderson
Last visit Jan 7 2011
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

no time to hunt for them at the moment. it's panel/constrained only. else it uses regular battery-oxygen. and monochrome is default in trunk(4.4.72+). svn up, clean build, install. you'll see. :) thanks for the widget tho.


Reply to this

-

 0.1 work fine in archlinux

 
 by cazador on: Apr 27 2010
 
Score 50%

Hi! great plasma :)
I use archlinux + kde 4.4.2 + qt4.6.2 and version 0.1 work fine :D the version 0.2 error with kseparator.

thank you for your great job!
Best regards!


Reply to this

-

 Re: 0.1 work fine in archlinux

 
 by marcotangaro on: May 31 2010
 
Score 50%

I confirm, 0.1 works in archlinux, but there is kseparator error in 0.2


Reply to this

-

 Re: Re: 0.1 work fine in archlinux

 
 by biophysics on: May 31 2010
 
Score 50%

Change line 59

from: Separator
to : KSeparator

0.2 monochrome will compile


Reply to this

-

 Little bug?

 
 by marcotangaro on: Jun 1 2010
 
Score 50%

the lucid monochrome work very well... but I'm using elegance black plasma theme, but time remaining does not follow theme color font and is black too...


Reply to this

-

 Re: Little bug?

 
 by biophysics on: Jun 2 2010
 
Score 50%

Could you try plasma-batterytime-monochrome-0.3.tar.gz - hope it is fixed.
Thanks.


Reply to this

-

 Re: Re: Little bug?

 
 by marcotangaro on: Jun 2 2010
 
Score 50%

fixed you rock!
thanks


Reply to this

-
.

 battery not found

 
 by ademmer1977 on: Jul 20 2010
 
Score 50%

I run openSUSE 11.3 with KDE 4.5 and your plasmoid compiled and installed fine. But it does not find my battery. I launched it with the plasmoidviewer to see whether it complains about something but everything seems to work fine. Before looking into the code: Where is the batteryinfo supposed to be found?


I am not out to destroy Microsoft. That will be just an completely unintentional sideeffect. (Linus Torvalds)
Reply to this

-

 Re: battery not found

 
 by biophysics on: Jul 22 2010
 
Score 50%

If you read the description:

$> plasmaengineexplorer --engine powermanagement

Select powermanagement and you should see Battery-> has Battery -> true

Can you type this in a Konsole and paste the output for me here in comments:
$> solid-hardware query 'IS Battery'

May be you can logout or restart the machine?

Does the standard battery applet detect the battery?


Reply to this

-
.

 Re: Re: battery not found

 
 by ademmer1977 on: Jul 22 2010
 
Score 50%

The plasma pm engine seems to work:
http://imagebin.ca/view/65ciFJ.html

This is the ouput of the query "solid-hardware query 'IS Battery'":
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'

I already tried rebooting - it did not fix the problem.

Found on openSUSE 11.3 and KDE 4.4.93.


I am not out to destroy Microsoft. That will be just an completely unintentional sideeffect. (Linus Torvalds)
Reply to this

-
.

 Re: Re: Re: battery not found

 
 by ademmer1977 on: Jul 22 2010
 
Score 50%

Forgot to mention: The default battery plasmoid works well.


I am not out to destroy Microsoft. That will be just an completely unintentional sideeffect. (Linus Torvalds)
Reply to this

-
.

 Re: Re: Re: Re: battery not found

 
 by ademmer1977 on: Jul 23 2010
 
Score 50%

How does your plasmoid determine the remaining time? Through solid? Then I figured it out, whats going wrong. Solid wraps "lshal" and that displays an rate of 0. So no remaining time display for me... :-/


I am not out to destroy Microsoft. That will be just an completely unintentional sideeffect. (Linus Torvalds)
Reply to this

-

 Re: Re: Re: Re: Re: battery not found

 
 by biophysics on: Jul 29 2010
 
Score 50%

perhaps you can remove the power adaptor (wait a minute) and post the plasmaengineexplorer

some batteries show zero with power adaptor connected.


Reply to this

-

 Some suggestions

 
 by giaur on: Jul 25 2010
 
Score 50%

It works nice (Debian Sid), but:
- It shold be possible to remove text label next to icon (configuration option for this is not bad idea), for me, this text label is not necessary at all
- Why not standard power devil icons? Your icon is not very nice (my opinion)


Reply to this

-

 Re: Some suggestions

 
 by biophysics on: Jul 29 2010
 
Score 50%

the reason for me to do this plasmoid is that I would like to see the time (my opinion).

These icons are the new icons of kde SC. They are not my icons.

If you want to old icons then you can use the previous version of plasmoid.


Reply to this

-

 Re: Re: Some suggestions

 
 by giaur on: Jul 29 2010
 
Score 50%

For me, time display next to tray icon is not needed. In my opinion, displaying this time in popup message is enough. So, I suugest to add configuration option for remove displaying time in tray (but, of course remaining time should be still displayed on popup window after I click the icon).


Reply to this

-

 Re: Re: Re: Some suggestions

 
 by biophysics on: Jul 30 2010
 
Score 50%

>is enough. So, I suugest to add >configuration option for remove displaying time in tray (but, of course >remaining time should be still >displayed on popup window after I click

Thanks for the suggestion.

May I request you to perhaps send a patch?

Unfortunately, I am having very busy work these days.


Reply to this

goto page:  1  2 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

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

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

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.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.