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
Star Selling my Pinephone Pro Explorer Edition zheyon 0 65 01-31-2025, 02:27 PM
Last Post: zheyon
  PinePhone earpiece too quiet Waffelo 3 401 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 19,391 12-27-2024, 03:02 AM
Last Post: biketool
  eSIM on PinePhone just_a_q 9 5,623 12-25-2024, 04:16 AM
Last Post: zetabeta
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 7,494 12-05-2024, 04:38 PM
Last Post: tllim
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 273 12-04-2024, 10:53 PM
Last Post: tracyanne
  Want to buy second hand PinePhone 3G version rudi.timmermans 0 442 11-01-2024, 09:58 AM
Last Post: rudi.timmermans
  Can use PlayStation on Pinephone? willharper 6 6,244 10-30-2024, 08:07 AM
Last Post: biketool
  cpupower-gui profiles and battery life biketool 3 791 10-17-2024, 09:59 AM
Last Post: biketool
  Ordered PinePhone till today have no info or confirmation about order hennadiyt 1 631 10-05-2024, 02:20 PM
Last Post: KC9UDX

Forum Jump:


Users browsing this thread: 3 Guest(s)