I'm developing a small utility which can automatically slow down charging when the battery overheats.(I know android does it automatically but I want to set the limit even lower.)
Currently, I turn off charging by `echo 0 > /sys/class/power_supply/battery/chargin_enabled` and then start charging again when battery cools down to a certain temperature.
- **Q.** Is there any way to control charging speed as well? (I can't write directly to `/sys/class/power_supply/battery/current_now`)
I know android automatically controls charging speed.
- **Q.** Is there any api to control charging speed?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In android kernel source, I find `qcom,batt-warm-decidegc` interesting but couldn't find how to use it.
- **Q.** Can I somehow use `qcom,batt-warm-decidegc` in this case?
Related
Cliq XT using AmbrosialCM7 Version 3.0.8-n140 [Android 2.3.4]. When the phone reaches 100% charge the phone crashes, pressing any of the buttons do nothing. Once I pull the usb cable it reboots.
I tried the battery calibration app and it didn't work. Right now I set the calibration to 98% to see if it does the same thing.
Anyone have any ideas what it could be?
Some more info...
The phone crashes when the battery icon shows up saying its 100% charged. It looks very similar to this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I enabled an option called "stay awake", its located at menu- settings- application settings-development. With this option enabled, the phone is awake the entire time its charging so it doesn't crash. It has something to do with that battery icon that shows when the phone is 100% charged. Any way to replace that or remove it entirely?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Warning:Root needed.
_______________________________________________________________________________________________________________________
I wont tell you tips like turn down brightness etc.This is seriously working method._______________________________________________________________________________________________________________________
You can overclock your monster to any frequency you want.Apps like set cpu have a profiles option.
For battery follow steps below-
Set up a screen off profile
You can make the apps underclock the phone when screen turns off.
NOBODY NEEDS A RAGING CPU WHEN SCREEN IS OFF
Also set up a low battery profile. It really helps.
My settings for my p350 go as follows-
Normal Frequencies- 245-787mhz Governor-SmartassV2
Screen off- 122-245mhz Governor-Powersave
Battery less than 25% 245-480 mhz Governor-Conservative
Using above setings i get minimum -1.5 days battery backup with normal use.
Hit thanks if i helped.
HI, I have a weird problem. So I have my a7 for about a week and a half now and you guys might know that if you open the battery monitoring thingy in the settings it should say that it's going to work for like 30 hours right? Well mine used to say so up untill like 2 days ago when it suddenly changed to ~19 hours when at 100% and the % go down real fast (for example, I used to go down ~20% with 8-15 school usage and now I go down 20% in 9-13 school usade). I am still on android 8.0 with the latest security patch. What in the actual frick is going on.
Here's an example screenshot of how much battery% go down in just 36minutes of mixed lte+ and wifi usage
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
On latest Android 11 version and have noticed battery last charge is not being reset when i charge, e.g. mine shows last charge as 11 days ago even though detailed charge shows correctly as 1 day ago. Anyone else having this problem on latest Android 11 EU version ? before i report it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Replying to my own question. It looks like 'last full charge' means exactly what it says, ie it has to charge to 100percent before the timer resets. If you never fully charge to 100percent the timer never resets. So if we do what we're told and charge only to, say 93percent, to preserve the battery, then this timer can, in theory, continue for a long time.
I charge the S22u in my bed table, at night. I would like to see the clock during night, but I don't want to have AOD always on. I thought that under modes and routines this could be defined, but I can't set a trigger condition to be "device charging". Probably this is possible with third party apps, but first I wanted to be sure that I'm not missing a way to do this with the internal features. I'm in stock Android 13, Snapdragon model.
I use Bixby routine and it works fine
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is what you need to do in Modes And Routines, go to the right bottom tab in Routines and set this exact routine. You can choose the name you want of course ;-)
jordiz86, sprov, many thanks for your answers. I could successfully create the routine.