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
  Most stable Pinephone OS karcdaeh 10 195 Yesterday, 11:10 AM
Last Post: Chief
  PureTalk work with Pinephone? car46999 2 167 11-28-2022, 11:43 PM
Last Post: car46999
  SELLING: Pinephone 3GB RAM 32GB ROM gerstavros 12 2,970 10-24-2022, 02:51 PM
Last Post: gerstavros
  Are you using the Pinephone as your daily driver? jro 115 55,807 10-20-2022, 10:19 PM
Last Post: Chief
  Pinephone for sale in Europe tiho 7 2,933 10-19-2022, 05:35 AM
Last Post: peatord
  No sms receival on Arch Phosh Pinephone pineuser0 2 323 10-09-2022, 08:55 AM
Last Post: treebeard
  Instructions to get pinephone working on USA carrier omarcomputing 1 345 10-08-2022, 04:45 PM
Last Post: treebeard
Shocked Slow Teathering With PinePhone kujo_marble 10 959 10-08-2022, 04:38 PM
Last Post: treebeard
  pinephone-support package not upgradable on Mobian fhireman 4 660 09-24-2022, 08:01 AM
Last Post: dante404
  Tow-boot on Pinephone beta edition saddamus 10 1,203 09-11-2022, 02:43 PM
Last Post: saddamus

Forum Jump:


Users browsing this thread: 1 Guest(s)