A Linux program to handle GPU switching on Optimus laptops. Looks like a replacement for Bumblebee. Designed with Arch Linux in mind. Switches the external GPU on and off at need. Plugs into LightDM easily but can work with others with a little configuration.
In the AUR.
Works by auto-generating a Xorg configuration file and putting it into /etc/X11/xorg.conf.d/. If you already have custom Xorg configuration files at that location or at /etc/X11/xorg.conf , it is strongly advised that you remove anything GPU-related from them to make sure that they do not interfere with the GPU switching process.
If you have ever used the nvidia-xonfig utility or the Save to X Configuration File button in the Nvidia control panel, a Xorg config file may have been generated at /etc/X11/xorg.conf . It is highly recommended to delete it before trying to switch GPUs.
If Bumblebee is installed, you must disable its daemon and reboot.
The auto-generated Xorg config file will be automatically cleaned up if you uninstall.
optimus-manager --switch nvidia - switch to the Nvidia GPU
optimus-manager --switch integrated - switch to the integrated GPU and power the Nvidia GPU off
optimus-manager --switch hybrid - switch to the integrated GPU but leave the Nvidia GPU available for on-demand offloading
WARNING: Switching mode automatically logs you out, so make sure you save your work and close all your applications before doing so.'
NOTE: Since version v1.2, power management is disabled until manual configuration is done. This choice was made because there is no catch-all configuration that works for all laptop models.
Default config file at
/usr/share/optimus-manager.conf; create and edit