Switch Hybrid Graphics Mode - Nvidia & Intel


My 'new' travel laptop had an issue with battery life and the issue was traced to power consumption of the Nvidia graphics card. Since I'm not gaming or doing graphics intensive work it makes more sense to stick to the 'integrated' Intel graphics to gain runtime. This is how to change the graphics mode in Ubuntu 20.04.

References

How to change graphics modes (GUI)

Using the proprietary NVidia driver (which Ubuntu 20.04 makes available out of the box on the installation ISO), you can adjust the PRIME Profile in use by the system to set the graphics mode:

(This is found in the NVIDIA X Server Settings utility)

Once you change the setting, it takes effect after a reboot.

Change graphics mode (CLI)

You can use the prime-select CLI utility to adjust the graphics mode on hybrid Nvidia/Intel systems:

Steps:

  • prime-select query will show which graphics mode is currently enabled
  • sudo prime-select intel changes the mode to integrated intel graphics (you can put nvidia down if you want to switch back)
  • Shutdown/restart the system to enable the configured graphics mode