switcherooctl command not found

In this troubleshooting guide we learn how to fix switcherooctl command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

switcherooctl: command not found

or when using sudo you get the following error message

sudo: switcherooctl: command not found

Solutions to switcherooctl: command not found

How To Fix switcherooctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu switcherooctl is provided by switcheroo-control package.

switcheroo-control is:

For systems that have both an integrated GPU and a dedicated GPU, this package by default will force the integrated GPU to be used to save power.

You can launch individual apps using the dedicated GPU by running them with the environment variable DRI_PRIME=1. Or you can right-click on the app (while it’s not running) in GNOME Shell’s Activities Overview and choose the “Launch using Dedicated Graphics Card” option.

If this default behavior is not appropriate, uninstall this package or set xdg.force_integrated=0 as a kernel command-line option in your bootloader.

To fix this problem, we can install more using the command below.

sudo apt-get -y install switcheroo-control

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install switcheroo-control.

sudo apt -y install switcheroo-control

Or if you have aptitude installed you can use the following command.

sudo aptitude install switcheroo-control

Summary

In this tutorial we learn how to fix switcherooctl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.