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.

    • tradicije@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 days ago

      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.

  • 0485@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days 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
      0
      ·
      13 days ago

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

        • redjard@reddthat.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          13 days ago

          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.

          • Jul@piefed.blahaj.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            13 days ago

            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.

  • dual_sport_dork 🐧🗡️@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    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!

    • tradicije@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      13 days ago

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

      • Bansh33@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 days ago

        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! :-)

  • viertesauge@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    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.

    • foggy@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      13 days ago

      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.

        • nullroot@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          13 days ago

          That’s kinda hard when women’s pants often have no pockets, fake pockets, or pockets so small they’re functionally useless.

          • Mouselemming@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            13 days ago

            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.