I have an issue with a Chuwi Hi10 Pro. It occurs in Linux and Windows. When the screen brightness is too high, or the CPU is at 100%, while plugged in, the battery starts to drain. It is a very slow drain using a USB 3.0 QC charger but, I want to keep the tablet on 24/7 fairly reliably.
I would like to know if there is an easy method, preferably GUI or simple Bash script, to throttle the CPU (power management) and go back to high performance mode.
I want to use it for services such as Kodi; it may not mess up the video playback if it is throttled a little.
Side question, other than battery info, is there a way to know the amperage and watts from an AC adapter?
cpuf - Simple Bash GUI to set CPU Min/Max Frequency
Demonstration
In this demo
cpuf
window is on left andconky
system information is on right side. This is how the demo progresses:800
/3500
800
/800
and CPU usage jumps to 20%3500
/3500
and CPU usage drops to 10%With three monitors
cpuf
can appear 10 feet away, so use parameter 1--geometry
option to put it close toconky
:--geometry
is Window Width x Height + Width Offset + Height Offsetcpuf
Bash scriptThis section requires you to open a terminal with Ctrl+Alt+T.
How to setup
In order to function,
cpuf
bash script requires:It's easiest when you place
cpuf
script into a root-owned directory within your search path. For example:/usr/local/bin
.To create
cpuf
script open the editor withsudo -H gedit /usr/local/bin/cpuf
.Make the script executable with
sudo chmod a+x /usr/local/bin/cpuf
.cpuf
code to copy to your editorThe easiest way I found recently was to install the utility
cpupower-gui
No bash scripting or config files to mess with, just run:
Then launch it as root with:
It has a very simple interface. Make sure you check the box for
All Cpus
and click "Apply" or it won't do that much!