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
  Pinephone Pro Neural Processing Unit biketool 1 1,120 5 hours ago
Last Post: biketool
  Want to buy second hand PinePhone 3G version rudi.timmermans 2 1,745 Yesterday, 07:18 AM
Last Post: Fish
  Pinephone Pro not in store? bubulux20c 1 655 08-08-2025, 02:12 AM
Last Post: P. Siera
  PinePhone Pro EU no warranty P. Siera 0 483 07-21-2025, 12:08 AM
Last Post: P. Siera
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 14 12,208 07-18-2025, 04:24 PM
Last Post: dchang0
  Pinephone visibly losing power while plugged in Hiraghm 2 1,277 05-23-2025, 12:30 PM
Last Post: Kevin Kofler
  Fix Fake 0% Battery(charged with USB power) Shutdown biketool 0 886 04-17-2025, 04:11 AM
Last Post: biketool
  cpupower-gui profiles and battery life biketool 5 2,766 03-28-2025, 05:38 AM
Last Post: biketool
  contact sales pinephone janjansen1312 2 1,614 03-17-2025, 07:29 PM
Last Post: tllim
  PinePhone Pro P. Siera 4 3,121 03-14-2025, 07:00 PM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 1 Guest(s)