How To Install switcheroo-control on Kali Linux
Introduction
In this tutorial we learn how to install switcheroo-control on Kali Linux.
What is switcheroo-control
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.
There are three methods to install switcheroo-control on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install switcheroo-control Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install switcheroo-control using apt-get by running the following command:
sudo apt-get -y install switcheroo-controlInstall switcheroo-control Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install switcheroo-control using apt by running the following command:
sudo apt -y install switcheroo-controlInstall switcheroo-control Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install switcheroo-control using aptitude by running the following command:
sudo aptitude -y install switcheroo-controlHow To Uninstall switcheroo-control on Kali Linux
To uninstall only the switcheroo-control package we can use the following command:
sudo apt-get remove switcheroo-controlUninstall switcheroo-control And Its Dependencies
To uninstall switcheroo-control and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove switcheroo-controlRemove switcheroo-control Configurations and Data
To remove switcheroo-control configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge switcheroo-controlRemove switcheroo-control configuration, data, and all of its dependencies
We can use the following command to remove switcheroo-control configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge switcheroo-controlDependencies
switcheroo-control have the following dependencies:
References
Summary
In this tutorial we learn how to install switcheroo-control package on Kali Linux using different package management tools: apt, apt-get and aptitude.