Pinephone power consumption figures?
#1
Hey all, I'm going to setup a file server and seed box running on a 4G modem for use in a campervan I'm buildling. I just wondering if anyone has any idea of how much power the pinephone consumes when plugged in 24/7? I'm considering using the pinephone instaed of an SBC and WWAN module, because it may be cheaper and/or simpler, but given I'll be running everything off of solar, I want to optimise the power consumption.
  Reply
#2
(09-02-2022, 05:06 PM)girl Wrote: Hey all, I'm going to setup a file server and seed box running on a 4G modem for use in a campervan I'm buildling. I just wondering if anyone has any idea of how much power the pinephone consumes when plugged in 24/7? I'm considering using the pinephone instaed of an SBC and WWAN module, because it may be cheaper and/or simpler, but given I'll be running everything off of solar, I want to optimise the power consumption.

Great question, and to answer all I can say is oof!
Currently the PP is pretty hungry especially if you are seeding which will keep the modem running, you could try turning off some of the CPU cores, I have been experimenting with this and it really doesnt slow me down except when web browsing or running heavy apps.  I cant find the thread I lifted this script from right now but this is what I am running as scripts, dont forget to chmod +x them

cpucold.sh shuts down all but thei first(cpu0) CPU core
Code:
#!/bin/bash
echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu2/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu3/online
and cpuhot.sh which returns cores 2-4(1-3 with 0 as the first core)
Code:
#!/bin/bash
echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu2/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu3/online
Ideally we will eventually have a CPU tuning app as well as better use fo the hardware video and audio acceleration to get better general battery life.
  Reply
#3
Interesting idea turning off 3 of the CPU cores to save power. I really only use the phone for making and receiving calls, not videos, internet, etc. I'm going to set cpucold.sh to run at boot and see how it works out.

Addendum: I tried it and boot time increased noticeably. Takes over 2 minutes on single CPU, about 1 minute 40 seconds with all cores firing. (This is on Mobian using full disk encryption.) Might be better to run the script at login instead of at boot time.
  Reply
#4
I set up a task to shut down CPU cores at login by putting an appropriate .desktop file in ~/.config/autostart. This allows the phone to initially boot up with all cores firing. With only one CPU core active though the phone lagged quite a bit with 100% CPU usage and a climbing load average - especially for a few minutes after booting up while tasks are still starting in the background.

So now I'm turning off two cores instead of three, works much better, can hardly tell the difference. Not sure how much power it will save. (I also installed a desktop icon that can quickly go to one core for maximum energy savings if desired. Wrote a quick-and-dirty C program that accepts how many cores to turn off as a parameter.)
  Reply
#5
Found this more noob friendly, and convenient, alternative to using cli: https://github.com/vagnum08/cpupower-gui
  Reply
#6
(09-03-2022, 11:04 AM)biketool Wrote:
(09-02-2022, 05:06 PM)girl Wrote: Hey all, I'm going to setup a file server and seed box running on a 4G modem for use in a campervan I'm buildling. I just wondering if anyone has any idea of how much power the pinephone consumes when plugged in 24/7? I'm considering using the pinephone instaed of an SBC and WWAN module, because it may be cheaper and/or simpler, but given I'll be running everything off of solar, I want to optimise the power consumption.

Great question, and to answer all I can say is oof!
Currently the PP is pretty hungry especially if you are seeding which will keep the modem running, you could try turning off some of the CPU cores, I have been experimenting with this and it really doesnt slow me down except when web browsing or running heavy apps.  I cant find the thread I lifted this script from right now but this is what I am running as scripts, dont forget to chmod +x them

cpucold.sh shuts down all but thei first(cpu0) CPU core     happy wheels
Code:
#!/bin/bash
echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu2/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu3/online
and cpuhot.sh which returns cores 2-4(1-3 with 0 as the first core)
Code:
#!/bin/bash
echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu2/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu3/online
Ideally we will eventually have a CPU tuning app as well as better use fo the hardware video and audio acceleration to get better general battery life.

It's very helpful. Thank you.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Are you using the Pinephone as your daily driver? jro 127 61,871 Yesterday, 01:13 PM
Last Post: Zebulon Walton
  How can I record video on a Pinephone? kk22 8 980 01-22-2023, 06:45 AM
Last Post: linmob
  "PinenotePhone": Swap E-Ink Screen Onto Pinephone? britelite 0 131 01-03-2023, 06:17 PM
Last Post: britelite
  Pinephone not booting, always vibrating alexander12 6 1,989 01-02-2023, 01:34 AM
Last Post: alexander12
Sad PinePhone carrier support bucnham 2 276 12-27-2022, 12:37 AM
Last Post: rocket2nfinity
  PureTalk work with Pinephone? car46999 5 562 12-23-2022, 11:18 PM
Last Post: car46999
  PinePhone Beta Out of Stock? jakfish 3 325 12-20-2022, 10:40 AM
Last Post: zetabeta
  sudo nano file saving pinephone beta edition CharlesGnarley 2 211 12-16-2022, 10:40 AM
Last Post: CharlesGnarley
  watching videos on pinephone Galad 6 1,532 12-13-2022, 02:38 PM
Last Post: Fish
  Most stable Pinephone OS karcdaeh 20 1,651 12-09-2022, 06:09 AM
Last Post: gregb49

Forum Jump:


Users browsing this thread: 1 Guest(s)