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:
- Insert battery
- Boot Pettyl
- Connect USB power
- Remove battery
- Pretend this is enterprise infrastructure
The battery is no longer a battery.
It is the starter motor.
I see no problems with this architecture.
Anyway, Part 3 is going great.
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.
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.
I did not need to fake battery presence, just needed the battery as a starter, once the phone is booted just removed the battery.
Although the real test is yet to come, I have to leave it like this for a day or two, to see if it powers off when CPU spikes…

Awww… I remember back when batteries were removable. Good times.
They still are: Fairphone
deleted by creator
Lol thank you so much, and I absolutely love what you said: “MOTO ÜBER ALLES”
I want to use it on the website instead of the boring copyright text lol, if it’s cool with you, I’ll even credit you!
deleted by creator
And we’re live!

deleted by creator
Awesome! Keep us updated!
Aye aye, captain🫡
Why not connecting the battery with a cable and put a switch in it?
I have a simillar setup but i kept the battery it acts like a ups
in my experience phone batteries plugged 24/7 will increase in size
Sweet. Free capacity increase
also: free temperature increase :)
It not plugged in 24/7. It runs 1.5 days without charging so no issue.
I should test this with my old s8
Had to toss the spicy pillow and had no clue what to do with it since
I’ve run laptops without a battery, constantly plugged in. I assume this is not a fire hazard.
That’s perfectly fine. The only issue is that it may limit performance on some laptops.
No more than any other electrical device.
Not sure why you’re being downvoted, but you’re absolutely correct
Something weird is going on with votes. Idk if it’s just me or a federation problem.
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.
Glorious.
How do I sign up for the pateron?
Perhaps replace its aging battery with a new one. Then you have a built in UPS for ideal disaster recovery
Nah, an actual UPS with 7kg batteries is way cooler.
But I really appreciate the feedback!
Perhaps then some solar power as well. I think those ecoflow battery + solar can act as UPS too. Could power that server indefinitely 😂
Now we’re speaking the same language!
Can you get a second identical phone. Or a third? I’m thinking perhaps load balancing and failover
Maybe not an identical one, but I did find an interesting Note 9 for around $40…
I guess this is foreshadowing…
Definitely take the battery out of that one
Yeah, for 40 bucks I get a phone with good specs and a free pillow!
Inefficient tungsten gravity batteries are so cool tho
Well… I was obviously wrong. Sorry.
Don’t know if my knowledge was just outdated or plain wrong from the start, but good on you for still trying and respect for pulling that off.
You are absolutely fine!
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.
DO NOT skip step 5. It is VERY IMPORTANT.
Awesome! I will try it too!
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.











