Tweak for charging through USB3 ? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: Tweak for charging through USB3 ? (/showthread.php?tid=12131) |
Tweak for charging through USB3 ? - cafe - 11-12-2020 Hi all, I received my Pinephone a few days ago, installed mobian on it, and noticed I could not get the battery to fully charge while plugged to a USB3 port. "Power supply" was showing me "Current limit : 0.5A", although I know an USB3 port can deliver much more. So I went looking for a solution and ended up simply tweaking this current_limit by putting Code: 3000000 Code: /sys/class/power_supply/axp20x-usb/input_current_limit After that, yeepee! my phone is now charging a lot faster and finally approaching 100%. But the thing is, I really don't know what I am doing there, and since I found a lot of posts about charging issues, I can't believe the solution is that simple. So is it safe to change this input_current_limit ? Can I put that into a udev rule and consider the problem solved ? (i.e. : I can finally charge my phone simply by plugging it to my USB3 port) or do you guys see anything that can go wrong setting this input_current_limit manually ? RE: Tweak for charging through USB3 ? - HLing - 11-12-2020 (11-12-2020, 11:10 AM)cafe Wrote: Hi all, I have no idea if what you did was safe. I did check my numbers though: in /sys/class/power_supply/axp20x-usb/input_current_limit it is set at 500000; in voltage_min it's 4000000; in current_max it's 1500000 When i use a pd charger (with USB type c to type c) I usually get 1.5A, but if i forget, and have the charger plugged in while I did a reboot, it has been known to either stop charging, or charging at 0.5A. At this point I would unplug. reboot. re-plug. and it's back to 1.5 A. Once upon a time, after one of the updates, I did see in the app Powersupply that it was charging at 3. something A. But that was the only time, and it never went back to that number. RE: Tweak for charging through USB3 ? - cafe - 11-13-2020 Thanks. Well, I added a udev rule to trigger the change every time a usb typec cable is plugged, and so far, everything is working well. The amperage is not limited to 500mA anymore and I can charge quickly by connecting the Pinephone directly to a USB port. |