Battery life indicator

Booting, installing, newbie
Message
Author
Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

Battery life indicator

#1 Post by Rickers »

Hello


How do I install a battery life indicator on the GUI...??


Thanks

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

What is the computer?
I assume a laptop, but make and model?

What Puppy version?

Some Puppy versions already have one, if it is booted on a laptop.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

#3 Post by Rickers »

I have a Acer Netbook

The OS is BionicPUP32 8.0

At the moment there is a lightning bolt icon on the bottom panel. However I would like something more visual with a percentage of power indicator if possible.. :D

User avatar
8Geee
Posts: 2181
Joined: Mon 12 May 2008, 11:29
Location: N.E. USA

#4 Post by 8Geee »

Usually, if one puts mouse over the symbol in tray, a tooltip pops up with status and %. Apparently not in Bionic 32... but yes in Slacko5.7 (and AtomicPup-XIX for netbooks).

Regards
8Geee
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#5 Post by rufwoof »

gkrellm is a nice tool to add to a Puppy.

Screenshot is my current Fatdog desktop with a gkrellm above the sys-tray (towards the bottom right) - showing the battery and cpu, with 29% battery remaining.

gkrellm supports a wide range of options that can be displayed, many of them are animated - so adds some life to the desktop.

I've themed/positioned that (and most of the desktop icons) to blend in with the desktop wallpaper.
Attachments
gkrellm.png
(190.82 KiB) Downloaded 514 times
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#6 Post by greengeek »

Awesome wallpaper!

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#7 Post by Mike Walsh »

Yah, I'll echo Ian, ruffers; very nice indeed! Just out of curiosity, what theme are you using in gKrellM; it's a bit of a job to make it out, but I'll hazard a guess it's either 'D.A.E.', 'nix' or 'SuedE'. Am I anywhere close?

I tried several themes before I settled on one that works for me with all Pups, and doesn't look out of place; 'DreamWorks', by Anthony Liekens:-


Image


I'm running the 'gkleds' plugin down the bottom, which shows the state of your CapsLock, NumLock and ScrollLock keys.....though ScrollLock doesn't work in Puppy, as y'all know. It uses my 'global' font discovery from several months ago....Exo2.

You can get all the skins you want from here, of course. Plugins can be found here.


Mike. :wink:

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#8 Post by rufwoof »

That earlier image was using the ZixSaw theme Mike.

The one as per the attached image here is using the Cobalt theme (moved my desktop icons around, and added a net traffic monitor near the centre of screen as a second instance of gkrellm). You can set it so each separate gkrellm uses different themes if you prefer that.

As per this post and the one after it http://murga-linux.com/puppy/viewtopic. ... 78#1028378 I've also added a notification that pops up in a similar blueish colour at the top right of screen upon startup - to remind me to remove the boot usb as I'm now running Fatdog using a Multi-Session usb http://murga-linux.com/puppy/viewtopic.php?t=116147 (so everything is on the usb, including saves, and the usb can be removed once booted, only needing to be reinserted if I want to run another save action). And another script that monitors the battery level and puts up a red coloured notification once the battery level drops below 20%, along with a alert tone (and repeats at 5 minute intervals). Could have used gkrellm or other means to do similar, but prefer using my own script.

Could do with a few more animated gifs to add even more life into the desktop, something like your running dog, but more in keeping with that theme/desktop, such as oscilloscopes/sine waves :)
Attachments
Cobalt.png
(191.42 KiB) Downloaded 479 times
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#9 Post by rufwoof »

nix-gkrellm theme is quite a good fit for my wallpaper

In addition to adding the core and radeon temperatures above the battery power level, I've also added a un-decorated xterm at the top left of screen with a small font that is running htop
Attachments
nix-gkrellm.png
(190.55 KiB) Downloaded 454 times
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#10 Post by Mike Walsh »

@ ruffers:-

See here for Fred's GifOnDesktop stuff. It's how I got my running doggie on the desktop.

It creates a script which, when you're happy with it and have it positioned how you want it, you just stick in /root/Startup so it starts at boot time. You might need to open it up and fine-tune the x & y co-ordinates after it's been created; that was how I got mine in exactly the right place.

Umm; oscilloscopes. Sine waves, etc... GIFs? Ah; something like this, perhaps. In amongst the unrelated dross on this DuckDuckGo search, there's some quite interesting ones....which may be the kinda thing you're looking for..?

https://duckduckgo.com/?q=GIFs+of+oscil ... iax=images

giphy.com is another brilliant resource for all things GIF-related.

I find it's easiest to create a wee directory to hold just the GIF images for this, and nothing else. You may also want to 'modify' the GIF images themselves; re-size them, speed 'em up, slow them down, alter colour, brightness, contrast, rotate 'em in different directions, etc....so they're how you want them before creating the scripts. This site will do the lot:-

https://ezgif.com/

It's a sight easier, with this kind of thing, to let their servers handle the 'grunt' work than it is to attempt all that stuff yourself on your own machine. There's precious little in the way of GIF-editing software for Linux; I believe you can do some of it in ImageMagick, but the required terminal incantations make my head spin..!

(That script of Fred's, as far as I know you can run as many of these simultaneously as you want, so..... You have some possibilities, there.)

I'd better shut my pie-hole now, or else Flash will haul me over the coals for going way 'off-topic'..! :lol:


Mike. :wink:

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#11 Post by bigpup »

Getting back to your question about battery indicator.

That battery lightning bolt icon on the tray.
If you hover the mouse pointer over it, it should give you a pop up info.

Try installing this program.
Qbat
http://distro.ibiblio.org/puppylinux/pe ... -0.2.2.pet
After installing Qbat.
Will need to save if using a save.
Reboot to get Qbat started.

If you right click on the Qbat tray icon there is a settings option in the right click menu.
In settings you can adjust colors used and when you get a low battery warning.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

#12 Post by Rickers »

Quote

"Usually, if one puts mouse over the symbol in tray, a tooltip pops up with status and %. Apparently not in Bionic 32... but yes in Slacko5.7 (and AtomicPup-XIX for netbooks).

Regards
8Geee
"

When I hover the mouse pointer over the lightning bolt panel Icon it displays "Battery discharging, capacity xx%"


I forgot to mention I am running BionicPUP32 8.0 from a 1GB USB flash drive..





.

Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

#13 Post by Rickers »

bigpup wrote:Getting back to your question about battery indicator.

That battery lightning bolt icon on the tray.
If you hover the mouse pointer over it, it should give you a pop up info.

Try installing this program.
Qbat
http://distro.ibiblio.org/puppylinux/pe ... -0.2.2.pet
After installing Qbat.
Will need to save if using a save.
Reboot to get Qbat started.

If you right click on the Qbat tray icon there is a settings option in the right click menu.
In settings you can adjust colors used and when you get a low battery warning.
Thanks for the Qbat tip... :D

Because I am a newbee to puppy Linux... :shock:

1) Which folder or location do I download the Qbat file to?
2) I'm not sure how to install the Qbat program?

I see the Qbat is a .PET file...

.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#14 Post by bigpup »

Just download (save) the Qbat pet file to someplace you can find it.
Navigate in Rox file manager to the location you put it.
Left click on the pet file to install Qbat into Bionicpup.

Make sure to save so Qbat stays installed.
Left click on the desktop save icon to save or let it save on reboot.

Reboot to get Qbat started and working.

Note:
If the computer does not have a battery.
Example: desktop computers.
Qbat detects that there is no battery, so it does not run.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

#15 Post by Rickers »

bigpup wrote:Just download (save) the Qbat pet file to someplace you can find it.
Navigate in Rox file manager to the location you put it.
Left click on the pet file to install Qbat into Bionicpup.

Make sure to save so Qbat stays installed.
Left click on the desktop save icon to save or let it save on reboot.

Reboot to get Qbat started and working.

Note:
If the computer does not have a battery.
Example: desktop computers.
Qbat detects that there is no battery, so it does not run.

OK .. Qbat is installed however I cannot see the Icon... The battery is installed not sure where to look...

I have BionicPUP32 8.0 installed on a 1GB flash drive...


.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#16 Post by bigpup »

If Qbat is working should see a battery charge indicator in the right side of the tray.
It gives a constant reading of the battery charge.
The number changes as the charge changes.
Attachments
Screenshot(1).jpg
(6.83 KiB) Downloaded 236 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#17 Post by bigpup »

This Qbat pet was compiled for Xenialpup 7.5.
This is the problem with software.
What other Puppy versions, will it also work in, with no issues.

Bionicpup32 8.0 may not have all needed dependencies.

In a console type

Code: Select all

qbat
Press enter.

Is it giving any errors?

To make qbat auto run at startup, there should be a qbat file in /root/startup

Is there one?
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

#18 Post by Rickers »

.


Looks like qbat is in startup... However I get an error with the terminal.. :o

Maybe I should rebuild another flash drive with Xenialpup 7.5.

At the moment BionicPUP32 8.0 with pale Moon browser works great on the Internet... :D
Attachments
Screenshot3.jpg
(93.97 KiB) Downloaded 53 times
Screenshot2.jpg
(55.91 KiB) Downloaded 59 times

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#19 Post by OscarTalks »

Qbat (as the name suggests) depends on Qt libraries
That version is asking for Qt5 libraries which recent versions require
BionicPup32 does not have any Qt libraries included
XenialPup has some Qt4 libraries but not Qt5 as far as I know
Makes it a little strange why that package is available in that form.
Obviously you can install Qt5 libraries (via PPM or .deb packages).
Seems like overkill to install such large packages just for a battery indicator but personal choice I suppose. In addition to libQt5Widgets it will probably ask you to install libQt5Core and libQt5Gui and maybe some others.
Oscar in England
Image

Rickers
Posts: 11
Joined: Fri 23 Mar 2012, 01:19

#20 Post by Rickers »

I would uninstall the Qbat however it doesn't show up on the package manager... :o
Attachments
Screenshot4.jpg
(65.83 KiB) Downloaded 52 times

Post Reply