Fast charging module(Aosp) - Xiaomi Redmi Note 7 Pro Guides, News, & Discussion

Those who are facing slow charging issue,use this module.
Just install this module via recovery.
Then your phone is capable 3000 mah max current from 0-60/70% via QC 3.0 and 2000 mah on stock charger.
Incase if u want to remove this module,just go to magisk/module, simply remove this module.
NOTE - Because this thermal profile gains maximum current,your phone should be more hotter.keep your phone in a cool place or on the floor.
Use it at ur own risk.
I don't make this module.credit goes to it's own developer.

Related

Minimum voltage cutoff?

I was wondering if there is a way to set the minimum voltage cutoff (when the device forcefully shuts off), if it's device specific then we are working with the HTC Aria. The reason why I ask this, is that I have a device with a 12 Ah (that's 12,000 mAh) battery. Now I'll be straight, I'm an EE so software is not my forte, I work with analogue circuits, not software. So my knowledge of programming is nil. I was going to go the extra mile and make a flyback regulator to keep the voltage at 4 volts all the time (I can get it to work down to .5 volt if I wanted), but did not want the extra mass. (Already have 3 long C cell size sized batteries, don't need a PWM board on top of that). If this is the wrong thread, call me a noob and kick me in the nuts a few times, will ya? BTW the minimum voltage we are working with is 3 volts.
I was wondering the same thing.
*up*
Is there an option/methode to set the minimum voltage of the battery to a specific level? A shutdown at 3.5V is too high. An Lipo can be discharged to 3.1 or 3.0V without hamring it...
I was just wondering the same for the ultimate battery saving app !!!
Have you find out something? I have tested my old battery and found out, that after my phone shuts down, there is almost 800mAh in battery left. Battery capacity 2400mAh. My phone uses only aboout 1000mAh of 2400mAh capacity :/
For the whole Android history (9 years) this has never been investigated. That's silly!! No one even knows whether it's hardcoded in the kernel or in the ROM itself. This is astounding! The battery is the second important thing after the CPU in mobile devices. It should be examined far and wide.
aaaaaaaaaah..... nothing about this yet? my phone is dying at 30%... with a lot of charge, since I changed the ROM............

[KERNEL PATCH] Force AC (fast) Charging - patch complete

This is for kernel devs only. The patch itself is useless to those who do not/can not compile their own kernel.
This was a pretty big hit on some other devices so I figured I'd give it a shot for you gys. This allows one to force AC charging for any charger that is detected as USB (e.g. many car chargers) and pull the full current the charger can support. It also provides additional security when connecting to public charging stations because by forcing AC charging, USB/adb data transfers are disabled, protecting your data.
It is essentially a software version of the modified charge only usb cables.
Fast charge can be toggled by issuing:
echo 1 > /sys/kernel/fast_charge/force_fast_charge
and off:
echo 0 > /sys/kernel/fast_charge/force_fast_charge
In addition I have created a toggle fast charge widget that may be used to toggle fast charge on and off right from your home screen:
https://play.google.com/store/apps/details?id=com.incredicontrol.fastchargewidget
I have also implemented a toggle in IncrediControl (free) that will allow you to turn it on and off.
https://play.google.com/store/apps/details?id=com.incredicontrol
For the widget (or any fast charge toggle) to work, you MUST be running a kernel that has this patch implemented.
As a good gesture to support a fellow dev, I ask that if you implement the patch into your kernel, please link to my widget as one means to toggle it. You are of course free to provide other ways to toggle it as well if you so desire.
Kernel devs, if you would like to test the widget yourself to confirm its working, and for convenience of testing, please contact me and I will provide you with a copy. You must show that you are a kernel dev though (i.e. link me to your kernel post so I can match your username).
Good luck have fun!
http://www.incredikernel.com/wp-con...wnload.php?id=shooter_force_fast_charge.patch
Thank you to those who tested for me.
Any takers?
Sent from my ADR6425LVW using XDA
I'm willing to give this a shot, quick question though, does this use AC charging if you plug it into your computer? Or is it only for other sources, such as the car charging you suggested?
Will dual mount SD, or multi mount still work after enabling this
I prefer those functionality
---------------------Tapatalk ----------------------
Sent my new HTC Evolution 3D running ROMeOS UNSENSED.
supaphreek said:
I'm willing to give this a shot, quick question though, does this use AC charging if you plug it into your computer? Or is it only for other sources, such as the car charging you suggested?
Click to expand...
Click to collapse
When on, it will be detected as AC for any source normally detected as USB. This includes your computer. Not every computer can put out enough amperage to significantly increase charge speed though. So it depends on your charging source. Even if your charging source can't put out more than 500mA (what USB charging is limited to), since the phone is in AC mode, it will be able to sleep while connected to the USB source so you will see some small gain because of less power usage from the phone.
jcsy said:
Will dual mount SD, or multi mount still work after enabling this
I prefer those functionality
---------------------Tapatalk ----------------------
Sent my new HTC Evolution 3D running ROMeOS UNSENSED.
Click to expand...
Click to collapse
When you have the feature toggled on, the phone is in AC mode and all USB transfers are disabled. Turning it on and off is as simple as tapping the widget or opening an app and unchecking a box though.
Tap the widget on (or other means of toggling) - AC mode
Tap the widget off - Auto (detects based on charging source like stock)
deleted
-
-
-
Fast charge? I remember having that on the DHD, Lord Clockan's work. It was great having that extra overcharge + fast charge...
I'm no dev, but having this feature on future ROMs would be very nice.
-----
Any chance you can max the current input? I mean... it begins at >+900mA when the battery is very low, and the current slows down as the battery charges.
Also, when playing a game that, say, consumes about -400mA and the current input is +800mA, the current will slow down to +400mA only (since another 400mA are being consumed by the phone). You can immagine what happens when the battery is almost full and you're playing a game...
I am guessing that having the current input always maxxed out would charge the battery (a lot) faster. Would that damage it, too? If not, could it be implemented?
in experience, below 80% the numbers are as per below
900+ ma WALL PLUG
400+ ma USB
600+ ma CAR CHARGER
these are rough numbers, not accurate
after 80%, they tend to be slower
the latest BMW i posted is able to track -ma drains accurately, and +ma charges accurately but has yet 2 be released by Cedrid. I wonder whats taking him...
http://forum.xda-developers.com/attachment.php?attachmentid=976183&d=1333259488
jcsy said:
the latest BMW i posted is able to track -ma drains accurately, and +ma charges accurately but has yet 2 be released by Cedrid. I wonder whats taking him...
http://forum.xda-developers.com/attachment.php?attachmentid=976183&d=1333259488
Click to expand...
Click to collapse
Can't press install. Can press additional info, can press cancel but can't press install. Weird.
PlayPetepp said:
Can't press install. Can press additional info, can press cancel but can't press install. Weird.
Click to expand...
Click to collapse
I can't press "Install" while Filter Screen / Screen Adjuster is running / turned on. That's the only thing that prevented me from installing apps until now... If you have that installed, I suggest you turn it off for the time you're installing apps.
Otherwise... I don't know... Wipe cache, dalvik, fix permissions, zipalign apks...
Id love to see this implemented.. im running the standard LeeDroId kernel.. id happily flash it over the top if that would be of any help. I do 80% of my phone charging via USB.
Kev
Formhault said:
Fast charge? I remember having that on the DHD, Lord Clockan's work. It was great having that extra overcharge + fast charge...
I'm no dev, but having this feature on future ROMs would be very nice.
-----
Any chance you can max the current input? I mean... it begins at >+900mA when the battery is very low, and the current slows down as the battery charges.
Also, when playing a game that, say, consumes about -400mA and the current input is +800mA, the current will slow down to +400mA only (since another 400mA are being consumed by the phone). You can immagine what happens when the battery is almost full and you're playing a game...
I am guessing that having the current input always maxxed out would charge the battery (a lot) faster. Would that damage it, too? If not, could it be implemented?
Click to expand...
Click to collapse
I would be concerned with heat buildup and possible damage by pushing that much additional current. Not to say its not possible, but I would be leery of implementing it.
KevAmiga said:
Id love to see this implemented.. im running the standard LeeDroId kernel.. id happily flash it over the top if that would be of any help. I do 80% of my phone charging via USB.
Kev
Click to expand...
Click to collapse
Send me a PM with your e-mail address.
chad0989 said:
I would be concerned with heat buildup and possible damage by pushing that much additional current. Not to say its not possible, but I would be leery of implementing it.
Click to expand...
Click to collapse
As I thought. Not going to make a fuss about it, it was just an idea; I knew it could be dangerous
I bought a pack that had a car charger and a wall charger (both of supposedly 1A output) - lighter than the battery cap of the EVO 3D, rofl. The car charger worked perfectly (the power output was meeting the expectances). The wall charger barely sends 30mA (ROFL). In the pack, I also got some sort of expandable Apple cable. The entire "pack" was cheap Chinese crap, I paid ~$3 on it.
I still have the oh-so-good wall charger. It didn't push much current to the Desire HD even with the fast charging kernel...
Guess in cases like that, there's nothing any kernel patch would be able to solve, eh?
Formhault said:
As I thought. Not going to make a fuss about it, it was just an idea; I knew it could be dangerous
I bought a pack that had a car charger and a wall charger (both of supposedly 1A output) - lighter than the battery cap of the EVO 3D, rofl. The car charger worked perfectly (the power output was meeting the expectances). The wall charger barely sends 30mA (ROFL). In the pack, I also got some sort of expandable Apple cable. The entire "pack" was cheap Chinese crap, I paid ~$3 on it.
I still have the oh-so-good wall charger. It didn't push much current to the Desire HD even with the fast charging kernel...
Guess in cases like that, there's nothing any kernel patch would be able to solve, eh?
Click to expand...
Click to collapse
haha, yeah. You're always ultimately limited to the max the charging source can put out.
jcsy said:
in experience, below 80% the numbers are as per below
900+ ma WALL PLUG
400+ ma USB
600+ ma CAR CHARGER
these are rough numbers, not accurate
after 80%, they tend to be slower
the latest BMW i posted is able to track -ma drains accurately, and +ma charges accurately but has yet 2 be released by Cedrid. I wonder whats taking him...
http://forum.xda-developers.com/attachment.php?attachmentid=976183&d=1333259488
Click to expand...
Click to collapse
I just installed that newer version of BMW. Selected HTC Evo (test) as mA retrieval method. Battery is at 90% and the input current is +305mA. Also, I disagree that the phone takes +900mA from the wall charger when the battery is under 80%. Input over 900 is only when the battery is like under 10%... At 50%, for example, it isn't +900...
ive got 3 wall chargers, and all of them are original from the phones I bought respectively, HD2 HD2 and EVO3D
they report about 900 below a certain %, and it could be 40% , 50%, 80%, etc
i guess you get the drift
anyways, you are supposed to select Automatic to get proper drain readings
forgot 2 mention that
Still need a tester to PM me. Have a test kernel ready to go, just need confirmation so I can post the patch.
chad0989 said:
Still need a tester to PM me. Have a test kernel ready to go, just need confirmation so I can post the patch.
Click to expand...
Click to collapse
hi mate, i would like to test, but is it available for all kernel?
thanks
ilovemeow said:
hi mate, i would like to test, but is it available for all kernel?
thanks
Click to expand...
Click to collapse
Sent you all the info. Thanks!
why dont you release the sources for kernel developers like Leedroid, Anryl, Mdeejay, Chad.goodman, Cile381 to compile into
and then, we users, can test them out as a seperate branch?

Is charging with total of 2400 ampere safe?

I flashed Radon kernel with RR ROM.
Now I am getting a total of 2380-2400 ampere(heeck yeah. In made posts awhile ago how I only get 400 ampere and below)
.
Is this safe for our device?
Yes i m using it....
drckml said:
I flashed Radon kernel with RR ROM.
Now I am getting a total of 2380-2400 ampere(heeck yeah. In made posts awhile ago how I only get 400 ampere and below)
.
Is this safe for our device?
Click to expand...
Click to collapse
The phone was designed to be charged with 2 Ampere. If you are charging it with more than that, you are responsible if the battery life will shorten or the phone will blow up :good:
Noter2017 said:
The phone was designed to be charged with 2 Ampere. If you are charging it with more than that, you are responsible if the battery life will shorten or the phone will blow up :good:
Click to expand...
Click to collapse
sorry but I am new to battery stuffs.
when you said 2 Ampere, did you mean 2000 Ampere? So I should be charging with 2000 Ampere?
drckml said:
sorry but I am new to battery stuffs.
when you said 2 Ampere, did you mean 2000 Ampere? So I should be charging with 2000 Ampere?
Click to expand...
Click to collapse
2A is correct. 2000mA == 2A.
You're charging at your own risk while going over 2A.
At the end of the video he compares the temps at different amps.
https://www.youtube.com/watch?v=oXXeVPWyQi8
Kinda risky....
adizz4 said:
2A is correct. 2000mA == 2A.
You're charging at your own risk while going over 2A.
Click to expand...
Click to collapse
But I don't get it, I read in a different post that Xiaomi
disabled QC 2.0 and even 3.0 is because it will cost them
more money to license it with qualcom. In result. the low price of our device.
so our phone is supposed to have QC 2.0
drckml said:
But I don't get it, I read in a different post that Xiaomi
disabled QC 2.0 and even 3.0 is because it will cost them
more money to license it with qualcom. In result. the low price of our device.
so our phone is supposed to have QC 2.0
Click to expand...
Click to collapse
It has QC 2.0 which is disabled. To make it work, you will have to flash CyanogenMod. Maybe a custom kernel for MIUI will also work
No... It supports quick charge which is what stock charger provides =2000mA=2A
Qualcomm SD650 supports qc3.0, but xiaomi didnt pay license to qcomm, so we dont have it.
This guys just unlocked it..to more then 2A...but its not safe to charge over 2.4A, because it will heat much more. With 2A gou get full battery in around 2h which is not bad.
I don't understand this discussion at all. If you stress a device above levels considered safe by the OEM, you *OF COURSE* can damage it! What did you expect?
So my phone charges at 2.4A even though I selected 2A when I flashed the Radon Kernel. I'm using the Ampere amp to measure current. Before I flashed the Radon kernel, Ampere showed that I charged at 2A. Anyone else seeing this?
As long as you use stock charger it has no dangerous effect, i too use a script to maximize charging current, my device doesnt heat up . on my lockscreen i got message like "charging rapidly , xx minutes remaining" , and guess what, the xx number is actually not accurate because the charging time is like 1,5x faster .
I think you are wrong!
Denis:) said:
No... It supports quick charge which is what stock charger provides =2000mA=2A
Qualcomm SD650 supports qc3.0, but xiaomi didnt pay license to qcomm, so we dont have it.
This guys just unlocked it..to more then 2A...but its not safe to charge over 2.4A, because it will heat much more. With 2A gou get full battery in around 2h which is not bad.
Click to expand...
Click to collapse
The fast charging feature needs extra integrated chips which would increase the price of phone, hence Xiaomi quit to get the chips integrated! It's not software related thing which can be unlocked or locked by flashing a rom!

Battery percent stuck at 82

I have just clean flashed latest lineage 14.1 on my le max 2, but the battery charges to a maximum value of 82% and then shows as charged!, it is not going up-to 100% please help!
Have you tried a different USB C cable and/or charger? I've also noticed if on this phone if CPU utilization is high, and the phone warms up charging becomes finicky. Also, which version LOS? A custom build on XDA or the official version?
https://download.lineageos.org/x2
kgoerbig said:
Have you tried a different USB C cable and/or charger? I've also noticed if on this phone if CPU utilization is high, and the phone warms up charging becomes finicky. Also, which version LOS? A custom build on XDA or the official version?
https://download.lineageos.org/x2
Click to expand...
Click to collapse
I'm using the official lineage OS straight from their website. I have now resolved this issue by discharging the battery fully and then recharging it while the device is switched off. However, I have another issue. I switched to lineage in order to enjoy smooth game-play, but the thing is, my phone is heating up quite a lot ( I almost burnt my hand while playing PUBG lol), is there a way to fix this?
Not that I know of. Anything CPU intensive gets this phone hot. Even doing a TWRP back to the phone's internal storage gets the phone super hot (I typically use USB OTG).
It's normal for the phone to get hot and the only thing that you can do is making some breaks between matches or just ignore it but I don't recommend ignoring it for too long because it can cause physical damage to the phone.

[Possible mod] Pixel 3 Fast Wireless Charge

Pixel 3 enables fast (>5W) wireless charging only on Google certified chargers, and there are only a few of them.
On most QI-compatible chargers it will pull out max ~750mA charging current by default (checked by Ampere / 3C Toolbox and simialr apps)
However, there is an interesting control file in /sys/class/power_supply/wireless, voltage_max.
It has default value of 5000000 (5V), and you can write values of up to 9000000 into it (9V), which surprisingly is accepted and leads to more charging current.
However, this should be done while wirelessly charging (as file does not accept writes otherwise).
Code:
echo 9000000 > /sys/class/power_supply/wireless/voltage_max
# Now, check what we've got
grep . /sys/class/power_supply/wireless/voltage_*
voltage_max:9000000
voltage_now:8568000 # Means it has been raised by device
After such write, charging current can be as high as 1290mA (compared to 700-750mA stock).
This change reverts after the end of charging session, however.
Question to kernel devs around here - can this be made permanent in some of custom kernels, or have a SysFS switch like "USB3 fast charge"?
The issue is to find where the default value is stored and alter it there.
EDIT Currently this can be made permanent by means of Magisk module "Advanced Charging Control" (https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427),
by adding the following to config:
Code:
onPlugged=./wireless/voltage_max:9000000
Nice find. Given how many folks are ending up with useless Pixel 3 and 3XL devices after using off-brand wireless chargers I am hesitant to use one even with the Google empowered limiters.
Have you verified that the charging speed actually increases?
MishaalRahman said:
Have you verified that the charging speed actually increases?
Click to expand...
Click to collapse
Yes, battery charging current reported by Ampere app is higher. And the battery charges faster (in % per minute)
Can anyone else verify?
Confirmed it does indeed charger faster using a Samsung wireless fast charger and a cheap $6 ebay chinese wireless charger. Enabling 9V DOES cause some slightly audible "ticking" noises every second when playing ear next to charger. Normally its completely silent.
I've added this to Proton Kernel as part of the standard "USB fast charge" option that EXKM, Kernel Adiutor, and FKM can tune. It's disabled by default, but please read the following disclaimer thorougly before enabling it:
Think twice before enabling fast wireless charging because cheap chargers can cause your phone to heat up significantly, harming the battery permanently. They may also cause temporary issues with your phone (such as ticking sounds) or permanent damage to internal circuits. However, if used properly with a high-quality charger, there should not be any issues. Enable at your own risk. I am not responsible for any damage to you or your phone caused by this feature.
Click to expand...
Click to collapse
That being said, several users have gotten good results after enabling it. It's ultimately a question of how cheap your charger is.
k0rner said:
After such write, charging current can be as high as 1290mA (compared to 700-750mA stock).
Click to expand...
Click to collapse
I am not sure how true is this, my Pixel 3 charges at 1850mA by default without any modification thru wireless charger and 2900 mA with a wired charger. I am using Pixel stand and Pixel 3 charger.
ManthanRB said:
I am not sure how true is this, my Pixel 3 charges at 1850mA by default without any modification thru wireless charger and 2900 mA with a wired charger. I am using Pixel stand and Pixel 3 charger.
Click to expand...
Click to collapse
This is for non Pixel Stand owners to get closer to the speed of a Pixel Stand.
If possible for fast charge now, can someone locate the trigger for the special pixel stand charging dock screen?
acidspider said:
If possible for fast charge now, can someone locate the trigger for the special pixel stand charging dock screen?
Click to expand...
Click to collapse
That needs someone with the Pixel Stand (e.g. not me) to investigate.
Or, at least do the following while the phone is on the stand, in the terminal:
Code:
su
cd /sys/class/power_supply/wireless
grep . *
and post the output here.
Does anyone know the safe/recommended wireless charging temperature range? I want to do some comparisons of different wireless chargers I own and see if they're within tolerance. Thanks!
EDIT: Actually, if anyone can tell me what the Google Pixel stand normally gets the temperature up to, then I'll have a benchmark for comparison. Thanks!
fronc said:
Does anyone know the safe/recommended wireless charging temperature range? I want to do some comparisons of different wireless chargers I own and see if they're within tolerance. Thanks!
EDIT: Actually, if anyone can tell me what the Google Pixel stand normally gets the temperature up to, then I'll have a benchmark for comparison. Thanks!
Click to expand...
Click to collapse
I'm getting the phone and stand tomorrow. I'm interested in this mod so I'll check the temps and keep you posted
lohanchien said:
I'm getting the phone and stand tomorrow. I'm interested in this mod so I'll check the temps and keep you posted
Click to expand...
Click to collapse
Awesome. This will be very helpful information for the community! Thanks!
fronc said:
Awesome. This will be very helpful information for the community! Thanks!
Click to expand...
Click to collapse
Trying to prepare for this test. I only know of one app that can chart temperature over time but it only allows 200 data points so I'll have to set the refresh rate at 30s which will allow 1.6hrs of recording. I'll have to test from 50% to full and hopefully that'll give enough data. I wanted to test from 1% to full charge but that would mean I have to set the refresh interval to close to 2min, which would wash out temperature fluctuations during those two minutes. Do you know of any app that can chart temperature over time with more than 200 data points?
lohanchien said:
Trying to prepare for this test. I only know of one app that can chart temperature over time but it only allows 200 data points so I'll have to set the refresh rate at 30s which will allow 1.6hrs of recording. I'll have to test from 50% to full and hopefully that'll give enough data. I wanted to test from 1% to full charge but that would mean I have to set the refresh interval to close to 2min, which would wash out temperature fluctuations during those two minutes. Do you know of any app that can chart temperature over time with more than 200 data points?
Click to expand...
Click to collapse
I do not, but I think that should be sufficient. Maybe a second test from 0 to 50% some other time would be useful as well.
Sent from my Pixel 3 XL using Tapatalk
fronc said:
I do not, but I think that should be sufficient. Maybe a second test from 0 to 50% some other time would be useful as well.
Click to expand...
Click to collapse
Yeah I can try that too. But I wanted to see how it behaves over the whole range. It's possible if going from 1 to full might give higher temperatures since the cells will be heated for longer. I guess I'll test 1-50 then 50-100 at 30s then another test 1-100 at two min intervals.
Edit: Miscalculated, 60s from 1-100 should be enough. That's more than 3 hrs. I doubt it'll take that long to fully charge
lohanchien said:
Trying to prepare for this test. I only know of one app that can chart temperature over time but it only allows 200 data points so I'll have to set the refresh rate at 30s which will allow 1.6hrs of recording. I'll have to test from 50% to full and hopefully that'll give enough data. I wanted to test from 1% to full charge but that would mean I have to set the refresh interval to close to 2min, which would wash out temperature fluctuations during those two minutes. Do you know of any app that can chart temperature over time with more than 200 data points?
Click to expand...
Click to collapse
Could you ask the dev for a custom modded apk to increase to 400 data points?
k0rner said:
That needs someone with the Pixel Stand (e.g. not me) to investigate.
Or, at least do the following while the phone is on the stand, in the terminal:
Code:
su
cd /sys/class/power_supply/wireless
grep . *
and post the output here.
Click to expand...
Click to collapse
capacity:83
current_max:1100000
current_now:1022000
grep: device: Is a directory
online:1
grep: power: Is a directory
present:1
serial_number:e0adc0f6
grep: subsystem: Is a directory
temp:3220
type:Wireless
ueventOWER_SUPPLY_NAME=wireless
ueventOWER_SUPPLY_PRESENT=1
ueventOWER_SUPPLY_ONLINE=1
ueventOWER_SUPPLY_CURRENT_NOW=1022000
ueventOWER_SUPPLY_CURRENT_MAX=1100000
ueventOWER_SUPPLY_VOLTAGE_NOW=8914000
ueventOWER_SUPPLY_VOLTAGE_MAX=9000000
ueventOWER_SUPPLY_TEMP=3220
ueventOWER_SUPPLY_SERIAL_NUMBER=e0adc0f6
ueventOWER_SUPPLY_CAPACITY=83
voltage_max:9000000
voltage_now:8914000
:/sys/class/power_supply/wireless #
Sent from my [device_name] using XDA-Developers Legacy app
Started the first test. Going from 50-100 with case off and pixel stand app cycling through photos. Next I'll go with the same but turn off photos and leave just the clock in ambient mode. I'll then test the same as the first two with case on. So far it's charging at 1%/min so I set the refresh interval to 15sec. That'll give 50min of data, just enough for the full charge from 50%

Categories

Resources