Rumor has it that keeping an 8-year-old phone permanently plugged in with its equally ancient Li-ion battery might not be the greatest idea ever conceived.
Some even claimed that a phone needs a battery to work.
Very negative people.
Anyway, I removed it.
Pettyl did not care.
nginx: UP
PHP-FPM: UP
MariaDB: UP
WordPress: UP
cloudflared: UP
sshd: UP
The battery is currently sitting next to the phone, contributing absolutely nothing to the project.
Pettyl is now running entirely from USB power, at around 37°C, while continuing to serve the website like this is completely normal.
There is, however, one tiny detail the haters may enjoy:
It can’t boot without the battery.
So the official Pettyl disaster recovery procedure is now:
What did you put in place of the battery? nothing or a cap? i tried this with a moto g6 but there is not enough power delivered through its own usb port so i have to use a 5volt source+capacitor connected to the bms i saved from the battery.
PS: My daily driver phone is from 2019 and it’s going great (Samsung Galaxy A20…I know, I know…but I lobotomized it). When it dies…I will grab an equivalent 2019 Moto.
My old Galaxy S5 would work without the battery, including bootup. So it’s not entirely unexpected that other phones could also do so. I would say I can’t imagine who would take the time out out of their day to just talk out their ass and claim something like this wouldn’t work without trying it first. Except then I remember this is the internet, and people do that all the time.
Just to clarify though, the “they said it couldn’t be done” part was mostly me being ironic and unnecessarily dramatic for the post lol. The comments on this whole project have actually been overwhelmingly positive and helpful.
People here are the reason I even tried some of this stuff in the first place.
But I genuinely appreciate you having my back. And the S5 being able to cold boot without a battery is really interesting — Pettyl unfortunately needs its battery as a starter motor. 😂
The HTC Aria at least could also cold boot from USB power. The first method developed for bootloader unlocking on it required an SD card with the unlocking software be inserted at a particular time during the boot process. And the SD card slot was under the battery!
Edit: now I have to double check myself; signing back into some old posts maybe I’m not remembering the process correctly. It was maybe 16 years ago, and I’m getting old! :-)
I once soldered a usb wire into the terminals where the battery of my moto g4 used to be, and it kept crashing on boot. So I added a large capacitor right across the terminals, and even with that and being at 5V (on a 5 amp supply), some apps still overloaded it and got it to crash.
Would love if there was some package that just attached like a battery with a usb wire coming out the bottom, that could supply any spikes if the usb provided enough average power.
It’s not just the spike, but the battery is supplying more power than the adapter for sometime extended periods of time. It would take an expensive, or very large, capacitor bank to hold enough power to accomplish that for very power intensive apps. Capacitors are good at charging and discharging quickly and lasting many more cycles than a battery, but no where near the capacity.
What you really need to know is exactly how much power the battery can provide and adjust the power supply to be able to supply that on demand and just enough capacitor capacity to smooth out the initial spike until the power supply gets the power up. I haven’t done the research to know the exact amounts, but I have a lot of experience with electrical and electronics in general, both professionally and amateur. So I could probably build it if o knew the exact specs.
That or adjust the phone firmware to limit the processor and GPU speeds, but that’s only possible on some phones that have code available and a way to root it without some hardware switch killing the phone permanently.
Fun fact, this is also why Macbooks, at least some models, throttle the CPU if the battery is missing. My old Macbook went from 2.4 GHz to 800 MHz without the battery.
I used to keep a charged spare on me. And this was back when a phones battery life was like 3-7 days.
Stop making phones thinner God dammit. I don’t want a thinner phone. I want longer battery life and a removable battery so I can fucking double the shitty longer battery life I get.
An add-on to the wishlist, as it were. I’m just an old non-tech cis woman but I firmly believe generous pockets could and should be designed/engineered/built into every twirly skirt, every thigh-high (but down near the ankle bc gravity) every booty pant and even red-carpet gala gowns. At least someone finally realized workout leggings can have a pocket down on the leg if it’s so god-damned important not to interrupt the “line” elsewhere.
And everyone should feel free to wear whatever styles they feel suit them, with neither social stigma nor pocket-neglectful construction holding them back.
Hell yeah sister! I’m 100% for this. I’m a cis guy but the clear disparity of pants pockets between gendered clothing (and clothing being gendered at all) has always irked me. Everyone should have equal access to pockets!! (Silly but serious)
There’s at least one Chinese brand that has smartphone with hot-swappable battery: rugone.net/products/xever-8
Removable battery. Swap within 2 minutes for zero interruption. After 2 minutes, the device enters a 60-second safety lock-out to protect your data.
Unfortunately, software from these brands tends to be shit. I feel like they just outsource it to the cheapest company. Especially following this recent thing:
As of March 4, Sophos X-Intercept telemetry listed over 500 unique compromised Android devices across nearly 50 models. The devices were mostly low-cost models produced by the following manufacturers: Allview, BLU, Dcode, DOOGEE, Gigaset, Gionee, Lava, and Ulefone. The list did not include Alldocube devices, despite Kaspersky reportedly observing Keenadu affect that manufacturer as well.
Didn’t EU pass a regulation regarding that. If I recall correctly all portable devices sold in the EU after February will will need to have a user replaceable battery.
They already did I believe. They enhanced their battery glue so it should be easier to remove; reduced the amount of different screwdriver types required to access the battery to one or two; and put a small repair tool set up for sale, for the low price of $700. Thats already impressive for Apple standards
About the not booting issue: What if you soldered a fitting power supply directly to the phones battery pins? Is this a horrible idea? I don’t know. Or 3d-print a power supply to dummy battery adapter…
There is often a check for battery that is effectively a check of resistance between sense and ground. Looks like that battery is labelled, you might be able to bodge a resistor between sense and ground on the phone and get it to boot without the battery?
Here I was thinking you should add a capacitor so there is some juice if the phone draws more than the USB can supply. Maybe even a super cap so you get a more robust drain discharge cycles.
Usually phones have 3 pins on the back for the battery, one of them - usually the one at the center - reads the battery resistance, so if you add a resistor between that pin and another pin, it will fool the phone to belive it has a bettery
Still have my LG Optimus on Android 2.x somewhere. With 512MB RAM I dunno what to do with it outside of a clock display, but I have it (and a spare battery).
And it would still run when you had it plugged in. I could remove the battery from my old Galaxy S2, plug it in and it would work. And if I remember correctly, the same thing went for most of the phones I had before that.
Anything made to be run from battery can work fine without one. Worst case scenario requires you to spoof some I²C communication to properly emulate a battery, but most devices and batteries are far dumber than that. DC is DC, and sometimes you just need to graft something on top for the other pins.
Source: My old laptops charging circuit failed, so I soldered the charger onto the battery pins instead. Then I replaced the actual battery with an Adafruit Itsybitsy 32u4 (because that what I happened to have available) that emulated the battery status of “Charging, nothing to see here, move along” and sent it via I²C
The charging cirtuit that also tries to guess the battery percentage can be the problem. The ‘guessed percentage’ will depending on the chip and programming go down even if you solder in a dc power supply. When it hits the 0% it will shutdown.
put one lead from the battery on a transistor so you can disconnect it with a little ESP or something when you go to power cycle it. Or even just hold down a button to connect it while you plug the phone back in.
nice phone! all of my phones i tested (with replacable battery) refuse to work without battery attached and almost instantly turns off if i ever detach it while running, even with power connected.
When the battery in my wall mounted android tablet swelled i had to add a 10k resistor to the sense line, inject the 5V directly into the battery port and add a few capacitors to get it to work. But at least it won’t cause a fire now.
People here, including you, have been very respectful and thoughtful, and I am all for feedback.
I don’t have the knowledge of the whole universe, do I? So please, by all means, I want to hear your critiques, it makes the project better and I learn along the way!
AFAIK it depends on the device. I believe it’s simpler to have a battery management system which keeps the battery charged when power is attached, and then a second separate system which powers the phone from the battery. That does lead to more wear on the battery though, so the better solution is to have a power management system which monitors the battery and keeps it within a set charge range, and additionally can supply the voltage needed to run the phone. Only when power is not connected does the battery power the phone.
From a quick google though, it seems that’s only part of the picture. High-end modern phones will often require a battery present, as they use it to smooth out the power coming from the adapter, even though most of the power for the phone when the charger is attached comes from a direct power path.
You are not wrong, just for Android. Sometimes. I don’t know why it’s working fine for OP.
The battery controller will reboot it after a second or so if battery voltage is too low, in this case zero. But only if the BMS is actually plugged in, if it’s not it doesn’t care (at least for me) and then it’s Android’s problem. Unless you are booting something non-Android, then it just works and shows 1%. Unless the load is too big for your charger to handle, lul.
Qualcomm SoCs specifically need to run without a battery for EDL/firehose at the factory. And for the devkits. Mediatek needs it for it’s own flashing thingamagig.
Fun fact, plugging in a charger to a dead phone/tablet/whatever doesn’t start charging right away, it powers the CPU from the plug for it to then boot enough to turn on the charger. Unless it’s wired shitily, then it just sits there dead.
Lol, indeed. The music is stored on the Motorola, and it’s being served by the Motorola.
And thanks for the compliment about my music! The mix is shit, but on the other hand, it was made by my own two hands — no AI involved.
It sounds like a good idea until you remember that USB provides 5V and the battery contacts are designed for a Li-ion battery and its management circuitry.
Wiring USB directly to the battery contacts would basically be like noticing your car runs on petrol and pouring it directly into the engine instead of the fuel tank. The general concept of “engine needs fuel” is technically correct. The implementation leaves something to be desired.
The USB port and the phone’s power-management circuitry exist for a reason, and bypassing them could damage the phone or make it behave in exciting new ways.
A properly regulated dummy battery, however, might actually work. Unfortunately, that means I now have another terrible idea to investigate.
This is so cool you’ve actually inspired me to try out the same thing. Ive just finished setting up port forwarding and got the nginx page, but this has been fun as my first time hosting a website