this post was submitted on 26 Sep 2026
691 points (99.0% liked)

Selfhosted

62626 readers
598 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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.

top 50 comments
sorted by: hot top controversial new old
[–] SirIglooi@sh.itjust.works 1 points 1 day ago

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

[–] Uri@infosec.pub 6 points 6 days ago (1 children)

I have a simillar setup but i kept the battery it acts like a ups

[–] rapchee@lemmy.world 5 points 5 days ago (2 children)

in my experience phone batteries plugged 24/7 will increase in size

[–] SkaveRat@discuss.tchncs.de 5 points 5 days ago (1 children)

Sweet. Free capacity increase

[–] rapchee@lemmy.world 3 points 5 days ago

also: free temperature increase :)

[–] Uri@infosec.pub 2 points 5 days ago

It not plugged in 24/7. It runs 1.5 days without charging so no issue.

[–] moopet@sh.itjust.works 2 points 5 days ago (1 children)

Can you wire the USB power to the battery contacts...?

[–] tradicije@lemmy.zip 2 points 5 days ago

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.

[–] SuspiciousCarrot78@aussie.zone 2 points 5 days ago (1 children)

Yeah yeah, the project is cool.. but can we talk about those absolutely banging tunes?

Is the moto serving them? Please say yes.

[–] tradicije@lemmy.zip 2 points 5 days ago (1 children)

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.

[–] SuspiciousCarrot78@aussie.zone 2 points 5 days ago (1 children)

Well...if you're looking for an idea for the second moto phone... can I suggest "Google in a box"

How many "Google-like" services could your phone server serve at the same time?

  • Google Photos <-> PiGallery2
  • Google Keep <-> Memos
  • Google Drive <-> Syncthing
  • Google Calendar <-> Radicale
  • Google Contacts <-> Radicale
  • Google Tasks <-> Radicale
  • YouTube Music <-> Navidrome
  • Google Password Manager <-> Vaultwarden
  • Google Reader <-> FreshRSS
  • Chrome bookmarks <-> linkding
  • Google Analytics <-> GoatCounter

And, if it still has RAM left:

  • Google Docs <-> Etherpad
  • Google Search <-> 4get

How far can 1 GB actually go?

[–] tradicije@lemmy.zip 2 points 5 days ago

Great idea! Just can't promise I get everything setup any time soon lol. But I will try for sure.

[–] amateurcrastinator@lemmy.world 3 points 6 days ago (1 children)

I wonder if my pixel 7 pro that dies suddenly can do the same. I suspect the battery just packed up

[–] bufalo1973@piefed.social 3 points 6 days ago

Why not connecting the battery with a cable and put a switch in it?

[–] 0485919158191@lemmy.world 63 points 1 week ago (3 children)

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

[–] tradicije@lemmy.zip 96 points 1 week ago

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.

[–] ryannathans@aussie.zone 58 points 1 week ago (3 children)

Since their burst power consumption started using more current than a capacitor in the charging circuitry could provide

[–] SlurpingPus@lemmy.world 3 points 6 days ago

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.

[–] 87Six@lemmy.zip 1 points 5 days ago

So the way I see it, the root cause is dogshit design that relies on the battery

[–] tradicije@lemmy.zip 31 points 1 week ago (4 children)

Yeah, what he said. I was just about to say the exact same thing…

load more comments (4 replies)
load more comments (1 replies)
[–] vext01@feddit.uk 51 points 1 week ago (3 children)

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

load more comments (3 replies)
[–] oaoaoe@thebrainbin.org 35 points 1 week ago (10 children)

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

[–] thenoirwolfess@fedinsfw.app 3 points 6 days ago (1 children)

All batteries are removable once

[–] tradicije@lemmy.zip 1 points 6 days ago

Just like all mushrooms are edible once...

They do. They're generally just.. not very good or are very expensive.

Samsung had a good one in the Xcover. I'd get one but... well... Samsung.

[–] foggy@lemmy.world 33 points 1 week ago (11 children)

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.

load more comments (11 replies)
[–] JustEnoughDucks@feddit.nl 18 points 1 week ago (1 children)

I just got a fairphone 6. Removable battery!

[–] puz@piefed.social 4 points 6 days ago

I'm still using my fairphone 5 :)

load more comments (6 replies)
[–] neidu4@piefed.social 25 points 1 week ago* (last edited 1 week ago) (1 children)

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

load more comments (1 replies)
[–] dual_sport_dork@lemmy.world 23 points 1 week ago (1 children)

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!

load more comments (1 replies)
[–] gagootron@feddit.org 21 points 1 week ago

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.

[–] NotMyOldRedditName@lemmy.world 20 points 1 week ago* (last edited 1 week ago) (1 children)

Now plug the phone into a UPS so if the power goes out you're good for awhile.

[–] tradicije@lemmy.zip 54 points 1 week ago (4 children)

This is obviously ridiculous.

So I’ll do it.

[–] SuspiciousCarrot78@aussie.zone 4 points 6 days ago* (last edited 6 days ago)

We are glad to inform you that your application to the USS Enterprise Engineering Department has been accepted!

Please do not turn Admiral Archer's beagle inside-out on day one and refrain from creating perpetual energy machines, sapient missiles or sexbots until you have undegone the requisite HR training and completed your schedule of immunisations.

load more comments (3 replies)
load more comments
view more: next ›