Limiting Battery Risk On Repurposed Smartphones With PostmarketOS

PostmarketOS is a Linux distribution specifically designed for those who wish to repurpose old smartphones as general-use computers, to a degree. This can be a great way to reuse old hardware. However, for [Bry50], it was somewhat discomforting leaving the phone’s aging lithium battery perpetually on charge. A bit of code was thus whipped up to provide a greater measure of safety.

The concept is simple enough—lithium batteries are at lower risk of surprise combustion events if they’re held at a lower state of charge. To this end, [Bry50] modified the device tree in PostmarketOS to change the maximum charge level. Apparently, maximum charge was set at a lofty 4.4V (100%), but this was reconfigured to a lower level of 3.8V, corresponding to a roughly 40-50% state of charge. The idea is that this is a much healthier way to maintain a battery hooked up to power for long periods of time. There’s one small hitch—the system will get confused if the battery voltage is higher than the 3.8 V setpoint when switching over. It’s thus important to let the device discharge to a lower level if you choose to make this change.

It’s a neat mod that both increases safety, but keeps the battery on hand to let the system ride through minor power outages. If you’re new to the world of repurposing old smartphones, fear not. [Bryan] also has a tutorial on getting started with PostmarketOS for the unfamiliar. If you’re working on your own projects in this space, we’d love to hear about them—so get on over to the tipsline!

13 thoughts on “Limiting Battery Risk On Repurposed Smartphones With PostmarketOS

  1. Can PostmarketOS run an old phone/tablet with the battery removed? Or must this be supported by the hardware, or is a problem because of potential higher power delivery from a battery?

    1. Usually the challenge is getting it past the bootloader, which does whatever it does with the battery before it will load your OS. i have a nook (eink tablet) where i used a circuit i found online (two resistors) to let a wall wart fudge the “is there a battery test” and it boots up fine but after a few days the OS sporadically decides to reject my hack and turns itself off. I imagine postmarketos wouldn’t have that particular problem, for example.

      1. When I worked for a Swedish cellphone company, we used a battery shell (back when batteries were designed to be swapped) with an electrolytic capacitor and wires to a lab supply for bench testing. The Swedes called it a “Norwegian Battery”, since it was normally useless to have a battery that had to be plugged in and Norway was the target of jokes that were often variants of the US Polish jokes of the ’70s.
        The capacitor was essential to handle surges. There was often a thermistor or fixed resistor between ground and a third pin that was necessary to see it as a valid battery.

    2. Some phone hardware physically won’t stay on if the battery isn’t there, for whatever reason. Might have something to do with the battery smoothing power from the power input circuitry.

  2. I’ve been meaning to test using a phone as a computer monitor that looks to my eyes to be about as large as an actual monitor by positioning it on a holder 30cm/12” from my face. At that distance it should appear to be the same size as a small laptop screen. Then Bluetooth keyboard and mouse to control. Has anyone tried this?

    1. Look at FPV box googles, it’s the same idea, but they are putting also a fresnel lens in between the screen and your eyes to increase the focal distance (otherwise it will be a problem as mentionned in the post before me).
      Never tried it myself but it was also an idea that I had and that I wanted to test out one day!

    2. About a decade ago when VR hype was taking off, Google pushed “Google Cardboard” which was exactly this. The fact that you haven’t heard about it tells you everything you need to know about its viability.

Leave a Reply to Christopher de VidalCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.