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
  How can I record video on a Pinephone? kk22 22 13,536 10-08-2025, 01:29 PM
Last Post: Kevin Kofler
  Pinephone visibly losing power while plugged in Hiraghm 5 3,829 10-08-2025, 10:51 AM
Last Post: tophneal
  Does PinePhone support long-term battery health optimization? roseblack 5 772 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 3,559 09-24-2025, 09:25 PM
Last Post: elwoodb25
  Why projects like PinePhone matter – feedback and encouragement Gary2003 13 17,040 09-16-2025, 01:13 PM
Last Post: Gary2003
  Can use PlayStation on Pinephone? willharper 7 8,506 09-13-2025, 12:30 AM
Last Post: ChaiLetters
  Pinephone Pro Neural Processing Unit biketool 1 5,075 09-01-2025, 02:05 AM
Last Post: biketool
  Want to buy second hand PinePhone 3G version rudi.timmermans 2 4,605 08-31-2025, 07:18 AM
Last Post: Fish
  Pinephone Pro not in store? bubulux20c 1 2,941 08-08-2025, 02:12 AM
Last Post: P. Siera
  PinePhone Pro EU no warranty P. Siera 0 2,433 07-21-2025, 12:08 AM
Last Post: P. Siera

Forum Jump:


Users browsing this thread: 1 Guest(s)