Batterup - A Laptop Battery Monitor

Miscellaneous tools
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Batterup - A Laptop Battery Monitor

#1 Post by rcrsn51 »

Batteries provide information to the OS in a variety of ways. Batterup is a fully customizable monitor that should work with any battery. This is particularly useful with old or replacement batteries.

Batterup displays the time/charge/power/voltage remaining until shutdown and pops up a warning message when the battery is getting low.

Read here for instructions.

Anyone who wants to help with the development of Batterup in Puppy can send me a PM.

--------------------------------
Attachments
screenie.png
(4.59 KiB) Downloaded 2060 times
Last edited by rcrsn51 on Mon 28 Jan 2019, 11:38, edited 36 times in total.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#2 Post by mikeb »

looks neat...quick test on 4.12 was fine so nice an compatible.

One feature I noticed is its easy to alter where it gets the battery info from...I had to make a custom vattery for one persons machine.

mike

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

Thanks for testing this.

When working with zaivala here, I discovered that some batteries report their data in mWh instead of mAh. I believe that Batterup should also work with these batteries, but it has not been verified.

If you have access to this type of battery, could you please test it?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#4 Post by mikeb »

Well as it happens this notebook does use mwh.... incorrectly (it actually should be mAh) but the time remaining is correct. And yes its a battery in a poor state...gets 25 minutes max :)...so perhaps a good test.

I like the flexible wrapper/config

mike

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#5 Post by nilsonmorales »

Spanish translate
Attachments
mo&po.tar
md5sum 658a1408f8362d2ba87f03b96e6f01e8 mo&po.tar
(10 KiB) Downloaded 613 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

mikeb wrote:Well as it happens this notebook does use mwh.... incorrectly (it actually should be mAh) but the time remaining is correct. And yes its a battery in a poor state...gets 25 minutes max :)...so perhaps a good test.mike
Thanks. Since P=VI, I was pretty sure that it would work.

@nilsonmorales: Here is the source.
Attachments
batterup_tray.c-1.2D.tar.gz
Updated 2013-12-30 for v1.2D
(1.25 KiB) Downloaded 748 times
Last edited by rcrsn51 on Fri 09 Jan 2015, 22:25, edited 2 times in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#7 Post by rcrsn51 »

Batterup v1.1 is posted above. Please read the Update information.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

Batterup v1.2D is posted above. Please read the Update information.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#9 Post by rcrsn51 »

Batterup v1.4 is posted above. Please read the Update information. Additional test results would be appreciated.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

ver 1.4

#10 Post by sheldonisaac »

rcrsn51 wrote:Batterup v1.4 is posted above. Please read the Update information. Additional test results would be appreciated.
You'd said
Update: Batterup uses the battery's present rate of discharge to calculate the time remaining. But some batteries do not report this information. In that case, v1.4 displays the amount of charge remaining in mAh or mWh and triggers a warning message when the charge drops below the battery's design capacity warning level.
I just installed ver 1.4 on this Dell Latitude E6410, Lucid Puppy "Super 2".
Hovering over the yellow icon shows
Battery BAT0: stopped charging
Does that seem OK?

Thanks,
Sheldon
Dell E6410: BusterPup, BionicPup64, Xenial, etc
Intel DQ35JOE, Dell Vostro 430
Dell Inspiron, Acer Aspire One, EeePC 1018P

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: ver 1.4

#11 Post by rcrsn51 »

sheldonisaac wrote:Hovering over the yellow icon shows
Battery BAT0: stopped charging
Does that seem OK?
Is the AC currently plugged in? That message appears when Batterup checks the "charging state" of the battery and gets the report "charged". That means that the battery is not currently discharging. Batterup needs to see the battery discharging in order to determine how much time is left.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: ver 1.4

#12 Post by sheldonisaac »

rcrsn51 wrote:
sheldonisaac wrote:Hovering over the yellow icon shows
Battery BAT0: stopped charging
Does that seem OK?
Is the AC currently plugged in? That message appears when Batterup checks the "charging state" of the battery and gets the report "charged". That means that the battery is not currently discharging. Batterup needs to see the battery discharging in order to determine how much time is left.
OK, I unplugged the charger.. AHA! Now it says
BAT0: 152 minutes left
Dell E6410: BusterPup, BionicPup64, Xenial, etc
Intel DQ35JOE, Dell Vostro 430
Dell Inspiron, Acer Aspire One, EeePC 1018P

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#13 Post by rcrsn51 »

Excellent. Now you need to experiment a bit. You currently have 152 minutes, based on your CURRENT rate of discharge. If you start watching a video, your discharge rate will increase and your remaining time will decrease quickly. So the default warning time of 10 minutes may not give you enough time to shut down before the battery dies. I originally had it set at 5 minutes but it sometimes wasn't enough if the discharge rate suddenly jumped.

darry1966

Re: Batterup - A Laptop Battery Monitor

#14 Post by darry1966 »

rcrsn51 wrote:As laptop batteries age, they may start to misreport their information to the computer, causing the Puppy battery monitor to fail.

Batterup is a very simple replacement that will keep working. It displays the time remaining until shutdown and pops up a warning message when the battery is getting low.

Please note that the Batterup tray icon does NOT change with the status of the battery.

--------------------------------

The default warning time is 10 minutes, but you can easily change it.

1. Go to the folder /root/Startup
2. Open the file batterup_start in a text editor.
3. Line 3 is:

Code: Select all

WARNTIME=10	# minutes from shutdown
4. Change the 10 to whatever time you want.
5. Run Utility > Batterup Restart

-----------------------------

Update: Batterup uses the battery's present rate of discharge to calculate the time remaining. But some batteries do not report this information. In that case, v1.4 displays the amount of charge remaining in mAh or mWh and triggers a warning message when the charge drops below the battery's design capacity warning level.

--------------------------------
Excellent will try with 3.01 and AnitaOS based on Mikeb's report will be excellent if it reports a true reading, great work thanks.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: Batterup - A Laptop Battery Monitor

#15 Post by rcrsn51 »

darry1966 wrote:Excellent will try with 3.01 and AnitaOS .
No reply? There has been almost no feedback on this project. If it has no practical value, I will remove it.

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

#16 Post by rokytnji »

If it has no practical value, I will remove it.
I use it in Lighthouse 4. I see no reason to remove it. I don't give much feedback on things that work OK. It has practical value to me.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#17 Post by rcrsn51 »

Thank you for replying. How are you running it in Lighthouse? Did you compile the tray applet from source?

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

#18 Post by rokytnji »

No need to bro.

Lighthouse 4 is 32 bit and the pet just worked.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#19 Post by rcrsn51 »

rokytnji wrote:Lighthouse 4 is 32 bit and the pet just worked.
I had to search back a few years to find that one. :wink:

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

#20 Post by bigpup »

If it has no practical value, I will remove it.
Please do not feel that way.
Like so many other, good and useful programs, people have come up with for Puppy.
They seem to get overlooked among all the topics in the forum.

It seems to be very true.
Something that just works never really gets much feedback.

Do not ever think people are not grateful for what you contribute to Puppy!!

If I had a laptop I would use this program, but all my computers are desktop home built's. No battery to monitor.

Wonder if there is a bios battery monitor :?: :idea:
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)

Post Reply