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


Messages In This Thread
Guide to power off the Pinephone on low battery - by Ulfnic - 02-04-2022, 05:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Power up a 2nd core? WhiteHexagon 0 35 7 hours ago
Last Post: WhiteHexagon
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 279 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 3,091 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 531 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 481 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone visibly losing power while plugged in Hiraghm 7 4,799 10-21-2025, 10:38 PM
Last Post: Anthona
  Pinephone boot. Richy_T 8 4,694 10-21-2025, 12:12 PM
Last Post: Richy_T
  How can I record video on a Pinephone? kk22 22 15,821 10-08-2025, 01:29 PM
Last Post: Kevin Kofler
  Does PinePhone support long-term battery health optimization? roseblack 5 1,532 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 3,939 09-24-2025, 09:25 PM
Last Post: elwoodb25

Forum Jump:


Users browsing this thread: 1 Guest(s)