Optimus-Manager Command Examples (with examples)
- Linux
- November 5, 2023
Switch between different GPU modes
Code: optimus-manager --switch nvidia|integrated|hybrid
Motivation: The --switch
option in optimus-manager allows the user to switch between different GPU modes on Nvidia Optimus laptops. This is useful in scenarios where the user wants to prioritize either Nvidia graphics for high-performance tasks or integrated graphics for power-saving purposes.
Explanation: The --switch
option is followed by an argument specifying the GPU mode to be switched to. There are three possible arguments: nvidia
for using the Nvidia GPU exclusively, integrated
for using the integrated GPU exclusively, and hybrid
for using both GPUs in a hybrid mode.
Example Output: If we execute optimus-manager --switch nvidia
, the command will switch to Nvidia graphics, utilizing the dedicated GPU for all tasks. This can be confirmed by checking the system’s GPU status or running a GPU-intensive application.
Clean up
Code: optimus-manager --cleanup
Motivation: Sometimes, after switching GPU modes multiple times, redundant files and configurations may accumulate. These remnants can cause conflicts or issues in the system. Hence, it becomes essential to clean up these residual files to ensure optimal performance and stability.
Explanation: The --cleanup
option in optimus-manager triggers a clean-up operation that removes any unused or redundant files and configurations associated with the tool. This helps in preventing conflicts and unnecessary clutter in the system.
Example Output: When executing optimus-manager --cleanup
, the command will scan for unused files and configurations related to optimus-manager and remove them from the system. The output will typically display a list of files being deleted and a confirmation message upon successful completion of the clean-up process.
By utilizing the examples provided above, users can easily switch between GPU modes and clean up the system using the optimus-manager command. These features ensure efficient management of Nvidia Optimus laptops, allowing users to optimize performance and maintain system stability.