0

I'm looking for a general solution for this problem.

Because I need to do the coding outside. Sometimes the outside env doesn't have power supply.

1 Answer 1

0

Base Theory

  1. Decrease cpu frequency

  2. Turn off GPU

  3. Turn off other devices when not used

For general Linux system

sudo apt install tlp
sudo systemctl enable tlp
sudo apt install powertop
sudo systemctl enable powertop
sudo apt install cpupower-gui
sudo cpupower-gui
# use cpupower-gui to change the cpu frequency to minimum value

For gnome (including ubuntu)

sudo apt install tlp
sudo systemctl enable tlp
sudo apt install powertop
sudo systemctl enable powertop

Install cpu-power-manager and change the cpu-frequency to a minimum value:

https://extensions.gnome.org/extension/945/cpu-power-manager

For PopOS

sudo apt install powertop
sudo systemctl enable powertop

Install cpu-power-manager and change the cpu-frequency to a minimum value:

https://extensions.gnome.org/extension/945/cpu-power-manager

From top-right-corner, from power-section, set graphics-mode to compute-graphics and power-strategy to battery-life

Refrences

1
  • AFAIK it's redundant to enable both powertop and tlp.
    – Devon
    Commented Apr 24, 2023 at 6:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .