Active Topics

 


Reply
Thread Tools
Posts: 139 | Thanked: 176 times | Joined on Oct 2012
#1
There must be some service already in sailfish monitoring battery levels and shutting down the phone at 4%. I wonder if it is possible to tweak it to play an alert at, say, 5%. Also i'd like to have an alert for full battery.

Can this be done, anybody knows how?
 

The Following User Says Thank You to veeall For This Useful Post:
Posts: 87 | Thanked: 31 times | Joined on Feb 2013 @ Athens
#2
It would be a very useful addition, I agree.
Anyone?
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#3
Once I get my Jolla booting, I might have a look :P
 
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#4
I don't know about the Sailfish phones, but I used to be annoyed to no end with my N9's battery being empty, without any warning sign whatsoever. Also, I have my devices laying around in other rooms of the house, so I ended up with a "remote" solution. Provided you have ssh running, you could try a oneliner like this:

Code:
status=$(/usr/bin/bmestat  | grep "battery pct. level" | cut -c23-40); echo 
battery charge $status  "%"; if [ $status -le "15" ]; then ssh -X user@local-ip 'DISPLAY=:0 notify-send "Less than 15% of battery left!"'; fi
It would send me a notification message on my laptop when my battery would drop below 15%.
 

The Following User Says Thank You to anthonie For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#5
 

The Following 3 Users Say Thank You to Schturman For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#6
My Jolla notifing me every percent drop <= 10%. Why i need to install any battery notifier for that?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#7
Originally Posted by coderus View Post
My Jolla notifing me every percent drop <= 10%. Why i need to install any battery notifier for that?
I'm sure you don't need
My Jolla do the same, but probably some people like to see big notification
 
Posts: 73 | Thanked: 16 times | Joined on May 2012 @ THESSALONIKI GREECE
#8
How to do this?
Attached Images
 
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#9
Originally Posted by gaiosgf View Post
How to do this?
Just open this file and see how I did it:
/usr/share/openrepos-batterynotifer/notifer3.py
 

The Following User Says Thank You to Schturman For This Useful Post:
Posts: 73 | Thanked: 16 times | Joined on May 2012 @ THESSALONIKI GREECE
#10
Originally Posted by Schturman View Post
Just open this file and see how I did it:
/usr/share/openrepos-batterynotifer/notifer3.py
What should i do?
Attached Images
 
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:51.