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.

    • diaphragmwp@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 hours ago

      Regular-ish Linux won’t care, given that the BMS is also removed and isn’t dangling from the battery connector.

      Android will fuck you over and bootloop. Android recovery, too.

      Source: I tried.

  • Uri@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 hours ago

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

  • fox2263@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    Perhaps replace its aging battery with a new one. Then you have a built in UPS for ideal disaster recovery

  • Asetru@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    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.

    • MouldyCat@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      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.

    • tradicije@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      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!

      • SuspiciousCarrot78@aussie.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day 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.

  • Gagootron@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days 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.