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
  Does PinePhone support long-term battery health optimization? roseblack 3 394 Yesterday, 09:30 PM
Last Post: evilbunny
  iso pinephone for sale (USA) elwoodb25 0 3,473 09-24-2025, 09:25 PM
Last Post: elwoodb25
  Why projects like PinePhone matter – feedback and encouragement Gary2003 13 16,689 09-16-2025, 01:13 PM
Last Post: Gary2003
  Can use PlayStation on Pinephone? willharper 7 8,310 09-13-2025, 12:30 AM
Last Post: ChaiLetters
  Pinephone Pro Neural Processing Unit biketool 1 5,000 09-01-2025, 02:05 AM
Last Post: biketool
  Want to buy second hand PinePhone 3G version rudi.timmermans 2 4,518 08-31-2025, 07:18 AM
Last Post: Fish
  Pinephone Pro not in store? bubulux20c 1 2,826 08-08-2025, 02:12 AM
Last Post: P. Siera
  PinePhone Pro EU no warranty P. Siera 0 2,379 07-21-2025, 12:08 AM
Last Post: P. Siera
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 14 17,281 07-18-2025, 04:24 PM
Last Post: dchang0
  Pinephone visibly losing power while plugged in Hiraghm 2 3,605 05-23-2025, 12:30 PM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 1 Guest(s)