CPU Configuration and Status Scripts for PBP/Linux
#1
https://github.com/syonyk/pinebookpro

I've created two halfway helpful utility scripts that are useful enough to share generally. They should work with any Linux, though I've only tested them on Ubuntu 20.04/mainline kernel 5.7.

The first is cpu-set.sh - which allows you to, as root, quickly toggle between all CPUs, big CPUs, little CPUs, see the status of the CPU, and set the governor across all the cores (the cpufreq-utils don't seem to get all the cores properly). Really, you shouldn't have to do much more than powersave, performance, or schedutil. I've not seen much power savings by turning cores off, but if you want to do hardware accelerated KVM work, you'll need to disable the little cores - they don't seem to support the hardware virtualization properly.

The second is pbp-status.sh - which shows the CPU status, temperature, and some basic battery stats (voltage, current, watts). Most of the battery stats will be zero while charging, as the only one you get out is the voltage. This doesn't need root.

Code:
CPU0: 1 Freq: 1200 MHz    (schedutil)
CPU1: 1 Freq: 1200 MHz    (schedutil)
CPU2: 1 Freq: 1008 MHz    (schedutil)
CPU3: 1 Freq: 1200 MHz    (schedutil)
CPU4: 1 Freq: 600 MHz    (schedutil)
CPU5: 1 Freq: 600 MHz    (schedutil)

Temp 0: 35
Temp 1: 35

Voltage: 4077 mV
Current: 823 mA
Power:   3355 mW

Enjoy! Let me know if there are other things you'd like to see.
#2
If using KVM, can't you pin the VMs to specific cores? If so, you can still keep the small cores enabled.

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
#3
Huh. That's a good question, I'll have to try that!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Arch Linux ARM root filesystem SKiljan 20 2,068 09-12-2021, 11:16 AM
Last Post: flyingscorpio
Sad 1080p60 video on PBP Linux chewie 2 479 08-03-2021, 09:43 AM
Last Post: chewie
  A true mainline Linux Kernel for the Pinebook Pro tsys 154 104,172 06-20-2021, 09:26 AM
Last Post: linuxad
  Kali Linux for Pinebook Pro Luke 88 65,349 05-24-2021, 02:58 PM
Last Post: Yan
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 14 6,875 05-14-2021, 01:18 PM
Last Post: djhnsn
  Kali Linux password fail Wawe 5 1,316 03-23-2021, 11:09 AM
Last Post: Wawe
  FLOSS pinebook pro linux set-up misha64 3 1,991 01-14-2021, 04:05 PM
Last Post: kuleszdl
  KISS Linux for Pinebook Pro jedavies-dev 4 4,807 12-06-2020, 02:38 PM
Last Post: jedavies-dev
  Status stonepound 0 692 11-18-2020, 01:35 PM
Last Post: stonepound
  webcam framerate bottleneck on linux? gleachkr 0 894 10-04-2020, 12:55 PM
Last Post: gleachkr

Forum Jump:


Users browsing this thread: 1 Guest(s)