This post is an update of the second part of my Moto server series: https://lemmy.zip/post/72142441
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.
deleted by creator
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.deleted by creator
Since when does a phone need a battery to run? It needs power, doesn’t matter where the power comes from.
Since their burst power consumption started using more current than a capacitor in the charging circuitry could provide
Yeah, what he said. I was just about to say the exact same thing…
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.
*glances at compressor capacitor
Yeah, exactly…large. Bigger than the phone, definitely not going to fit inside the phone.
Now plug the phone into a UPS so if the power goes out you’re good for awhile.
This is obviously ridiculous.
So I’ll do it.
deleted by creator
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.
Regardless, good on you for making this all work!
Hahaha, thank you for defending me! 😄
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! :-)
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…

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
Damn, I wish they still made phones with a removable battery
deleted by creator
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.
And a big enough pocket to hold it securely, no matter what gender clothing you wear!
That’s kinda hard when women’s pants often have no pockets, fake pockets, or pockets so small they’re functionally useless.
That’s why it’s a response to “I want…”!
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.









