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
  Want to buy second hand PinePhone 3G version rudi.timmermans 1 1,273 07-31-2025, 01:14 AM
Last Post: MaryOtero
  Pinephone Pro not in store? bubulux20c 0 103 07-29-2025, 09:31 PM
Last Post: bubulux20c
  PinePhone Pro EU no warranty P. Siera 0 156 07-21-2025, 12:08 AM
Last Post: P. Siera
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 14 11,097 07-18-2025, 04:24 PM
Last Post: dchang0
  Pinephone visibly losing power while plugged in Hiraghm 2 875 05-23-2025, 12:30 PM
Last Post: Kevin Kofler
  Fix Fake 0% Battery(charged with USB power) Shutdown biketool 0 653 04-17-2025, 04:11 AM
Last Post: biketool
  cpupower-gui profiles and battery life biketool 5 2,379 03-28-2025, 05:38 AM
Last Post: biketool
  Pinephone Pro Neural Processing Unit biketool 0 794 03-26-2025, 11:01 AM
Last Post: biketool
  contact sales pinephone janjansen1312 2 1,214 03-17-2025, 07:29 PM
Last Post: tllim
  PinePhone Pro P. Siera 4 2,632 03-14-2025, 07:00 PM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 1 Guest(s)