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.

  • 0485@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago

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

    • ryannathans@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

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

    • tradicije@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month 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.

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      1 month ago

      It’s something about how the charging circuitry is constructed. I’ve asked a handful of electrical engineers about it but they’ve never given me a good answer. My guess is that it’s easier/cheaper to design and build a circuit that only powers the phone off the battery, and only uses DC to charge the battery.

  • SirIglooi@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month 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

    • undefinedTruth@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      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.

        • thenoirwolfess@fedinsfw.app
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          They already did I believe. They enhanced their battery glue so it should be easier to remove; reduced the amount of different screwdriver types required to access the battery to one or two; and put a small repair tool set up for sale, for the low price of $700. Thats already impressive for Apple standards

  • jaybone@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

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