RetroFed Forum
Your home away from modern life.
Part 3: They said a phone can’t run without a battery. Unfortunately, Pettyl didn’t get the memo.
Post Reply
AuthorMessage
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
(edited) Quote

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:

  1. Insert battery
  2. Boot Pettyl
  3. Connect USB power
  4. Remove battery
  5. 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.

686   Original
viertesauge feddit.org viertesauge@feddit.org
Joined: 2026-05-10
#2 · Quote Reply

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.

11
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#3 · Quote Reply

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…

30
zzffyfajzkzhnsweqm sh.itjust.works zzffyfajzkzhnsweqm@sh.itjust.works
Joined: 2025-02-07
#4 · Quote Reply

Awesome! Keep us updated!

9
SuspiciousCarrot78 aussie.zone SuspiciousCarrot78@aussie.zone
Joined: 2026-05-14
#5 · (edited) Quote Reply

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]
26
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#6 · Quote Reply

[deleted]

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!

7
dual_sport_dork 🐧🗡️ lemmy.world dual_sport_dork@lemmy.world
Joined: 2023-07-20
#7 · Quote Reply

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!

23
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#8 · Quote Reply

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, goo...

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. 😂

16
0485 lemmy.world 0485919158191@lemmy.world
Joined: 2023-06-10
#9 · Quote Reply

Since when does a phone need a battery to run? It needs power, doesn’t matter where the power comes from.

62
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#10 · Quote Reply

Awesome! Keep us updated!

Aye aye, captain🫡

3
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#11 · Quote Reply

Since when does a phone need a battery to run? It needs power, doesn’t matter where the power comes from.

well ACKSHUALLY 🤓☝️

Unfortunately Pettyl is stupid enough to need the battery to boot, but smart enough to forget about it immediately afterwards.

I don’t make the rules, I just host WordPress on an 8-year-old Motorola.

95
ryannathans aussie.zone ryannathans@aussie.zone
Joined: 2023-09-20
#12 · Quote Reply

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

57
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#13 · Quote Reply

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…

30
SuspiciousCarrot78 aussie.zone SuspiciousCarrot78@aussie.zone
Joined: 2026-05-14
#14 · (edited) Quote Reply

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]
6
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#15 · Quote Reply

[deleted]

And we’re live!

7
surewhynotlem lemmy.world surewhynotlem@lemmy.world
Joined: 2023-06-13
#16 · Quote Reply

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.

8
oaoaoe thebrainbin.org oaoaoe@thebrainbin.org
Joined: 2026-09-26
#17 · Quote Reply

Damn, I wish they still made phones with a removable battery

36
foggy lemmy.world foggy@lemmy.world
Joined: 2023-07-02
#18 · Quote Reply

Damn, I wish they still made phones with a removable 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.

33
ominous ocelot leminal.space probable_possum@leminal.space
Joined: 2025-08-14
#19 · (edited) Quote Reply

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...

5
non_burglar lemmy.world non_burglar@lemmy.world
Joined: 2023-06-16
#20 · Quote Reply

Nice.

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?

16
ThePantser sh.itjust.works ThePantser@sh.itjust.works
Joined: 2025-02-19
#21 · Quote Reply

Nice. 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.

11
tradicije lemmy.zip tradicije@lemmy.zip
Joined: 2026-09-09
#22 · Quote Reply

Update! Apparently removing the battery also removes half the CPU lol.

I’ll keep you posted!

15
Axolotl feddit.it Axolotl_cpp@feddit.it
Joined: 2025-10-10
#23 · (edited) Quote Reply

Update! Apparently removing the battery also removes half the CPU lol. I’ll keep you posted!

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 beattery

Edit: spelling

11
r4venw sh.itjust.works r4venw@sh.itjust.works
Joined: 2024-09-10
#24 · Quote Reply

I'm currently reading this on my nearly 8 year old phone. I guess when I finally get round to replacing it I'll have a new server! Sweet

5
Mouselemming sh.itjust.works Mouselemming@sh.itjust.works
Joined: 2023-07-12
#25 · Quote Reply

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!

10
vext01 feddit.uk vext01@feddit.uk
Joined: 2023-07-05
#26 · Quote Reply

Remember the days when hou could just pop the back off and take the battery out?

52
MrScottyTay sh.itjust.works MrScottyTay@sh.itjust.works
Joined: 2023-06-09
#27 · Quote Reply

And a big enough pocket to hold it securely, no matter what gender clothing you wear!

Here here!

5
neidu4 piefed.social neidu4@piefed.social
Joined: 2026-09-10
#28 · (edited) Quote Reply

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

25
WhoIzDisIz lemmy.today WhoIzDisIz@lemmy.today
Joined: 2026-04-27
#29 · Quote Reply

Here here!

There, there. It's "hear, hear."

16
WhoIzDisIz lemmy.today WhoIzDisIz@lemmy.today
Joined: 2026-04-27
#30 · Quote Reply

Remember the days when hou could just pop the back off and take the battery out?

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).

7
WhoIzDisIz lemmy.today WhoIzDisIz@lemmy.today
Joined: 2026-04-27
#31 · Quote Reply

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 beattery Edit: spelling

Any idea what ohm value would be best?

8
nullroot lemmy.world nullroot@lemmy.world
Joined: 2024-08-12
#32 · Quote Reply

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.

4
ikidd lemmy.dbzer0.com ikidd@lemmy.dbzer0.com
Joined: 2026-04-23
#33 · Quote Reply

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.

4
Axolotl feddit.it Axolotl_cpp@feddit.it
Joined: 2025-10-10
#34 · Quote Reply

Any idea what ohm value would be best?

Nope, i think the ideal one changes with the phone manufacter, you should try to test the battery ohm value and use that one

8
jaybone lemmy.zip jaybone@lemmy.zip
Joined: 2025-02-08
#35 · Quote Reply

I’ve run laptops without a battery, constantly plugged in. I assume this is not a fire hazard.

3
frongt lemmy.zip frongt@lemmy.zip
Joined: 2025-07-31
#36 · Quote Reply

I’ve run laptops without a battery, constantly plugged in. I assume this is not a fire hazard.

No more than any other electrical device.

7
ShortN0te lemmy.ml ShortN0te@lemmy.ml
Joined: 2023-06-09
#37 · Quote Reply

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 ...

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.

Thats the case for some smart phones.

6
hexagonwin lemmy.today hexagonwin@lemmy.today
Joined: 2026-02-07
#38 · Quote Reply

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.

3
undefinedTruth lemmy.zip undefinedTruth@lemmy.zip
Joined: 2025-09-25
#39 · (edited) Quote Reply

Damn, I wish they still made phones with a removable battery

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.

11
morto piefed.social morto@piefed.social
Joined: 2025-07-03
#40 · Quote Reply

Awesome! I will try it too!

2
Gagootron feddit.org gagootron@feddit.org
Joined: 2025-03-12
#41 · Quote Reply

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.

22
Potato Lover 💾 No brain found lemmy.sdf.org user224@lemmy.sdf.org
Joined: 2023-06-17
#42 · Quote Reply

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.

I used to keep a charged spare on me.

There's at least one Chinese brand that has smartphone with hot-swappable battery: https://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.

Source - Sophos
Report from Kaspersky

5
redjard reddthat.com Redjard@reddthat.com
Joined: 2023-08-06
#43 · (edited) Quote Reply

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.

5
ayyy Moderator ayyy@sh.itjust.works
Joined: 2024-06-20
#44 · Quote Reply

DO NOT skip step 5. It is VERY IMPORTANT.

10
TropicalDingdong lemmy.world TropicalDingdong@lemmy.world
Joined: 2023-07-29
#45 · Quote Reply

How do I sign up for the pateron?

3
MrScottyTay sh.itjust.works MrScottyTay@sh.itjust.works
Joined: 2023-06-09
#46 · Quote Reply

There, there. It's "hear, hear."

Where, where?

5
JustEnoughDucks feddit.nl JustEnoughDucks@feddit.nl
Joined: 2023-06-12
#47 · Quote Reply

Damn, I wish they still made phones with a removable battery

I just got a fairphone 6. Removable battery!

18
4grams awful.systems 4grams@awful.systems
Joined: 2023-06-28
#48 · Quote Reply

I just have to say, I really enjoy your writing style. Fun project, great post!

6
affiliate lemmy.world affiliate@lemmy.world
Joined: 2023-07-02
#49 · Quote Reply

Well you better go catch it!

6
ruuster13 lemmy.zip ruuster13@lemmy.zip
Joined: 2025-07-09
#50 · Quote Reply

Remember bezels?

4
cmnybo discuss.tchncs.de cmnybo@discuss.tchncs.de
Joined: 2023-06-11
#51 · Quote Reply

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.

3
Post Reply Page 1 of 3   Goto page 1, 2, 3 Last »
Back to top