• paper_moon@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    18 days ago

    I realized I’ve built up stress over batteries, charging and lifespan that I’ve built up over time since the days of removable batteries going away. Its very refreshing to have a swappable battery back.

    Been messing around with a Oneplus 6T and a fairphone 5, both running postmarketOS. I wrote a charge limiting bash script that runs in cron, checks the battery capacity file and if its greater than 80, it writes 0 to the power_supply/current_max file and it stops charging. If its equal to 79, it trickle charges to maintain battery, and if its less than 79, it charges like normal.

    It works on the Oneplus 6T, but the fairphone 5 seems to have a whole battery manager driver integrated, so my little script doesn’t work. I spent a lot of time trying to figure out how to trigger the udev rules and get it working for the fairphone 5, and then I realized… Why? Its a removable battery that I can buy a replacement for. Why am I bothering to limit battery charging like i’m used to with android phones to preserve battery lifespan and baby them so I don’t have to rip the screen off and possibly break it just to replace an aging battery…

    Like I said, very refreshing to not have to think like this, for a device.