View Single Post
Posts: 1,313 | Thanked: 2,978 times | Joined on Jun 2011 @ Finland
#826
Originally Posted by rooster13 View Post
I succesfully solved the sudden battery drop with this piece of script:
Code:
#!/bin/sh

echo rootme | devel-su -c "/sbin/stop bme"
sleep 10;
echo rootme | devel-su -c "/sbin/start bme"

exit 0;
But now how to run this when the drop occurs? There is no battery percentage check in ProfileMatic.

Any chance getting it there?
Since this only works when the drop is in effect, does nothing if you run it before the drop occurs.

I also tested the restart bme and that did not seem to work.
That's a good reason to add battery level condition to ProfileMatic. I'll look into it.
__________________
My N9/N950 projects:
 

The Following 3 Users Say Thank You to ajalkane For This Useful Post: