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
  Attempting to install Void Linux, boots into a black screen 9a3eedi 1 1,192 09-28-2024, 09:23 AM
Last Post: throwawayforvoid
  Slackware Linux working on PBP vxzero 0 604 06-05-2024, 04:30 PM
Last Post: vxzero
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 2,509 08-08-2023, 04:58 AM
Last Post: moobythegoldensock
  Kali Linux for Pinebook Pro - stuck on the login screen owaspfap 0 995 07-13-2023, 05:21 PM
Last Post: owaspfap
  Kali Linux for Pinebook Pro Luke 100 183,072 05-03-2023, 06:10 AM
Last Post: dachalife
  DiY - Installing Void Linux ARM On The Pinebook Pro vincele 1 1,613 11-28-2022, 05:03 PM
Last Post: tllim
  Arch Linux ARM root filesystem SKiljan 24 25,115 09-24-2022, 03:11 AM
Last Post: alexandre
Information Install Void Linux with near-full-disk encryption dumetrulo 3 3,916 09-05-2022, 12:00 PM
Last Post: petersen77
  Help with Kali Linux wifi not working but works with Manjaro PineSupporter 2 2,969 08-25-2022, 02:15 PM
Last Post: Niko
  Problems installing/ booting a different Linux on PinebookPro v-man 3 3,725 03-22-2022, 06:37 PM
Last Post: pentamassiv

Forum Jump:


Users browsing this thread: 4 Guest(s)