Related
Hi, i have problem with battery charging, when i use athena as usb modem. On display in battery menu it is written charging, but the meter go down. When i use it through night, the modem shut down due to the battery. I red in some topic, that usb charging is dissable, because it destroy battery. It is true? How can i turn on cradle battery charging? Which rom support it? I use irus vanila rom sp 3.5.
ftoz said:
Hi, i have problem with battery charging, when i use athena as usb modem. On display in battery menu it is written charging, but the meter go down. When i use it through night, the modem shut down due to the battery. I red in some topic, that usb charging is dissable, because it destroy battery. It is true? How can i turn on cradle battery charging? Which rom support it? I use irus vanila rom sp 3.5.
Click to expand...
Click to collapse
Never heard about usb charging destroing the battery!
Usb charging is the only availabe way I know to charge a battery when installed!
Relax because it's just the athena draining faster than charging (from your PC athena gets low juice).
If you whant to minimize the draining just remove backlight, turn off the screen (but unfortunately if I'm not wrong Irus rom already did it on it's own... or maybe was one of the mychyprima's.... great function was it!) and turn off extra radio connction like bluetooth.
I think the sentence "Destroy battery" means that short live battery due to short charging. But you are right. Athena concumation is sometimes higher than charging. Can i underclock cpu? Can i turn off microdrive? Its possible in mitchy rom?
ftoz said:
I think the sentence "Destroy battery" means that short live battery due to short charging. But you are right. Athena concumation is sometimes higher than charging. Can i underclock cpu? Can i turn off microdrive? Its possible in mitchy rom?
Click to expand...
Click to collapse
Use an USB 2.0 port, Set backlight to minimum, disable BT and WIFI. To enable other powersave cheats use "advanced config rel. 3.2" from Schaps.To downclock the CPU you can use XCPUScalar from immiersoft http://www.immiersoft.com/, but he problem is simple: you are using your athena for something it isn't designed to operate!
You are using it to transmit at full power for HOURS, it could be dangerous for your health if this happens in your room, but also the ATHENA Radio life will be very short!
sergiopi said:
Use an USB 2.0 port, Set backlight to minimum, disable BT and WIFI. To enable other powersave cheats use "advanced config rel. 3.2" from Schaps.To downclock the CPU you can use XCPUScalar from immiersoft http://www.immiersoft.com/, but he problem is simple: you are using your athena for something it isn't designed to operate!
You are using it to transmit at full power for HOURS, it could be dangerous for your health if this happens in your room, but also the ATHENA Radio life will be very short!
Click to expand...
Click to collapse
This is a good idea Sergiopi, but if it's still consuming too fast for him he can get a BT adapter for his laptop and use the phone as a modem via bluetooth, atleast by doing it this way he can still plug his standard OEM home charger in the phone and let it charge while Tethering with his laptop. If not Your suggestion will be his next best bet.
anyone knows?
possibly need to write a custom oem_misc.dll. if some one can, then we can have TV out too ...
i heard it is just a reg change
anyone knows pls?
Don't know the reg change in this case, but guess won't really work.
For instance, for enabling FM radio without headset, changing the headset state in reg won't work. I would be happy to be proven wrong though
leobox1 said:
anyone knows pls?
Click to expand...
Click to collapse
Hi leobox1,
Not sure that there is a way to enable this. Charge rate is determined by battery voltage and available current from the charger, not by software (other than the simple battery management chip in the battery). So if your battery is low and you have high power USB connection, it will take as much charge transfer as the battery will accept, provided the supply voltage can keep up. I don't think that the charger circuit can recognise the difference between low power USB, high power USB, or charger USB connection.
mike.waters said:
Hi leobox1,
Charge rate is determined by battery voltage and available current from the charger, not by software .... I don't think that the charger circuit can recognise the difference between low power USB, high power USB, or charger USB connection.
Click to expand...
Click to collapse
I don't think so. When HD is on, the current consumed at a given battery level of charge for a given (same) voltage is higher with wall charger than computer USB. Don't have the values that I measured once... But this doesn't seem to be the case when HD is switched off.
So there has to be some kind of monitoring going on by the CPU.
The charger has the two data pins connected together so the handset knows it is receiving power from the charger and not a USB port. The device will then charge with as much power as the charger will allow, up to 1000mA
The amount of USB power definately changes the speed at which this recharges. I purchased a 3amp car charger and it will charge my Touch HD in half the time it charges from the wall charger. My laptop puts out a small USB power supply and it take all day to charge my phone. My old Pocket PC had the selection for fast or slow charge, this one seems to handle it on it's own.
hmm so in short it is beyond our control?
leobox1 said:
hmm so in short it is beyond our control?
Click to expand...
Click to collapse
In short - Yes
backdoc94 said:
I purchased a 3amp car charger and it will charge my Touch HD in half the time it charges from the wall charger.
Click to expand...
Click to collapse
3 Amps? Are you sure, I don't know if I would want to connect my Touch HD to a 3A supply. Where did you buy it from?
Picked it up from ebay. It works really well, no overheating. The phone only takes what it needs, the charge is controlled by the phone not the charger.
Oh, I know the phone will only pull the power it wants, that is not the issue. A 3 amp power supply would cost quite a bit if it was a decent regulated one, and I would not use anything but a regulated power supply.
So I was guessing you were using a 3A unregulated supply. Which is something I would be very wary of, the risk of a voltage spike is going to be higher than with a lower amperage.
the only reason that the phone charges faster using the htc charger is so that people like us spend more money on official htc accessories.
its not just htc that do this.
why do you even think they have this extusb instead of a normal usb port?
a normal usb port on a pc is rated to give out 500mA (half an amp) of current.
that doesnt mean that a normal usb socket cant accept more than that though. just think back to the old htc devices that charged much faster.
wake up guys
http://www.nuerom.com/BlogEngine/
I think theres something interesting there
chrisque1 said:
http://www.nuerom.com/BlogEngine/
I think theres something interesting there
Click to expand...
Click to collapse
what is it for?
I woke up this morning and the battery of my Atrix was completely dead. Since I was in a hurry to get to work I thought I'm going to charge using the computer in my office with the supplied USB cable.
It appears that the phone won't charge from 0% turned off! I had to borrow a Blackberry wall charger from a college and jump start the Atrix before plugging it to my computer's USB and start charging.
My iPhone 3GS would come back to life if plugged to the USB port after a complete discharge.
Is there a solution for the Atrix? Are there other android devices you know of with the same issue?
Thank you
my milestone also have this prob
The moto wall chargers run at 800+ma. This is more than the usual ~400-600ma that other chargers run at. Computer USB ports only supply 500ma MAX. The atrix doesn't seem to like anything under ~600ma and prefers 800-1000ma for some weird reason.
If you've got a well powered USB port, it will charge the phone. If it's underpowered, the phone won't even take the charge.
Yes, from a dead batt, the phone wont even wake up the charge circuit for anything under 600ma. I've experienced it as well.
Thank you. What about USB 3.0? I have that in my home PC. But it still sucks how I can't wake up the phone if the battery completely drained with all the USB around me at work or wherever when a wall-charger is not within reach.
Shouldn't the phone preserve the last drops of the battery before shutting down so it allows us time to start it up again and charge by USB 2.0?
I think it wouldn't hurt if Motorola made it shutoff at like 2% allowing us to charge the device and get it up using USB 2.0. Or maybe a dev can get around it as an optional tweak for users?!
That also made me think of something else. Would the alarm go off if the battery completely died while you were asleep? I know iphone, Nokia and probably many other smartphones does that (preserving last drops for this purpose).
all usb has the same voltage specs, 3.0 ports wont charge better than 2.0 ports on the same system, the only thing that will make a difference is the build quality of the hardware and the voltage regulation from the power management.
A powered usb hub would be your best bet if you can't get to a moto charger
diedemus said:
all usb has the same voltage specs, 3.0 ports wont charge better than 2.0 ports on the same system, the only thing that will make a difference is the build quality of the hardware and the voltage regulation from the power management.
A powered usb hub would be your best bet if you can't get to a moto charger
Click to expand...
Click to collapse
I thought it's better to bring up this thread instead of opening a new one since I've been investigating the same issue.
We all know that Android phones and widgets especially can drain the battery unexpectedly.
I PM'ed kennethpenn if there's a way to automate a shutdown when the battery reaches a certain level so it can charge and wake up connected to a computer USB 2.0 port (As in if it can be implemented in his ROM). Kenneth replied that he's not sure, and I've been looking for an app that can do that.
Now before we go more on that, I wish to have your opinion on how important you think it is to sacrifice the last little drops of the battery in favor of being to charge/wake up your devices when you're on the go and may not have access to wall charger?
If there's an app that can allow it then I'm welling to do the tests and find the sweet spot of when to shutdown and if it would actually charge to wake up.
Thank you
I had the same problem yesterday, I only have the USB cord with me and I thought my phone was dead for real or defective. Thanks god for XDA ... The user manual did not say anything about computer usb power not being powerfull enough.
CyberPunk7t9, there is (a few) threads dedicated to improving Atrix battery life full of usefull tricks. I did not try it yet, but SetCPU might be of a great help too.
Remeber, the Atrix requires the Motorola usb drivers to be installed to charge the phone off a port. If the phone is off, your computer is not reconigizing that it was plugged in, so the drivers do not start. *I could be wrong* Happen to me last night though
it's a hardware issue on the computer side. without the moto drivers there telling the USB port to up the current coming out, your phone won't charge on it. most computer-based USB ports do not run high current for power purposes unless enabled. it cannot be solved with an app and mandating a shutdown at 2% is most likely going to cause more problems than solve. the solution is to not run your battery down, honestly. you shouldn't be for LiPo batteries anyway.
diedemus said:
all usb has the same voltage specs, 3.0 ports wont charge better than 2.0 ports on the same system, the only thing that will make a difference is the build quality of the hardware and the voltage regulation from the power management
Click to expand...
Click to collapse
It's not voltage that matters, it's current.
I have a gigabyte board which has 'rapid charge' technology, meaning it supplies extra amperage to the usb ports...my battery was close to dying when I saw this thread so as a test I let it completely die and then I tried charging from usb.
Result: It worked.
I still don't get as quick of a charge from USB as I do from the wall but at least there is enough amperage to charge from a completely dead state.
diedemus said:
all usb has the same voltage specs, 3.0 ports wont charge better than 2.0 ports on the same system, the only thing that will make a difference is the build quality of the hardware and the voltage regulation from the power management.
A powered usb hub would be your best bet if you can't get to a moto charger
Click to expand...
Click to collapse
Get your facts straight!..............USB 3.0 IS a powered USB port!
USB 3.0 will charge more devices, quicker
Not only will USB 3.0 cables facilitate faster transfer speeds, but they’ll carry more power, too. The USB-IF recognizes the growing number of portable devices that charge via USB (cellphones, MP3 players, digital cameras), and have bumped the power output from about 100miliamps to 900 milliamps. That means not only will you be able to power more than 4 devices from a single hub, but the increase current will let you charge up heftier hardware as well.
Maximum PC
<edit> Also, my Atrix charges fine off the 3.0 ports on my HP laptop.
dcarpenter85 said:
I have a gigabyte board which has 'rapid charge' technology, meaning it supplies extra amperage to the usb ports...my battery was close to dying when I saw this thread so as a test I let it completely die and then I tried charging from usb.
Result: It worked.
I still don't get as quick of a charge from USB as I do from the wall but at least there is enough amperage to charge from a completely dead state.
Click to expand...
Click to collapse
I have a gigabyte UD7 in my PC. I wanted to use the rapid charge feature for a while. Still planned. Also the On/Off Charge feature to charge the iphone/ipod while the computer is turned off. I will probably assign some time to test those tomorrow.
CaelanT said:
Get your facts straight!..............USB 3.0 IS a powered USB port!
USB 3.0 will charge more devices, quicker
Not only will USB 3.0 cables facilitate faster transfer speeds, but they’ll carry more power, too. The USB-IF recognizes the growing number of portable devices that charge via USB (cellphones, MP3 players, digital cameras), and have bumped the power output from about 100miliamps to 900 milliamps. That means not only will you be able to power more than 4 devices from a single hub, but the increase current will let you charge up heftier hardware as well.
Maximum PC
<edit> Also, my Atrix charges fine off the 3.0 ports on my HP laptop.
Click to expand...
Click to collapse
I have USB 3.0 in my PC too. But as someone stated here, USB 3.0 does not provide more voltage than USB 2.0. Just more consistency I think.
But what matters, Can any of those solutions charge and start a completely dead Atrix?
Thank you for participating guys.
USB ports can only source 100mA unless the host and client agree to a higher current. If as mentioned the Atrix needs more then this to wake-up the phone with a dead battery then it can never request the higher current. This is also why the Moto drivers need to be installed to get the higher current.
CyberPunk7t9 said:
I have USB 3.0 in my PC too. But as someone stated here, USB 3.0 does not provide more voltage than USB 2.0. Just more consistency I think.
But what matters, Can any of those solutions charge and start a completely dead Atrix?
Thank you for participating guys.
Click to expand...
Click to collapse
you need a port or power source that will supply enough current to the phone. period. if your computer's ports don't do it, it won't work. go find a higher amp USB port.
Maybe try the usb 2 to 1 cable? So you plug it into 2 usb ports and than into the atrix
CaelanT said:
Not only will USB 3.0 cables facilitate faster transfer speeds, but they’ll carry more power, too. The USB-IF recognizes the growing number of portable devices that charge via USB (cellphones, MP3 players, digital cameras), and have bumped the power output from about 100miliamps to 900 milliamps.
Click to expand...
Click to collapse
Actually USB 2.0 can supply 500 mA, but as someone said to get more than 100 mA, the host and device have to 'negotiate' which I think means driver support of some kind.
I have noticed in Device Manager says that my SGS plugged into my laptop as a mass storage device is only taking 100 mA, but it doesn't charge much slower than it does from a wall charger (which is actually pretty slow, almost 3 hrs for a full charge). Still if I do the math to charge 1500 mAh at 3.7V with 5v in 3 hours would take about 370 mA (assuming 100% efficiency, so the actual current draw must be higher).
If anyone knows a more accurate way of determining the current a USB port is supplying, since Device Manager seems to be wrong, that would be interesting information.
What's interesting here is that at 0% the device isn't even on and can't power up to negotiate a higher current draw. If it can't turn on with 100 mA from the charging port it's stuck, which I suspect is the problem here with the Atrix.
USB 3.0 has the potential to charge at 900mah but yes it’s still 5vdc, the phone will not pull more than 500mah unless it detects the data lines are bridged. This is a safety feature so it doesn't blow your usb2.0 ports as the phone wasn’t built with usb 3.0 spec in mind. If you have a 3.0 usb port you can make a fast charge cable with the data lines cut and bridged, make sure you cut them and they aren't still connected to the host side or you might kill your port.
callen81 said:
USB 3.0 has the potential to charge at 900mah but yes it’s still 5vdc, the phone will not pull more than 500mah unless it detects the data lines are bridged. This is a safety feature so it doesn't blow your usb2.0 ports as the phone wasn’t built with usb 3.0 spec in mind. If you have a 3.0 usb port you can make a fast charge cable with the data lines cut and bridged, make sure you cut them and they aren't still connected to the host side or you might kill your port.
Click to expand...
Click to collapse
mA, not mAh
dLo GSR said:
mA, not mAh
Click to expand...
Click to collapse
I'm so used to talking about batteries I guess I left the "h"ours in, haha.
I recently switched using to pro3 from max2. I have a small problem, now i found twice that the phone was completely turned off in the morning.
The charging cable was connected in both cases. I could turn it on by pressing power button few seconds. Than Android boots normally. But normal pressing the button does not turn on screen. I didn't try the fingerprint sensor (forgot)
Also, charging light was off even though the charger was connected. After boot, the charge was 100%
I am using LineageOS 15.1, but I remember seeing a scheduled turn off setting in EUI before switching. Can it be that I forgot the setting on before installing LineageOS. Can that option stick between OS changes? I assumed it should set something in processor to be able to wake phone up from total shutdown?
Were you using the stock charger?
I had issues with a stock charger shutting down the phone overnight I got one good and one bad one. Great phone but the chargers and USB chord are lousy quality. There are a lot of complaints about faulty chargers and USB chord's and lots of replacement recommendations in other Post's
yurtesen said:
I recently switched using to pro3 from max2. I have a small problem, now i found twice that the phone was completely turned off in the morning.
The charging cable was connected in both cases. I could turn it on by pressing power button few seconds. Than Android boots normally. But normal pressing the button does not turn on screen. I didn't try the fingerprint sensor (forgot)
Also, charging light was off even though the charger was connected. After boot, the charge was 100%
I am using LineageOS 15.1, but I remember seeing a scheduled turn off setting in EUI before switching. Can it be that I forgot the setting on before installing LineageOS. Can that option stick between OS changes? I assumed it should set something in processor to be able to wake phone up from total shutdown?
Click to expand...
Click to collapse
Try with diffrent charger and cable.
yurtesen said:
I recently switched using to pro3 from max2. I have a small problem, now i found twice that the phone was completely turned off in the morning.
The charging cable was connected in both cases. I could turn it on by pressing power button few seconds. Than Android boots normally. But normal pressing the button does not turn on screen. I didn't try the fingerprint sensor (forgot)
Also, charging light was off even though the charger was connected. After boot, the charge was 100%
I am using LineageOS 15.1, but I remember seeing a scheduled turn off setting in EUI before switching. Can it be that I forgot the setting on before installing LineageOS. Can that option stick between OS changes? I assumed it should set something in processor to be able to wake phone up from total shutdown?
Click to expand...
Click to collapse
Don"t charge overnight with stock cable.
Although the phone was connected to charger when this happened, I don't understand why you would think that the problem is the charger or cable?
In either case, it happened with 2 different chargers with different cables in different rooms connected to different power outlets. I use the same chargers to charge another Pro3 and also I used them with my old Max2 and nothing like this happened ever with those phones.
Today it happened again and before I restarted the phone I connected it to PC and PC finds the phone as `Qualcomm HS-USB QDLoader 9008` but I am not sure how and why it would go into this mode by itself? Is there a way to debug how phone entered that state?
It's well known that the stock cable can cause various issues, along with burned ports and unexplained shutdowns. The official LeEco forum is gone, but there WERE posts regarding this issue and pictures back in 2016-17.
I guess you weren't on this subforum back in those days, so you missed out on the various warnings. Darkobas and Code suggested that we NOT use them. Users ignored such warnings and as a result their phones stopped functioning properly. This is is very YMMV. Though it's not worth the risk.
You're not the first that has experienced issues, nor are you the last.
https://forum.xda-developers.com/le-pro3/how-to/guide-unbrick-le-pro3-tested-t3622340
https://forum.xda-developers.com/le-pro3/help/im-trying-to-unbrick-x720-qfil-pc-wont-t3779826
@Ace42 Firstly, how will cable cause phone to shut itself down? (actually, as we know now it was in some Qualcomm QDLoader device mode). Can you explain it technically?
I heard about those rumors about cables. To be honest, it feels like somebody was trying to spread FUD. I have bought two max2 phones and four pro3 phones and the cables were perfectly fine. Also a friend of mine bought one max2 and he had no problems either. But I have many cables and chargers because I like to have redundancy and easy access to charger in any room. So I use other cables and chargers. Had no problems with any yet. I am an engineer and monitor the performance of everything I use very carefully. Those cables perform up to specs so far.
Perhaps competitors of LeEco tried to cause panic. Then some people who do not have the necessary information or engineering data blindly suggest something which they can't be blamed for. I have seen it this many times. If you can tell that cable can be used or shouldn't be used, it is 100% safe to tell not use it
Other phones that rely on QC3.0/4.0, such as the LG G6 and Razer phone charge at about half the speed (1800-2100mA). The Pro 3, with the stock charger, will charge well over 3200mA throughout (0-100). It's running out of spec, and not in line with other QC phones.
The Razer, according to owners on XDA, will start over 3000 (until it hits 25%). Once it gets there the rate is effectively cut in half. Again, the Pro 3 will continue to hit 3000-4000 after 25%, and G6 has a constant 1800mA rate. So Samsung and LG phones from the SD82x era shipped phones that charge around 1500-2xxxmA. For some reason the Pro from the same year is much, much faster.
Also if you ask Darkobas (former dev), he'll mention proprietary code for the stock charger. So it's not the same as using Samsung's adaptive charger, or literally any other QC compliant charger. For whatever reason it's able to fry ports (which could be due to cheap parts in the phone), cause the phone to **** off, and initiate QFIL mode.
The last one isn't crazy actually. You can brick an Essential phone by using the stock cable. Now as you mentioned, the phone goes into a special mode (which is unheard of on other devices). That reminds me of these factory cords.
https://www.xda-developers.com/build-your-own-kindle-fire-factory-cable/
https://www.androidauthority.com/essential-phone-usb-c-cable-831817/
What I still don't know is where the problem exists. Is it the phone's board, USB cord, or something else? That's the real mystery.
You raised an interesting point by mentioning competitors. However, I'd rather not take the risk. You're better off using another charger instead of giving yourself a headache.
For the record, before when I most of the time left my phone charged overnight, it would still run fine with stock EUI. Now with custom ROM, this dreaded issue is happening consistently. You won't be able to turn on the phone unless you plug it back and hold the power button for 30 sec or so. And yes I am using the stock charger and cable. No burn in so far since Oct. 2016.
Joms_US said:
For the record, before when I most of the time left my phone charged overnight, it would still run fine with stock EUI. Now with custom ROM, this dreaded issue is happening consistently. You won't be able to turn on the phone unless you plug it back and hold the power button for 30 sec or so. And yes I am using the stock charger and cable. No burn in so far since Oct. 2016.
Click to expand...
Click to collapse
Galactic Stryder and Darkobas worked on supporting the stock charger. It requires additional work.
"Regarding issues with QC 3.0, beware that it has a throttle down mechanism when battery reaches ~40°C it limits input to 2,5Ah and also that it can reach 4,0Ah maximum up to 80% only if the battery temperature is below the threshold for safety zone.
This is the only Kernel using LeEco's charging mechanism with proper safety checks in a minimal manner for ZL1, of course the HW itself can adjust input even without the OEM code in place but it would be a risk to fallback on it without those simple checks.[/QUOTE] - Galactic
Running into this issue too now I'm running aicp, so I guess it's dangerous to use stock charger with these ROMs?
Ace42 said:
Other phones that rely on QC3.0/4.0, such as the LG G6 and Razer phone charge at about half the speed (1800-2100mA). The Pro 3, with the stock charger, will charge well over 3200mA throughout (0-100). It's running out of spec, and not in line with other QC phones.
Click to expand...
Click to collapse
Actually, you are very wrong. Because laws of physics does not allow you to charge li-ion battery with same speed between 0% to 100%. Because the charger can't raise the voltage over 4.35V. Thats why qualcomm always put out figures of 0 to 80% when talking about quick charge. After ~80% charging process will slow down whether you like it or not.
You have spectacularly failed to explain why a cable can technically cause this issue on this phone. I recommend you to first try to understand why something is happening instead of quoting random people's thoughts. There is no guarantee that the people you quote know what they are talking about to begin with....
meangreenie said:
Running into this issue too now I'm running aicp, so I guess it's dangerous to use stock charger with these ROMs?
Click to expand...
Click to collapse
No reason to be worried, stock charger has nothing to do with this issue. Also stock charger works perfectly fine. @Ace42 simply does not know what he is talking about. Spreading FUD, you know?
Actually, in my device I even limited maximum charge voltage to 4.2V (only charge up till 84%) and it still turns itself off sometimes when connected to charger, even when the phone stops charging, also with different chargers and cables. Even with USB-PD chargers with type-c outputs and type-c to type-c cables. This clearly tells me that the issue is nothing to do with charger or charging voltages or charging speed, or cable. Also here it was mentioned that this did not exist with EUI and somebody who used LOS 14 says he didn't have it until he upgraded -> https://forum.xda-developers.com/le-pro3/help/los-15-1-zl1-leeco-pro-3-x720-shutting-t3846441
yurtesen said:
No reason to be worried, stock charger has nothing to do with this issue. Also stock charger works perfectly fine. @Ace42 simply does not know what he is talking about. Spreading FUD, you know?
Actually, in my device I even limited maximum charge voltage to 4.2V (only charge up till 84%) and it still turns itself off sometimes when connected to charger, even when the phone stops charging, also with different chargers and cables. Even with USB-PD chargers with type-c outputs and type-c to type-c cables. This clearly tells me that the issue is nothing to do with charger or charging voltages or charging speed, or cable. Also here it was mentioned that this did not exist with EUI and somebody who used LOS 14 says he didn't have it until he upgraded -> https://forum.xda-developers.com/le-pro3/help/los-15-1-zl1-leeco-pro-3-x720-shutting-t3846441
Click to expand...
Click to collapse
thats me who was mentioned upgrading from LOS 14.1. I have a detailed description of my issue in the thread that was linked above.
never had any problems with the stock charger. And my phone turns off when i am not using it for several hours, unrelated to it charging or not.
seems to be related to deep sleep I guess?
I have exactly the same problem. The phone turns off twice a week twice a week. An alarm does not work. Daughter is late to work .
I have one i9506 , where is all time on charger and this is problem, unfortunately, the batteries are often inflated in this mode.
Is there any possibility of i9506 controlling the charging?
No. There is circuitry in the battery and the charger which communicates to the device the correct battery level. That circuitry cannot be bypassed or tricked. While I've never tried it with a smartphone, your best bet would be to remove the battery and simply power the device with the charger.
Is there a magisk module that does this:
https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427/amp/