I am unable to get the Battery Charge Limit app to work on the TMOBILE variant of this device. The app allows you to set start/stop charging %, which helps prolong battery state.
Does anyone know where the control file is located? I tried searching in /sys/class/* but couldn't find anything like chg_enabled or something similiar.
For OP9Pro, the file is located here: /sys/class/oplus_chg/usb/chg_enable
For OPN200, I don't know
Doing a
find . 2>/dev/null | grep charg
Click to expand...
Click to collapse
gave me
/sys/devices/virtual/oplus_chg/battery/mmi_charging_enable
Click to expand...
Click to collapse
Writing 0 to this file disables charging and writing 1 enables charging. Note that the charging icon shows that the battery is charging if the device is plugged in even if the file has a 0, but checking with a battery app will show that charging is disabled.
I also noticed that the battery charge limit app doesn't work if you start the app when the battery is already above the maximum limit, it only works if you start the app with the battery at or above the limit you set in the app.
Also I didn't realize this but you can also use ACC and run
acc -p
Click to expand...
Click to collapse
to find likely control files. useful to know for switching to a new device and trying to find a control file.
aznxwill said:
I am unable to get the Battery Charge Limit app to work on the TMOBILE variant of this device. The app allows you to set start/stop charging %, which helps prolong battery state.
Does anyone know where the control file is located? I tried searching in /sys/class/* but couldn't find anything like chg_enabled or something similiar.
For OP9Pro, the file is located here: /sys/class/oplus_chg/usb/chg_enable
For OPN200, I don't know
Click to expand...
Click to collapse
any luck with this? been unable to get it working on mine as well
l0csta said:
any luck with this? been unable to get it working on mine as well
Click to expand...
Click to collapse
It seems @towardsdawn is spot on.
I configured Battery Charge Limit (you can find in Playstore) to use the charge control file located here:
Code:
/sys/class/oplus_chg/battery/mmi_charging_enable
And it seems to work. If the current battery % is HIGHER than the STOP CHARGE %, then the Battery Charge Limit application will say DISCHARGING but battery icons from homescreen and lockscreen will indicate it's charging. Even though battery icon from homescreen and lockscreen says it's charging, I did not see battery % increase.
If you charge the phone when it's BELOW the STOP CHARGE %, then the Battery Charge Limit application will say it's charging and the battery % will increase after some time until it reaches STOP CHARGE %.
Overall, it seems to work, it's just the battery charging status from Battery Charge Limit app and phone icons are not aligned. One thing I do notice is if current % is ABOVE the STOP CHARGE %, then it will stay at that % while plugged in.
just a heads up, make sure to disable battery saver as well as advanced battery optimizations when charging, these modes will kill the Battery Charge Limit app even if you have it set to "Don't optimize". had some issues getting it to work overnight and doing this worked for me.
a little ironic isn't it
looks like I spoke too soon, I fiddled around with the settings and still can't get it to work consistently. sometimes it works, sometimes it doesn't. I switched to ACCA and that works much better.
aznxwill said:
It seems @towardsdawn is spot on.
I configured Battery Charge Limit (you can find in Playstore) to use the charge control file located here:
Code:
/sys/class/oplus_chg/battery/mmi_charging_enable
And it seems to work. If the current battery % is HIGHER than the STOP CHARGE %, then the Battery Charge Limit application will say DISCHARGING but battery icons from homescreen and lockscreen will indicate it's charging. Even though battery icon from homescreen and lockscreen says it's charging, I did not see battery % increase.
If you charge the phone when it's BELOW the STOP CHARGE %, then the Battery Charge Limit application will say it's charging and the battery % will increase after some time until it reaches STOP CHARGE %.
Overall, it seems to work, it's just the battery charging status from Battery Charge Limit app and phone icons are not aligned. One thing I do notice is if current % is ABOVE the STOP CHARGE %, then it will stay at that % while plugged in.
Click to expand...
Click to collapse
Battery Charge Limit is one of my fav apps.
I thought that you have to have root to use this app, no?
Could you provide a beginner's guide on your method? Noobs need it!
clu1688 said:
Battery Charge Limit is one of my fav apps.
I thought that you have to have root to use this app, no?
Could you provide a beginner's guide on your method? Noobs need it!
Click to expand...
Click to collapse
Here is a quick guide to using ACCA which I find to work much more consistently on the Nord N200 than Battery Charge Limit:
Unlock bootloader (see this thread, I used the debloat script. make sure to remove the line that gets rid of Gboard)
Root your phone with Magisk (see this thread)
Visit this website to download F-droid, then in the F-droid client download ACCA. ACCA will say installation failed for some reason, but it still works
Edit the default profile under the Profiles tab.
Under Capacity Control edit Charging switch.
Click Add Charging Switch.
Type in
Code:
/sys/class/oplus_chg/battery/mmi_charging_enable
for charging switch
Type in 1 for On value and 0 for Off value. Click ok.
Tap on the new charging switch. Click Test charging switch with the charger plugged in. It should popup saying the switch works, if it doesn't then you'll have to troubleshoot that.
Click Save.
Edit the other settings to what you want, then click the save icon in the top right.
Tap on the default profile to switch to it.
You may or may not need to do this, but under android battery settings I disabled battery optimization for ACCA and I also turned off all of the advanced optimization settings.
towardsdawn said:
just a heads up, make sure to disable battery saver as well as advanced battery optimizations when charging, these modes will kill the Battery Charge Limit app even if you have it set to "Don't optimize". had some issues getting it to work overnight and doing this worked for me.
a little ironic isn't it
looks like I spoke too soon, I fiddled around with the settings and still can't get it to work consistently. sometimes it works, sometimes it doesn't. I switched to ACCA and that works much better.
Click to expand...
Click to collapse
Seems I am running into same issue - sometimes it works and sometimes it doesn't with Battery Charge Limit. I'll check out ACCA.
@clu1688 - you should check out the post above mine with ACCA. It seems Battery Charge Limit app doesn't work consistently.
Related
There are a few things you can do that will help your battery life and performance...
Performance
· Do some graphical tweaks...
1. Install Spare parts
2. Set Window animations > Fast
3. Set Transition animations > Fast
4. Set Wifi sleep policy > Never While Plugged
· Adjust the Android memory management...
1. Install Autokiller
2. Menu > Presets
3. Most people have best results with 'Moderate' but you could also try 'Optimum'
4. Menu > Settings > tick 'Apply settings on boot'
Battery
· Wipe your battery stats...
1. Allow the phone to discharge completely
2. Boot into recovery (hold Home and press On) plug the phone in if you don't have enough charge to get into recovery
3. Select Wipe > Wipe battery stats
4. Go back and Reboot
5. Leave the phone to do a complete charge (preferably over night)
· Adjust your radio settings...
1. Go to Settings > About phone > System updates > Update PRL (it's normal that the phone process will force close at this point and the radio will reboot)
2. Go to your dialer
3. Dial *#*#INFO#*#*
4. Click 'Phone information'
5. Scroll down to the first dropdown selection and set according to your preference below...
· WCDMA preferred (default) - This will automatically switch you between G/E/3G/H depending on the best signal available by constantly monitoring all signals. This uses the most battery.
· WCDMA Only - If you only want to use 3G/H (3G) and do not want to use G/E (2G) select this.
· GSM auto (PRL) - This is the preferred option as it will allow you to use G/E/3G/H but uses the PRL list on your phone (provided by your carrier in the PRL update) rather than constantly monitoring all frequencies thus saving your battery. This may not work with all carriers if you have difficulty getting mobile data in some areas you will have to use one of the other options.
· GSM only - If you only use G/E (2G) select this (it's the same as selecting '2G only' through the settings menu). This option uses the least battery.
Upon making your selection the radio will reboot and the setting is saved, so just back out back to the dialer and you are done.
(edit your /system/build.prop with a file manager with root access)
Code:
wifi.supplicant_scan_interval=180
pm.sleep_mode=
ro.ril.disable.power.collapse=0
Click to expand...
Click to collapse
(needs ROM with init.d access and busybox, open empty file, insert header #!/system/bin/sh and put these there, save in /system/etc/init.d and name it something like 77tweaks)
Code:
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
Click to expand...
Click to collapse
>Reduce screen brightness
>Reduce the Screen Timeout
>Keep a Black wallpaper or a dark theme
>Restart the phone once a day
>Switch off GPS, bluetooth, WIFI
>Uninstall unused apps
>Change Refresh Intervals
>Change your charging pattern
>Playing videos
>Stop staring at your phone
>don't sync accounts which you don't really use: twitter & LinkedIn contacts, active exchange calendar and tasks etc.
>Use throttling software such as SetCPU to lower the devices power requirements when it is idle.
>Remove any weather widget from home screens (or atleast reduce the frequency of update)
Don't use any Taskiller
And dont look at Battery level again and again, it will drain battery faster.
What is the different between task killer vs autokiller? Thanks for your advices
We use task killers to manually kill apps and auto killer kills the task by themselves on precondition basis.
But dont use any taskkillers cos android works exact opposit than windows do. Windows need free ram to run effectly whereas android use ram as cache, more its filled more effectively android will run.
Press thanks if i helped.
Sent from my LG-P500 using XDA App
i think if u want to increase battery u should'd use any soft killer , u can add some tweak into syster,/etc/int.d if u want i'll share u some tweak
Pl do share the script dude
Sent from my LG-P500 using XDA App
pravin_pran said:
Pl do share the script dude
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
http://www.mediafire.com/?etwhlbq88t7c44w .download then extrar all in systerm/etc/int.d press thank if it helpfull
handryg555 said:
Battery
· Wipe your battery stats...
1. Allow the phone to discharge completely
2. Boot into recovery (hold Home and press On) plug the phone in if you don't have enough charge to get into recovery
3. Select Wipe > Wipe battery stats
4. Go back and Reboot
5. Leave the phone to do a complete charge (preferably over night)
Click to expand...
Click to collapse
Your battery facts need a little refreshing.
1.Wipe your battery stats
Today's myth debunking:
"The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory."
No, it does not.
This file is used to maintain, across reboots, low-level data about the kinds of operations the device and your apps are doing between battery changes. That is, it is solely used to compute the blame for battery usage shown in the "Battery Use" UI in settings.
That is, it has deeply significant things like "app X held a wake lock for 2 minutes" and "the screen was on at 60% brightness for 10 minutes."
It has no impact on the current battery level shown to you.
It has no impact on your battery life.
Deleting it is not going to do anything to make your more device more fantastic and wonderful... well, unless you have some deep hatred for seeing anything shown in the battery usage UI. And anyway, it is reset every time you unplug from power with a relatively full charge (thus why the battery usage UI data resets at that point), so this would be a much easier way to make it go away.
Click to expand...
Click to collapse
Source of this quote: this post by Dianne Hackborn, Android Framework Engineer.
2.Allow you phone to discharge completely.
Tip #2: Avoid allowing your device to discharge completely
Every wondered why your modern phone, PDA or iPod is able to cheerfully tell you that “Your battery is now exhausted” for several seconds on its brightly-lid LCD screen before switching off? The reason is simple; there is an artificial circuit that shuts off the device when the charge in the battery is too low.
This extraneous circuit is built to protect from the damage that could result if the charge of your lithium ion battery falls too low. If you still don’t get it: if the charge of your lithium ion battery falls too low, the battery can get irreversibly and permanently damaged. So since Lithium Ion has no “memory effect”, it is better to simply charge your portable device as and when you can or remember.
To set your mind at ease, a “charge cycle” means a single iteration of depleting followed by a re-charge until 100% of battery charge. If you consume 50% of your iPod’s battery on day 1, recharge to 100% at night, and do the same thing on day 2, then you would have just finished up one charge cycle of its battery life.
Click to expand...
Click to collapse
Source of this quote: Things You Should Know About Lithium Ion Battery. Great post.
For more Li-Ion battery analysis, you can refer to these pages:
Battery University's How to Prolong Lithium-based Batteries
Battery University's Charging Lithium-ion Batteries
How does these script works, without knowing that its risky to use any such script.
These script are for which version of android, which baseband, is it safe to use, How to instal these scripts...answr these questns dude
Sent from my LG-P500 using XDA App
pravin_pran said:
How does these script works, without knowing that its risky to use any such script.
These script are for which version of android, which baseband, is it safe to use, How to instal these scripts...answr these questns dude
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
this script for all version of android , i build them from here u can reed http://forum.xda-developers.com/showthread.php?t=1227269 , it is very safe i sure and this is 8 tweak i achieav into one file.rar to up load u can extra it and put use root explorer to put them in to systerm /etc /init.d ...then reboot ur device (i thing that )
Wipe Battery
mihir287 said:
Your battery facts need a little refreshing.
1.Wipe your battery stats
Source of this quote: this post by Dianne Hackborn, Android Framework Engineer.
2.Allow you phone to discharge completely.
Source of this quote: Things You Should Know About Lithium Ion Battery. Great post.
For more Li-Ion battery analysis, you can refer to these pages:
Battery University's How to Prolong Lithium-based Batteries
Battery University's Charging Lithium-ion Batteries
Click to expand...
Click to collapse
So let's see if I get it... There's no need to wipe battery, even when flashing a new ROM, for example?
Thank you!
malfatti said:
So let's see if I get it... There's no need to wipe battery, even when flashing a new ROM, for example?
Thank you!
Click to expand...
Click to collapse
Never ever forever. I don't believe a single file could control all this things about battery percentage, they are all in kernel
nocterum said:
Never ever forever. I don't believe a single file could control all this things about battery percentage, they are all in kernel
Click to expand...
Click to collapse
Thank you very much!
Thanks mihir287 and nocterum!
hey guys i need battery notifier app so that when my mini charged at 100% phone beep this is exactly same when we have low battery. Currently i am using Mini Cm 7.2.1.9 and nAa kernel -11 . I need this app because every time i have to check the status of battery. Sometimes i over charged it please help!!!
aryanjain said:
hey guys i need battery notifier app so that when my mini charged at 100% phone beep this is exactly same when we have low battery. Currently i am using Mini Cm 7.2.1.9 and nAa kernel -11 . I need this app because every time i have to check the status of battery. Sometimes i over charged it please help!!!
Click to expand...
Click to collapse
i think this suit what you want..
Battery Notifier
this is not the perfect one
thanx buddy for helping but this is not the perfect one. Actually there is one app in the forum but i am not able to find out i did searching but didn't found that app so please any of you have that app or link to that post please provide here.
Wait... how do you mean overcharging battery? Did you tried to clean battery stats when charged? The only thing I've found is this: https://market.android.com/details?id=com.nema.batterycalibration
It has option to notify you when it's 100% charged, but not in background.
Try Tasker with profiles
Sent from my X10 Mini
still not found da best app
thanx all guys for giving good advice but really still m not able to got da perfect one which i need please keep supporting me and giving good advices......
thx you
thanks you fr dizz thread
Go Power Master 1.3 is best apps
No efficient app till yet
go master is not producing sound when phone completed charging 100%
Please nAa i request you to add battery notification function as right now when battery low it indicates same like wise when battery charged completely i.e 100% it also produce sound notification .
anyone have better app and can solve my problem please feel free to help with complete link .
thanks!!!
nice work! thanks your hlep
battery monitor widget and battery calibration can help you
Goodluck
Battery alarm
Battery alarm comes with widget download it go to home page and enable it ,when ever your phone is 100% you will be notified by your default ring tone (make sure you install in internal drive)
please give links to download your suggestion sounds similar to my need.
aryanjain said:
hey guys i need battery notifier app so that when my mini charged at 100% phone beep this is exactly same when we have low battery. Currently i am using Mini Cm 7.2.1.9 and nAa kernel -11 . I need this app because every time i have to check the status of battery. Sometimes i over charged it please help!!!
Click to expand...
Click to collapse
find this
For ppl who are still paranoid about over-charging their smart-phone battery (which is highly unlikely), this app allow you to trigger a ringtone alarm when say battery reach 50%-100%. This alert you when the charge is completed.
For ppl who face limited power socket for charging (say in some hotel or motel room for e.g) and you have multiple devices that need to use the socket for charging, this app allow you to configure 50%-100% to alert you so you can un-plugged your smart-phone to allow other devices a chance to use the power socket to charge.
To configure, set Ringtone for alert, select the percentage you want to be alerted when the battery charge reach and tap Save. Finally remember to tap Start to start the service.
Important points to note:
- Set screen timeout to be longer so the ringtone can play longer to get your attention.
- Disable any screen lock because it may prevent the app from waking the smart-phone up to play the ringtone.
- With 15 minutes to test the app, if you find not enough time to test, you can get it first and if not satisfied, drop me an email and I will do a full refund.
The application support English, Simplified Chinese, Traditional Chinese display.
Latest version: 1.0 (for Android version 2.1 and higher)
FROM HERE---->Battery Charged Alert
my favori battery calibration
Thanks fanaticprakash gave me small widget which alerts me when my phone charged completely......
aryanjain said:
Thanks fanaticprakash gave me small widget which alerts me when my phone charged completely......
Click to expand...
Click to collapse
You always welcome man!
battery alarm is not working with xperia x8 i tried to launch the app using antek app but it shows me that Couldn't launch the application. the icon of this app also doesn't appear
I'm using tasker and by far, I like it the most...
I installed Pacman on my Note 2, and now I can't send text messages. Does anyone know how to fix this?
OK, I just did a factory reset, and went back to JellyBeans ROM, and I still can't send.
Can you use the net or anything else?
Did you try adjusting the settings in the SMS apk?
persistent alarm notification
This is my first time on pacman I was wondering if there is anyway to disable the alarm notification?
savagerider750 said:
This is my first time on pacman I was wondering if there is anyway to disable the alarm notification?
Click to expand...
Click to collapse
The notification or the status bar notification?
To block the status bar notification go in to the alarm clock -> settings -> disable show icon
So I'm sure I'm mussing something but there is something draining my battery. Like 40% in 4 hours. I've done a full wipe and battery recalibration which works for a few hours but then the battery gets incredibly warm. The battery stats just show android system and android os at like 30% but I can't figure out what it would be.
savagerider750 said:
So I'm sure I'm mussing something but there is something draining my battery. Like 40% in 4 hours. I've done a full wipe and battery recalibration which works for a few hours but then the battery gets incredibly warm. The battery stats just show android system and android os at like 30% but I can't figure out what it would be.
Click to expand...
Click to collapse
Sadly, sometimes AOSP has excessive battery drain. When I was on a TW rom, my battery life was amazing. After switching to AOSP simply cause I couldn't wait for 4.2-3 I noticed it was draining a bit faster. It might be wakelock though, so you can get a few apps to see what apps might be causing it. You can also get greenify.
Additionally, there was a known issue with the phone overheating/excessive battery drain since the switch over to 4.3.1. they talk about it in the pacrom, but said it would be fixed over the next few nightly builds
get devil kernel and you can also change the rate it charges at. i know it doesn't solve the issue, but it helps.
Battery says its about on 6% juice and the phones turn off (first of all that should not be hapening). However bigger problem is that after it turns off, i turn it again and battery jumps to ~32 procentage. So pretty much I have to do it every time. WTF is that ? I heared a lot of users have this problem. so hardware or software issue ?
also battery gets stuck on 100% after charge. maybe gdr3 will fix it ?
Battery was ok for few days, but this night after charge battery overnight went from 100% to 77% (in about 7 hours) in stand by mode. Obviously thats not right so I did a restart and battery back up to 100%. Seriously wtf is that?
Every time after a charge I have to restart a phone to have a good battery life. How to fix it ?
is possible firmware release in your phone have bug... same model of Lumia dont have same firmwares... almost every operator or region release have different firmware...
also for battery saving use these tips:
turn off unnecessary background tasks (in settings - applications - background tasks)
limit number of Live tiles on start screen which uses internet
use simple picture for lock screen (dont use live lock screens)
dont use battery status applications (uninstall it completely)
dont use or limit some option for Glance screen
turn off or increase mail checking time
DZG said:
Every time after a charge I have to restart a phone to have a good battery life. How to fix it ?
Click to expand...
Click to collapse
Are you running WAZE during your phone charging?
WAZE will drain battery so fast that isn't possible to charge simultaneously.
If in charge mode WAZE can damage your battery.
dxdy said:
is possible firmware release in your phone have bug... same model of Lumia dont have same firmwares... almost every operator or region release have different firmware...
also for battery saving use these tips:
turn off unnecessary background tasks (in settings - applications - background tasks)
limit number of Live tiles on start screen which uses internet
use simple picture for lock screen (dont use live lock screens)
dont use battery status applications (uninstall it completely)
dont use or limit some option for Glance screen
turn off or increase mail checking time
Click to expand...
Click to collapse
So probably nothing I can do, just wait for new firmware if thats a problem I guess.
dxdy said:
is possible firmware release in your phone have bug... same model of Lumia dont have same firmwares... almost every operator or region release have different firmware...
also for battery saving use these tips:
turn off unnecessary background tasks (in settings - applications - background tasks)
limit number of Live tiles on start screen which uses internet
use simple picture for lock screen (dont use live lock screens)
dont use battery status applications (uninstall it completely)
dont use or limit some option for Glance screen
turn off or increase mail checking time
Click to expand...
Click to collapse
fbirraque said:
Are you running WAZE during your phone charging?
WAZE will drain battery so fast that isn't possible to charge simultaneously.
If in charge mode WAZE can damage your battery.
Click to expand...
Click to collapse
No waze. Pretty much a stock phone.
Is there a way to turn off the notification that says the phone is too hot to charge? I am trying to use Google maps whole charging and the notification keeps popping up and I can't see my screen at all. I need it charging because on long trips the phone would die since maps drains battery fast.
It would not be wise to try and disable that notification. Also how is your s9 overheating? I have never had any heating issues even when im at full brightness, playing music and running google maps at the same time in my car. I recommend putting all your apps to always sleeping in the device maintenance battery saver setting, this will ensure that no other app is doing something crazy in the background and maxing your cpu out. Putting your apps to always sleeping does not disable important notifications such as facebook messages or post updates but will disable apps access to your phones sensors when they are in the background for a couple of minutes, such as step count from galaxy health but u can just not add those apps and they will continue to work fine.
Well I don't want to disable it because I know it will be bad for the battery I just don't want to see the notification because it takes up the whole screen and when I tap it to make it go away it comes back in seconds and I can't see my phone screen
Make sure the phone is fully charged before starting Google maps. It won't get hot then.
Are you using a wireless charger? If so, switch to a wired one. It will generate less heat. Is the phone positioned so the sun is shining right on it? What's the output of your charger? Maybe try one with lower output. I've run Maps on my S9+ while charging many times without issue.
Unpack may be on to something with the idea of background apps eating up battery. I drove from northern VA to southern Delaware (~ 3 hours) using map to navigate without plugging the phone in, and still had close to 50% battery left.
i got pretty good battery usage without high temps. had my phone in power saving mode (limited cpu) and lowering maps accuracy to battery saving.