Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 19 Feb 2018, 12:17
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Low-batt notification for Puppy? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [40 Posts]   Goto page: 1, 2, 3 Next
Author Message
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Sun 02 Aug 2015, 13:58    Post subject:  Low-batt notification for Puppy? (Solved)
Subject description: Would like a battery management app, if there is one...
 

Evening, everybody.

Been looking around the forum for a while, this afternoon, and not really found anything suitable.

There's quite a few different ways of monitoring battery levels in Puppy.....but are there any tools that will allow me to set a 'critical' low level, that would give me an on-screen notification when it's reached? (Or something along those lines...?)

Any advice, as always, will be appreciated.


Regards,

Mike. Wink

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------


Last edited by Mike Walsh on Mon 03 Aug 2015, 15:45; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
666philb


Joined: 07 Feb 2010
Posts: 3156
Location: wales

PostPosted: Sun 02 Aug 2015, 14:51    Post subject:  

this allows you to set a critical levelhttp://murga-linux.com/puppy/viewtopic.php?t=85475
_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11822
Location: Stratford, Ontario

PostPosted: Sun 02 Aug 2015, 15:09    Post subject:  

Here is what you need to know about battery monitors: most of them are based on percentages. But 10% of a new large battery is entirely different than 10% of a small worn-out battery. And is it 10% of the original factory charge or 10% of the last charge?

So you need to set a meaningful threshold based on the current state of the battery. A more sensible approach is to set the threshold based on the estimated time remaining.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Sun 02 Aug 2015, 17:03    Post subject:  

Hi, guys.

@Phil:- I'll have a look at what you've given me the link for. Cheers!

@rcrsn51:- Eminently sensible suggestion, Bill. The battery in question is a high-capacity replacement for my old Dell laptop. The Dell's 13 yrs old; the original, factory-supplied Sony battery pack (yes, one of those that led to the well-documented class-action lawsuit against Dell, due to the infamous 'exploding battery' episodes.....though, thankfully, mine seemed to have escaped all that!) lasted 10 yrs, so it didn't do too badly.

I purchased the high-cap replacement about 3 yrs ago; at the last check with batmon, about 5 hours ago, it seems its current full capacity is 6060 mAH.....down from the original 6600mAH. Works out to a drop of 9% in 3 years; not too shabby! Mind you, I don't use the battery that much; she tends to run on the mains throughout the winter, and only goes on battery when I take her outside on nice days at this time of year. Although it's a 'lap'-top, I've always preferred sitting at a table when I use it.

So, it's in fairly reasonable condition for its age. I agree, time remaining is like as not as good a way as any to measure things.....but percentages are what most of them seem to work on.

C'est la vie. Rolling Eyes


Mike. Smile

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------


Last edited by Mike Walsh on Mon 11 Jan 2016, 20:34; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Sun 02 Aug 2015, 17:08    Post subject:  

@666philb:-

Must have missed this one, for all my searching earlier on. Looks good. Will let you know how I get on with it.

Thanks!


Mike.

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Mon 03 Aug 2015, 10:02    Post subject:  

@666philb:-

Nice one, Phil! That's just what I was looking for; xbatalarm has installed nicely, and would appear to be working fine. Thanks.

@rcrsn51:-

Thanks for batterup, Bill. It, too, appears to be working nicely here on the Dell. I've installed yours and Phil's side-by-side; no conflicts that I can see. Much appreciated. Phil's will give me an alarm, but yours actually makes better sense for seeing how much time you've got left.

Cheers, guys. I'll mark this one as solved, for the benefit of others.....but I will post an update, over the next few days, to confirm that everything's OK.


Mike.

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Thu 06 Aug 2015, 18:27    Post subject:  

Just to confirm; xbatalarm and batterup are both working well, playing quite happily together. No conflicts at all.


Mike. Smile

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 11822
Location: Stratford, Ontario

PostPosted: Thu 06 Aug 2015, 19:29    Post subject:  

With all battery monitors, the crucial issue is whether they give a warning at a meaningful time. What's happening in your situation?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Thu 06 Aug 2015, 20:18    Post subject:  

@ rcrsn51:-

In my case, I have xbatalarm running on the default setting of 15% to trigger a warning pop-up.....although I have changed the frequency of the pop-up to 60 second intervals rather than every 30 seconds.

This corresponds, on average, to a 'time remaining' range of anywhere from 12 mins to 17 minutes, as reported by batterup (depending on what the Dell is doing at that time, of course). I'm satisfied with this; I let xbatalarm provide the 'critical' warning.....but I use batterup to monitor time remaining during a session. Which, as I said further back in the thread, to me, at any rate, actually seems more logical.

I do prefer to discharge my battery fairly thoroughly each time I use it, as I have found, by long experience, that lithium-ion batteries will hold a charge for longer by undergoing a fuller re-charge period on each occasion. I try not to give my battery too many 'partial' charges; l-ion batteries, despite claims to the contrary, still work in much the same way as the original Ni-Cads, and their successor, the NiMhs......except they will hold their 'state' of charge for far longer between sessions. Works for me, at any rate.

The way I use them, they complement each other very well. Thanks for providing batterup!


Mike.

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 11822
Location: Stratford, Ontario

PostPosted: Thu 06 Aug 2015, 20:29    Post subject:  

So do you never get to see Batterup's warning?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Thu 06 Aug 2015, 21:44    Post subject:  

Uh-oh... Now I'm embarrassed; I'd already forgotten there was a low-time limit warning included... Rolling Eyes Embarassed

Reading the batterup thread just now, I concur with sheldonisaac; I have seen 'BAT0; Stopped charging', upon charge completion. Upon removal of the charger, the count-down then commences, so that's all working as expected. What I shall do (tomorrow, or over the weekend, time permitting; it's 2.30am here currently, so I'm off to bed!) is to lower the percentage in xbatalarm to 10%, and if batterup's warning hasn't shown by then, I shall continue until it does. That should give me some idea of what %age figure corresponds to the 10-minute warning.

Will post back, and let you know what I find out, as & when.... Bear with me.


Regards,

Mike. Wink

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Sun 09 Aug 2015, 15:13    Post subject:  

@ rcrsn51:-

Hallo, Bill. Just given batterup a full test. I set the xbatalarm 'alarm' level to 8% (down from the default 15%). I've been browsing, and listening to a .pls stream on PeasyMP3 at the same time. As expected, once below about 40%, the levels started dropping more rapidly....that's normal for this battery. At some point, I looked at batterup, and noticed '11 mins remaining'. Sure enough, a minute or so later, up came batterup's warning notification; I looked at the battery icon, and this corresponded to approximately 9%.

Moments later, up came another warning; 'Battery VERY low!".....accompanied by the Puppy 'Woof-woof!'

It always starts off round about 223-225 mins, although in practice I usually get somewhere in the region of 140-150 mins (2hrs 20 to 2hrs 30). You have to remember that this P4 pulls something like 65w; Dell fitted desktop CPUs in these old Inspirons for some reason; I think the original Pentium M's were only just beginning to come onto the market at that time.

To conclude, I'm very pleased with the combination of xbatalarm and batterup. Together, they do everything I originally wanted them to. Nice one. And thanks again.


Mike. Wink

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
gjuhasz


Joined: 29 Sep 2008
Posts: 362

PostPosted: Sun 10 Jan 2016, 14:36    Post subject: Xbatalarm combined with powerapplet_tray  

Hi,

For those cannot get powerapplet_tray working, I referenced it in xbatalarm.
Among other changes, I applied new icons and forced the right one to appear in the tray.
Changed the default alarm level to 10%.
Tested in Puli, probably works for other puppies, too.

As powerapplet_tray is a built-in feature in many puplets, I also created a bare xbat-p.pet, see http://murga-linux.com/puppy/viewtopic.php?t=96964&start=154

Have fun!

Regards,

gjuhasz

Edit: first upload of the attachment failed, uploaded again.
Edit2: after bugfix, uploaded again
Edit3 on 29 Jan: after bugfix and some uplift, uploaded again. Thanks for the feedbacks.
xbat.pet
Description  MD5sum: 754de17b66e4578b661a233ae1d9018c
pet

 Download 
Filename  xbat.pet 
Filesize  8.64 KB 
Downloaded  51 Time(s) 

Last edited by gjuhasz on Fri 29 Jan 2016, 22:14; edited 7 times in total
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 651

PostPosted: Sun 10 Jan 2016, 17:05    Post subject:  

@rcrsn51
What's the link for batterup?

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3409
Location: King's Lynn, UK.

PostPosted: Sun 10 Jan 2016, 20:09    Post subject:  

Hi, B.K.

As far as I recall, the 'link' for batterup is that you need to request it from rcrsn51. Bill does things this way with a lot of the .pets that he creates, because it usually means that folk who do request an item are more likely to be serious about testing it out, and reporting back with results!

Hope that helps. Just drop him a request by PM if you'd like to try it out. That's usually all it takes. Be patient; it may take him a little while to get back to you.


Mike. Wink

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [40 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1128s ][ Queries: 12 (0.0114s) ][ GZIP on ]