Guide to power off the Pinephone on low battery
#1
I wrote a low-power-off BASH script for the Pinephone and Pinephone Pro to help prevent over-discharge by forcing a power-off below a certain capacity.

It loops through all power sources the kernel is aware of and enforces a minimum capacity rule that powers off the system if a battery is below a certain threshold (default: 5%) and not charging.

It just needs something to run it every minute. I've included a Systemd setup guide but OpenRC (PostmarketOS), chron, ect will work just as well.

Guide here: https://discourse.destinationlinux.netwo...ttery/4789

Enjoy Smile
  Reply
#2
OpenRC guide now included.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fix Fake 0% Battery(charged with USB power) Shutdown biketool 0 41 Yesterday, 04:11 AM
Last Post: biketool
  cpupower-gui profiles and battery life biketool 5 1,416 03-28-2025, 05:38 AM
Last Post: biketool
  Pinephone Pro Neural Processing Unit biketool 0 224 03-26-2025, 11:01 AM
Last Post: biketool
  contact sales pinephone janjansen1312 2 462 03-17-2025, 07:29 PM
Last Post: tllim
  PinePhone Pro P. Siera 4 1,763 03-14-2025, 07:00 PM
Last Post: Kevin Kofler
  [Article] PR Test Bot for PinePhone (Avaota-A1 SBC / Apache NuttX RTOS) lupyuen 0 263 03-08-2025, 02:43 PM
Last Post: lupyuen
Star Selling my Pinephone Pro Explorer Edition zheyon 0 584 01-31-2025, 02:27 PM
Last Post: zheyon
  PinePhone earpiece too quiet Waffelo 3 856 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 20,701 12-27-2024, 03:02 AM
Last Post: biketool
  eSIM on PinePhone just_a_q 9 6,630 12-25-2024, 04:16 AM
Last Post: zetabeta

Forum Jump:


Users browsing this thread: 1 Guest(s)