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 virtual keyboard aular 4 299 04-10-2024, 03:45 PM
Last Post: aular
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 199 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  PinePhone - boot from microSD laserpyramid 5 470 03-06-2024, 06:37 PM
Last Post: aular
  Are you using the Pinephone as your daily driver? jro 157 107,979 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 1,719 02-14-2024, 04:51 PM
Last Post: astrojuanlu
  pinephone is not bootble for the box. ijij 1 574 01-19-2024, 01:29 PM
Last Post: fxc
  Multiple issues with the Pinephone MTXP 12 2,257 12-28-2023, 07:55 AM
Last Post: MTXP
  pinephone repair shop shengchieh 0 475 12-26-2023, 02:42 PM
Last Post: shengchieh
  sudo nano file saving pinephone beta edition CharlesGnarley 4 1,636 12-22-2023, 03:44 PM
Last Post: Kevin Kofler
  control power management aular 0 485 12-16-2023, 12:16 PM
Last Post: aular

Forum Jump:


Users browsing this thread: 1 Guest(s)