328

[Module] Magic Charging Switch 2017.10.21

 6 years ago
source link: https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Advanced Charging Controller (acc)

VR25

Senior Member
Apr 20, 2013 1,943 4,727 github.com
Archive
Find newer zips here.

Attachments

  • mcs-2018.10.11-beta.zip
    25.8 KB · Views: 2,733
  • mcs-2018.10.12-beta.zip
    25.8 KB · Views: 259
  • mcs-2018.10.12.1-beta.zip
    25.8 KB · Views: 600
  • mcs-2018.11.5-beta.zip
    27.5 KB · Views: 200
  • mcs-2018.11.7-beta.zip
    27.6 KB · Views: 129
  • mcs-2018.11.8-beta.zip
    27.6 KB · Views: 103
  • mcs-2018.11.8.1-beta.zip
    27.5 KB · Views: 141
  • mcs-2018.11.9-beta.zip
    28 KB · Views: 122
  • mcs-2018.11.10-beta.zip
    28.9 KB · Views: 140
  • mcs-2018.11.12-beta.zip
    28.9 KB · Views: 157
  • mcs-2018.11.13-beta.zip
    28.8 KB · Views: 156
  • mcs-2018.11.15-beta.zip
    29.1 KB · Views: 307
  • mcs-2018.11.22-beta.zip
    29.6 KB · Views: 165
  • mcs-2018.11.23-beta.zip
    30.8 KB · Views: 251
  • mcs-2018.11.24-beta.zip
    31.3 KB · Views: 2,880
  • acc-2019.1.24.zip
    32.8 KB · Views: 1,512
  • acc-201902270.zip
    57.9 KB · Views: 354
  • acc-201903031.zip
    58.8 KB · Views: 288
  • acc-201903070.zip
    59.7 KB · Views: 410
  • acc-201903071.zip
    59.7 KB · Views: 9,058
Last edited: May 13, 2019

Ophidian_DarkCore

Senior Member
Jun 5, 2015 Dallas
nice that someone else knows how li ion works for once too, the question is, does the board have this feature already baked in a little bit, is there any over provisioning of the battery?

VR25

Senior Member
Apr 20, 2013 1,943 4,727 github.com
nice that someone else knows how li ion works for once too, the question is, does the board have this feature already baked in a little bit, is there any over provisioning of the battery?

Not sure what the exact number is. What I can say is some devices have it (mine does, obviously). You have to test and see whether the switch works on yours.

About over provisioning...
I believe indeed there is (at least in modern batteries); otherwise, these would last much less.

KlNG

Senior Member
Nov 11, 2014 JIC
Great module but i don't know how to install and change settings.

Thx

Sent from my HTC U11 using Tapatalk

Reactions: Dotancoh and clx_

Nitram08

Member
Mar 30, 2015
Not sure what the exact number is. What I can say is some devices have it (mine does, obviously). You have to test and see whether the switch works on yours.

About over provisioning...
I believe indeed there is (at least in modern batteries); otherwise, these would last much less.

Hello! With your module you can program the load at night, so that it will charge up to 50% and after 2 or 3 hours it will charge the other 50%?

Enviado desde mi MI 5s Plus mediante Tapatalk

Kimbo82

Senior Member
May 23, 2013 Stockholm
Thanks for this module. Will future update add the option to erase battery statistics?

Sent from my Nexus 6P using Tapatalk

VR25

Senior Member
Apr 20, 2013 1,943 4,727 github.com
Great module but i don't know how to install and change settings.

Thx

You use a terminal emulator for that. Instructions are on the README (from the OP or zip file). I always try to make everything as simple and user friendly as possible. Note that the terminal must be running (either in foreground or background) till the process is complete. I recommend Termux terminal emulator.

Hello! With your module you can program the load at night, so that it will charge up to 50% and after 2 or 3 hours it will charge the other 50%?

Enviado desde mi MI 5s Plus mediante Tapatalk

Interesting idea...
That's not currently one of the features, but I can implement it. Wait for the next version.

Thanks for this module. Will future update add the option to erase battery statistics?

Sure. I can add that too.

Loader009

Senior Member
Jul 6, 2012
There was a command in android for checking battery status and stop charging. But, and that's the point, as soon as charging has been stopped manually, the battery status won't be updated.
If you reset it (so it charges again), the battery status is also updated.

Does this tool have the same behavior or are we able to stop charging while the battery status is still being updated?

phantom146

Senior Member
Apr 30, 2015 1,081 1,127 Malabon
@VR25
It seems that my terminal cant recognize the command cs or any other commands for this app. Succesfully flashed with no errors..

Also, I'm waiting for erase of battery statistics when charged to desired % atm keep doing a good job.. hope it functions on my magisk soon

EDIT: was able to make it function but I manually copied "cs" to /system/bin /xbin to make it work.
Last edited: Sep 7, 2017

Kimbo82

Senior Member
May 23, 2013 Stockholm
Hi again, is it necessary to write the desired charging level each time I charge? On my last charge it charged to 94%, but I had set 85% as goal earlier.

Sent from my Nexus 6P using Tapatalk
- cs -i --> Show battery info. Actually just echos "battery info"
- cs -i --> Show battery info. Actually just echos "battery info"

Please provide more information about your phone (model, ROM). It works for me, but your phone may be incompatible with this app....

Code:
u0_a183@:/ $ su
root@:/ # cs -i

Battery Info
STATUS=Discharging
HEALTH=Good
TEMP=227
ONLINE=1
VOLTAGE=3961000
LEVEL=88%
TECHNOLOGY=Li-ion

root@:/ #
Last edited: Sep 12, 2017
Please provide more information about your phone (model, ROM). It works for me, but your phone may be incompatible with this app....
Oneplus 3t / NukleaRom

Kimbo82

Senior Member
May 23, 2013 Stockholm

I get this when I try some commands.

I run stock Oreo on nexus 6P,with magisk 14.



Sent from my Nexus 6P using Tapatalk

I get this when I try some commands.

I run stock Oreo on nexus 6P,with magisk 14.

You should su before, e.g.

Code:
u0_a183@:/ $ su
root@:/ # cs -i
Battery Info
STATUS=Discharging
HEALTH=Good
TEMP=227
ONLINE=1
VOLTAGE=3961000
LEVEL=88%
TECHNOLOGY=Li-ion
root@:/ #

or use su with the command, e.g.

Code:
su  -c cs -i

Reactions: frdc0410

ghbuur

Senior Member
May 24, 2013
getting error too on s7 edge with s8 port installed. screenshot attached. wanted to test 10sec charging stop but didn't work. would be nice to ist this module..

Attachments

  • Screenshot_20170913-230501.png

    Screenshot_20170913-230501.png
    128.1 KB · Views: 2,926

Kimbo82

Senior Member
May 23, 2013 Stockholm
Sorry for a bad screenshot last time. However, when I do su before I get the same result as above.

Sent from my Nexus 6P using Tapatalk

VR25

Senior Member
Apr 20, 2013 1,943 4,727 github.com
Those facing issues -- your devices/systems are incompatible.

Please run the attached script as follows:
Code:
su
source /scrip/path/cs_debug.sh.txt
After that, upload here the file /sdcard/cs_debug.zip.

Attachments

  • cs_debug.sh.txt
    220 bytes · Views: 331

Top Liked Posts

  • **v2022.6.4 (202206040)**
    - -n|--notif [[string] [user]]: post Android notification; may not work on all systems;
    - -t|--test [p|parse]: parse potential charging switches from power supply log (as acc -p), test them all, and add the working ones to the list of known switches; implies -x;
    - acc -p: exclude all known switches and additional troublesome ctrl files;
    - acc -s: Enforce valid pause_capacity and resume_capacity difference;
    - acc -t: show more useful information; source read-ch-curr-ctrl-files-p2.sh;
    - accd: if possible, avoid idle mode when capacity > pause_capacity;
    - Additional charging switches;
    - Blacklisted usb/vbus_disable;
    - Fixed accd /path/to/config --init;
    - Fixed runCmdOnPause and loopCmd parsing issues;
    - Fixed: "after a reboot, accd doesn't control charging, until the keyguard is unlocked";
    - General refactor;
    - Hard reset wipes config and control file blacklists (acc -sr a or acc --set --reset a);
    - Improved advanced battery status detection;
    - Misc fixes & optimizations;
    - New config variables: batt_status_override=Idle|Discharging|'custom', batt_status_workaround=true, reboot_resume=false, reset_batt_stats_on_plug=false, schedule='HHMM command...' (refer to the config or readme files for details);
    - One-line scripts;
    - Parse config ampFactor from batt-interface.sh as well;
    - Post exit code notification if accd stops due to an error;
    - Removed obsolete source code files;
    - Run dexopt-job only once per boot session (if battery is charging, and system has been up for at least 15 minutes);
    - Save acc -t output to /sdcard/Download/acc-t_output.txt;
    - Tuning variables for not_charging() timeout (seqCount) and voltage-based idle mode (voltOff);
    - Updated documentation;
    - Updates can be downloaded with busybox's wget as well (may not work on all systems). Try upgrading with acc -u.
    I have the last version and my phone always stops charging at 71%. I have the same config I had on the previous version:


    I'm using the OP7 Pro OxygenOS 11.0.7 and the kirisuma kernel.
    Can someone help?

    Thanks!

    try the latest snapshot
    if the issue persists, as soon as charging stops at 71%, run acc --log --export, and share the generated log archive

    i've noticed something even though the charging stops correctly.
    after the charging stops, but while it's still plugged in with the screen off - the battery drains faster than it usually would when it's unplugged from power with the screen off.

    is this just a rookie mistake on my part i assume? a setting or two i need to adjust?

    This happens because the phone won't enter deep sleep while charging.
    AFAIK there is no way to fix that.

    1A?? Hell, where's the fun in that? 🧐

    ...heh, says the guy who never leaves AccA. Speaking of...is there any chance you'll tinker/tweak AccA too? ...for us casual users ofc. can't find many Pixel 4a folks to copy cat. 🤔 ...js

    1A is just a good starting point. One can go higher, while paying attention to the temperature.

    I'm not the developer of AccA. What I can do is add an acc setting to easily override temperature thresholds.

    No idea what exactly changed, but with the new ACC build now my cooldown charging cycle works completely as expected. Thank you!

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK