Page 1 of 2

Batterup - A Laptop Battery Monitor

Posted: Fri 27 Dec 2013, 12:42
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.

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

Posted: Fri 27 Dec 2013, 14:20
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

Posted: Fri 27 Dec 2013, 14:56
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?

Posted: Fri 27 Dec 2013, 15:10
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

Posted: Fri 27 Dec 2013, 16:50
by nilsonmorales
Spanish translate

Posted: Fri 27 Dec 2013, 17:02
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.

Posted: Sun 29 Dec 2013, 11:16
by rcrsn51
Batterup v1.1 is posted above. Please read the Update information.

Posted: Mon 30 Dec 2013, 12:34
by rcrsn51
Batterup v1.2D is posted above. Please read the Update information.

Posted: Fri 17 Oct 2014, 19:23
by rcrsn51
Batterup v1.4 is posted above. Please read the Update information. Additional test results would be appreciated.

ver 1.4

Posted: Thu 08 Jan 2015, 18:22
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

Re: ver 1.4

Posted: Thu 08 Jan 2015, 18:31
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.

Re: ver 1.4

Posted: Thu 08 Jan 2015, 18:39
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

Posted: Thu 08 Jan 2015, 18:54
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.

Re: Batterup - A Laptop Battery Monitor

Posted: Thu 08 Jan 2015, 21:20
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.

Re: Batterup - A Laptop Battery Monitor

Posted: Fri 09 Jan 2015, 21:54
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.

Posted: Fri 09 Jan 2015, 22:08
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.

Posted: Fri 09 Jan 2015, 22:19
by rcrsn51
Thank you for replying. How are you running it in Lighthouse? Did you compile the tray applet from source?

Posted: Fri 09 Jan 2015, 22:30
by rokytnji
No need to bro.

Lighthouse 4 is 32 bit and the pet just worked.

Posted: Fri 09 Jan 2015, 22:40
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:

Posted: Fri 09 Jan 2015, 23:47
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: