06-25-2020, 10:28 PM
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.
Enjoy! Let me know if there are other things you'd like to see.
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.