yashsingh1/xdaforums huggingface dataset:
[Magisk] pippoaacc:
Hi, I am on OnePlus One, and I am experiencing something I already had with mcs and mcc: when daemon disables charging, battery is frozen at that percentage, and measuring current shows 0mah instead of discharging. Is this known?
[Magisk] 0xPraeT0Rian:
Can I simply delete the module and it will be gone? It is causing wierd vibration and stops charging randomly.
[Magisk] NewDayRising:
Just a heads-up. Installed 0.3 on a Nexus 5X/Bullhead with Lineage OS 15.1; everything is working as advertised.

---------- Post added at 04:32 PM ---------- Previous post was at 04:25 PM ----------

There's a Magisk tool called uninmod. You can find it here on XDA if it's not in the Magisk repository. Flash it for each uninstall in TWRP, go into terminal, type in uninmod, it will list the modules and assign a number to each one. Type the number in, and it uninstalls them. You have to go through the process every time for each module. It might seem like overkill, but if you install a module that conflicts with something and causes bootloops, it's a good tool to have on hand.
[Magisk] pooniaprashant:
Is their any gui varient of this tool?
[Magisk] Jamess27:
Terminal use is very easy, just follow the instructions
[Magisk] Unkn0wM3m3:
Ok so I did

blex --enforce --update switch 99 95

And now when it reaches 99 it goes down to 95... Is that supposed to happen?

When it drops below 95 it starts changing again

OR

Should I change it to

blex --enforce --update switch 99 98

BTW

I am on a Galaxy Note 4

Reserruction Remix OS

Android 8.1

Final update

And I'm getting a new battery for my phone very soon so I really don't want this messing it up
[Magisk] Jamess27:
What do you want to happen? You want a vice between 99 and 95 or between 98 and 99

I use

blex --enforce --update switch 75 65

In order to increase battery life
[Magisk] Unkn0wM3m3:
You used?
[Magisk] rizduan7:
installation failed .please help me .i try to install this app through magisk manager but it show installation failed.my phone is doogee mix android 7.0 .tq

---------- Post added at 02:56 AM ---------- Previous post was at 02:53 AM ----------

how to install this app?using twrp or wht?
[Magisk] ssj435:
MTP not working..

After installing blex module mtp is broken.

Pls fix this.
[Magisk] slimshouki:
Failed to configure
[Magisk] mv0hra:
How did you get on, were you able to get the weird vibration to stop?

---------- Post added at 04:08 AM ---------- Previous post was at 04:00 AM ----------

Did you connect the phone to a charger? As a guide here is my config commands with description.

Su

Blex --configure

(connect the phone to a charger)

blex --enforce --update switch 80 76 (this will keep battery level between 80% & 76%)

blex --update power 5 (this will shut the phone off when it reaches 5%)
[Magisk] pooniaprashant:
i dont think that one should be using CLI in smartphones now, let them be simple. Anyways if anyone is looking for a much simpler alternative, there's an open source called "Battery Charge Limit" available on both fdroid and playstore. It has a pretty simple gui and works flawlessly on my device running lineage os 15.1
[Magisk] mv0hra:
Battery Charge Limit did not work for me. It also does not have the option to switch the device off when a certain level is reached.
[Magisk] pooniaprashant:
i cannot believe it not working on a oneplus 6, though i do agree it wont be have the "switch off" feature. Btw wouldnt the offline charging start if the device is switched off while plugged in?
[Magisk] slimshouki:
My fault wasnt connected to charger while configuring. However, after setting up threshold 99 and 60 and tried many trials it was working flawlessly untill auto switch not working anymore unless I run a manual enable command for 1minute then everything goes back to normal.

Is it related to miui battery saving ?
[Magisk] mv0hra:
I might be wrong but you can not have both, auto switch and a defined parameter, as there would be no point. Others can correct me if I am wrong.

Also, your parameters of 99% would not be beneficial for your battery. It is recommended to always have your battery level between 80% and 40% and never drop to 0%. If you stick to the parameters I listed in the previous post then I believe you are covered.

---------- Post added at 09:23 AM ---------- Previous post was at 09:17 AM ----------

@JayminSuthar, have you had the opportunity to have a look at the strange vibrating problem?

This happens when the phone is left on charge overnight and then it will randomly vibrate and continue to vibrate till I disconnect the charger.
[Magisk] Jaymin.0.1910:
Not yet, and I'd possibly never have since I'm currently developing another native program with similar purpose that will eventually replace blex. You can think of blex as EOL. The newer incomplete "C" language based project is also open source and available on my GitHub.
[Magisk] mv0hra:
Cool, look forward to it. Do you have a link?
[Magisk] Jaymin.0.1910:
I will share a link once a release candidate is available. It is currently incomplete.

You can though track the development here.
[Magisk] mv0hra:
[MENTION=6267177]0xPraeT0Rian[/MENTION], I found another module that seems not to have the vibration issue, it's called 'Magic Charging Limit' and is available on Magisk. I hope it works for you.
[Magisk] forjustin:
[MENTION=8570610]JayminSuthar[/MENTION] - Thanks for blex. Works perfect for me on redmi note 4X ,havocOS Pie, englezos Kernel.

:good::svetius:
[Magisk] Macusercom:
I've just installed this module on my OnePlus 6 running OxygenOS 9.0.2 and it works perfectly. I switched from MCS as there is some weird issue where the config files are always moved out of /data/media/ which made my device charge to 100 percent over night even though it works for several minutes. Blex works fine and I can finally prevent my device from charging to 100 percent :)
[Magisk] bigdumbjay:
Along with AdAway, Blex is my favorite part of having a rooted OnePlus6t. It is simple and does exactly what is needed. Thank you for making this, it's a fantastic module.
[Magisk] barnops:
Hi!

First off, I love this module.

It is exactly what I needed and it functions without any fuss.

So thank you!

I want to make sure this is expected behavior.

I have blex configured as follows:

auto switch thresholds: 75, 25

auto power threshold: 15

auto switch state: ON

auto power state: ON

Phone will not charge until below 25%, and will charge up until 75% and then stop.

Phone also shuts off when below 15%.

Here is the question; if the phone has been charged and is between 25% - 75% and I plug it into power the device will not charge UP but it will maintain its current battery charge level.

Say I was at 57% and plugged the phone in, the phone will maintain 57% indefinitely.

Is this expected?

I was under the impression the device (even while plugged in) would continue to discharge to its specified minimum value, charge up to the max, and then begin discharging once more.
[Magisk] Hayatzada:
how to completely remove this module
[Magisk] davidk21770:
Recalibrate battery?

I am having problems with sec-battery-vbus wakelock which my research leads me to believe is caused by the battery needing to be recalibrated -- a simple full charge may do it. BUT, how to I disable blex to allow this to occur? I know that I could disable it in magisk, but that takes a few reboots and I'm looking for a higher level solution -- perhaps a commandline line option that I missed?

Thanks!

Edit: it occurs to me that --manual enable 100 or --manual enable 100h may work -- testing ;)
[Magisk] davidk21770:
Just uninstall it in magisk. Reboot. You can disable it also.
[Magisk] Hayatzada:
can't see in Magisk manager
[Magisk] barnops:
I also feel like my phone has been discharging faster since I began using this.

Could BLEX be causing unintended drain?

Thanks again!
[Magisk] davidk21770:
This thread is for the version installed from magisk.

You should find it under modules (hit the 3 lines icon at the top left in madisk, choose modules, look for "battery life extender".

Hit the trash can icon to uninstall it.

If it's not there - did you install it from magisk?
[Magisk] R0ody:
Can somebody with spare time provide me actual terminal Code to handle my galaxy s8. Charging from 20 to 80%?

I did brick my actual phone like for the 10th time trying to handle stuff myself.
[Magisk] Jaymin.0.1910:
su
blex --configure
blex --update switch 80 20
[Magisk] Istrebitel:
First of all thank you for your awesome work.

I have three questions:

1) It seems that when I restart the phone, blex doesn't start immediately. Is that intended? After I start, I wait for 10 seconds, plug in charger, and it charges all right, even if it's above threshold. It will stop charging after a minute or two passes. This is a new OnePlus 5t so I doubt it's lagging, the phone itself runs flawlessly for me.

2) How do I check if blex is using too much cpu for me? Users in the thread reported it but I don't know a good app to use to track this. Anyone can suggest?

3) Where can I read about why should I never top my battery up to 100% and never go below 20%?

It seems a waste to never get my phone charged above 80%, I'd love it to charge to 100%, then stop charging until it reaches like 80%, but it seems that opinion in this thread is that it's bad? So I should be content with only using 4/5 of the possible battery time from now on?

Same with 20% shutdown. If I understand correctly the phone will shut down when reaching 20% on the battery indicator? So I can't use the phone below 20%? Even if I need to? This brings its battery life to 3/5 of what users without blex get? Is there a reason for this sacrifice?

Or am I just missing something? Please explain or give links to relevant material. Thanks!
[Magisk] davidk21770:
I ended up resetting the battery using blex; disabling blex in magisk; running my cell until it shut down from no power; connecting to power and booting; fully charging; using it a little; restarting blex in magisk - and all seems well with battery life again ?.

I'm wondering if an occasional full charge or full cycle is required by android to maintain its battery estimates?
[Magisk] davidk21770:
I had to disable this app.

Concept excellent. Implementation flawed.

Primarily: keeps phone from sleeping. constant power manager wakelocks.

Minor: no way to pause/disable/turn off.
[Magisk] SMNM_:
loving the thread and this module. can someone help me with how to set up so that my phone charges only till 80% and power off when at 3%?
[Magisk] goRt:
Charge stop at 80, start again at 60

blex --update switch 80 60

Power off at 3%

blex --update power 3
[Magisk] edimarcr:
ERROR: Failed to configure blex

Device: Xiaomi Redmi Note 4 MTK (nikel)

Android version: MIUI 10 by xiaomi.eu 8.7.26 Beta

Magisk v18.0

Init.d Injector version 1.8

Battery Life Extender version 0.3

Copy of terminal text:

root@nikel:/data/data/com.termux/files/home # blex --configure

************************************

Battery Life Extender (blex) CUI

************************************

NOTE: Press enter when device is charging:

- Configuring blex' kernel interface

ERROR: Failed to configure blex

File blex_install.log was not generated in the dev folder.
[Magisk] mhier:
Thanks for this great tool! It would be good to include somewhere in the initial posting recommendations about how to ideally use this very nice tool. From what I understand it is best to keep the state of charge as much as possible between 60 and 80%. Thus it is not wise to use something like 20% as a lower threshold.

My phone (Xperia Xa2) has plenty of battery capacity, so I actually stop charging at 80% and still have more than 50% change left at the end of the day. If I would charge normally to 100%, the battery would be over 90% for something like 20 hours each day, which would be very bad.

What I am wondering: is it a good idea to keep this enabled all the time? Can this e. g. hurt the estimation of the state of charge? If yes, how do we effectively prevent this? Is it sufficient to charge the battery e. g. once per month to 100%? And/or should we reset the battery statistics from time to time as well? What does that actually do?
[Magisk] gatalon:
This mod is very useful, Thanks for your effort.

I want to report a problem, when the blex daemon is running I can't use my type-c headset. I use latest 0.3 blex and my device is Oneplus 6T with silver bullet v2 headset.
[Magisk] Jaymin.0.1910:
Well, blex is dead and should be replaced by ACControl. I have mentioned it already somewhere.
[Magisk] mGforCe:
Hi [MENTION=8570610]JayminSuthar[/MENTION] I hope blex is not dead as your mentioned in this thread but is waiting for rewriting as mentioned in ACC thread. :confused:
[Magisk] YongJeah:
I set switch 98 90 ,then how could i manually charge my phone between 90-98
[Magisk] void4ever:
Hey [MENTION=8570610]JayminSuthar[/MENTION] Certainly not asking for a release time, but your Github you linked earlier in the thread for ACControl goes no where. Are you still working on it? I was interested in following development.

https://github.com/sjayminsgithub/Advanced-Charging-Control

Blex works fine on my OnePlus 6t using OOS 9.0.7, I haven't checked for wakelocks as some have mentioned yet though. Very interested in ACControl if you're still working on it.

Void4ever
[Magisk] alex moymoy:
Open Magisk download section and look for Advanced Charging Controller (acc) ?
[Magisk] void4ever:
I did search around before i asked and found the forum: https://xdaforums.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427

As well as the download in the magisk manager, but that thread was started in Sept of 2017, where as this one was Jan 2018. Also it says VR25 is the dev for the thread listed above. Is Jay running under two different names?

I didn't think it was the same project, but maybe it is?

Void4ever
[Magisk] lvbaal:
JayminSuthar not equal VR25 no and yes, JayminSuthar is still working on bkex's successor ACControl. Release date unknown.
[Magisk] alex moymoy:
From what I understood ACC was made from both devs. VR25 made Mcs and Jay the Blex and when Jay started speaking about ACC project was the same time that VR25 changed the name of his mod (Mcs to ACC). Jay stopped with Blex and the renamed VR25's mod came with new functions and supports. What I believe is that Acc was developed by both devs and now Jay have only time for his studying. Like I said that's what I can understand , maybe I'm wrong.
[Magisk] Jaymin.0.1910:
DELETED
[Magisk] Jaymin.0.1910:
Development has definitely not been stopped on ACControl, it's just that I had to rework the project in a manner that will probably be hard to track for public (as it was distributed in so many small commits that weren't as meaningful as needed to be), so I made the repository private and reinited git.

I will surely make the repo public again when I think it's good enough and does not expose my bad habits.

acc by [MENTION=5228676]VR25[/MENTION] and me are not the same, [MENTION=5228676]VR25[/MENTION] renamed his project MCS to ACC sometimes around when I announced ACControl, so the confusion begins. I will think of a different name to distinguish these both. Meanwhile, note that his acc is shell script based while mine is completely native (excluding boot script).

I and VR25 used to be collaborators back when MCS was called just CS, then we split due to our coding habits and I developed my own MCC which was reworked as blex and now I'm working to porting blex to "C" language. I am, in no way, associated with ACC developed by VR25 (other than using his control files database in ACControl).
[Magisk] void4ever:
I figured this was the case, thank you for clarifying! I'll continue to use Blex for now, thank you!
[Magisk] alex moymoy:
Like I said, that was my thoughts. My mistake. Sorry for that JayminSuthar.
[Magisk] CUBENSIS:
I'm on blex 0.3,magisk 17.1, oneplus 6t stock rom (android 9). I have blex set to stop charging when charge hits 85% and resume charging at 77%. If I am plugged into my car and hit 85% android auto will stop working. It won't work unless I restart the phone. Disabling blex eliminates this problem, of course. Is this expected behavior for blex? Any workaround besides toggling blex off when using android auto?
[Magisk] mobbdeep:
Sorry for asking but how come I can't find this in Magisk Manager?
[Magisk] Jaymin.0.1910:
It's been removed since I'm no longer maintaining it, though you can download blex from this thread.
[Magisk] Jaymin.0.1910:
Hello guys, I have made quite a significant progress on ACSwitch, the project to replace blex, and it's currently undergoing C/C++ migration. Meanwhile, as I have been using [MENTION=5228676]VR25[/MENTION]'s control files database in my project, the richer the databse the more devices it supports, so please guys, upload logs generated by acc to [https://www.dropbox.com/request/WYVDyCc0GkKQ8U5mLNlH/]this site[/url]
[Magisk] ktanev:
Error (4xx)

We can't find the page you're looking for.
[Magisk] wenjian065:
thanks for give it , use acc have more problem ,and blex not in magisk waiting for next version
[Magisk] VR25:
https://www.dropbox.com/request/WYVDyCc0GkKQ8U5mLNlH/
[Magisk] Evengard:
<message deleted>
[Magisk] mv0hra:
[MENTION=8570610]JayminSuthar[/MENTION], how goes your progress on the new version?
[Magisk] Jaymin.0.1910:
It's already been released with name ACSwitch, you can download it directly from Magisk Manager.

Note that I won't be making an XDA thread for the version as it gets quite too much for me too to maintain the thread, so I've linked a telegram group for support regarding concerns.
[Magisk] mv0hra:
Great, will try it out.
[Magisk] alex moymoy:
I can't find it on Magisk Manager. Any one with the same issue?

Thanks in advance
[Magisk] Jaymin.0.1910:
I have already gotten some similar reports, can you try with Magisk debug builds and provide debug logs so that I can find actually why it's not showing in the Downloads section ?
[Magisk] alex moymoy:
Is your telegram group called " AcSwitch news"?
[Magisk] Jaymin.0.1910:
It's called "ACSwitch Support"?
[Magisk] alex moymoy:
Can you please provide one direct link to to that chat? Because I only find the one that I mentioned before ?

Thanks in advance ?
[Magisk] Jaymin.0.1910:
Please check my signature, the group is linked in it :o
[Magisk] nortsov:
Hello, Jaimin!

Can you make changes in blex so it may allows set only low limit of hysteresis. In other words, charging stops by default, but next recharge will start not when charge percent falls to 99% (as usual), but when falls to some limit settled in blex?
[Magisk] Gurkut:
about usage

Hi, If is dummy question sorry for that.. i install with magisk and my phone is ok now but i'm not sure what is next step. What i have to do ? My phone is xiaomi Mi8 6/64 with eu beta rom
[Magisk] dtrail1:
Now this is the second device I'm trying to install this. Currently I want to use it with P8 Lite 2017 (DotOS 3.0, Android Pie). It was running fine before on Oreo. But there it was available via the Magisk Manager download, now I cannot find it there. And alwayws I try to flash the latest file from the OP, I get "blex files are corrupted", when trying to enter "blex" in terminal.
[Magisk] agent_47:
Really awesome toolkit. The concept is simple and nice.

However I noticed that the ascd daemon is registering 100pc cpu usage ona single core. Using 1.0.0.103 installed from magisk.

Using lg v30. With havoc Os based on pie.

I'll have a look at the source code to have a look at it.
[Magisk] Jideofor5050:
battery extender for kitkat

Can i run this module in jellybean(4.2.2) and kitkat(4.4.2)? If yes which of the module am i going to install?
[Magisk] mrsus01:
Anyone else finds it not working on Magisk 19.4, in Terminal it says (ERROR: blex files are corrupted).
[Magisk] k_l_o:
Have the same problem... Had to start using this app:

https://play.google.com/store/apps/details?id=com.slash.batterychargelimit&hl=en_US

Works for me.
[Magisk] OnlyHazeRemains:
Magisk 19.3 is the last version that works with blex. I downgraded since the changelogs up to Magisk 20 dont show anything i absolutely need. Blex is worth more.

But an update would be great if you can find the time.

/edit

To anyone coming here, this module seems dead now.

Try "Advanced Charging Controller", does the same as BLEX just with a nice app for configuration.
[Magisk] Ringsofsaturn777:
Installation failed

Please help. I got this error while installing BLEX via magisk manager v20. 1

- Copying zip to temp directory

- Installing blex-0.3-201810161-stable-signed.zip

******************************************

Battery Life Extender (blex) Installer

******************************************

- Preparing environment

- Checking for Magisk support

- Mounting /system and /vendor

ERROR: Failed to mount /system

! Installation failed

---------- Post added at 07:42 AM ---------- Previous post was at 07:35 AM ----------

Thank You
[Magisk] hiteshsingh324@gmail.com:
Issue magisk

When I'm install zip file in magisk is show Failed Mount/System
[Magisk] Mahdial:
Does this tool support Asus Zenfone Selfie which has Qualcomm MSM8939 Snapdragon 615 chipset?
[Magisk] okotzak:
Same broblem here with android 13 (crdroid 9.2)
[Magisk] Jaymin.0.1910:
Hi,

I'm sorry for the inconvenience

It is a known issue with most Samsung devices, they all have two different switches ( batt_slate_mode and store_mode ), of which, using store_mode is not recommended since it'd halt battery level instead of stopping charging, while with the other one, the issue you experienced will appear, it is a fault with samsung's implementation

Please forgive me that ( mcc is limited to shell only )

MCMotherEffin'
[Magisk] Ali.G:
Why is my device not supported? I used to install it before...how do I share the log?
[Magisk] Jaymin.0.1910:
If you are on MM 5.6.0 or later, please read some previous posts!!!;)
[Magisk] Ali.G:
Thank you! For now I can not use the application than - is there any alternative for it?
[Magisk] ugvpkn:
You could install an earlier version of Magisk, install mcc and upgrade magisk. Only the installation of mcc is impacted, it works perfectly day-to-day while charging.
[Magisk] DaveedDB:
Is this only for magisk guys ? Or can I run it with supersu ?
[Magisk] Jaymin.0.1910:
Hey, here is a good news,

I have recovered my laptop and made necessary changes, so a new updated build will be pushed sooner, maybe today
[Magisk] Jaymin.0.1910:
Deleted, was a duplicate post
[Magisk] Jaymin.0.1910:
Yes, you're absolutely right
[MENTION=6114380]Ali.G[/MENTION] , you can go by this suggestion if you don't want to wait for the update
[Magisk] Jaymin.0.1910:
Hey, it is only for Magisk v14.0+

I could have created it for SuperSU ( it is root solution independent ), but the reason I chose Magisk is that it provides a complete environment for Android modding, everything I need for this mod to work flawlessly is provided by Magisk and also, SuperSU is mostly retired, so I suggest you should consider migrating to Magisk ( topjohnwu has really put tons of effort to make it as stable as possible ),

So, unless some developer who knows Shell quite a well ports it to SuperSU, it is just for Magisk:)
[Magisk] Jaymin.0.1910:
Can someone post here the output of

getprop | grep -E 'product|build|kernel|cpu'

Thanks