Home

Awesome

Optimus Manager GRUB Generator

GRUB2 mkconfig script for creating optimus-manager boot entires. This script is a modified version of what is already shipped with GRUB in /etc/grub.d/10_linux (that path is for Arch distributions). This is better than editing 10_linux, because that script will get overridden on GRUB package updates.

Usage

  1. Clone this repository and cd into it: git clone https://github.com/hakasapl/optimus-manager-grub.git && cd optimus-manager-grub
  2. Run the install script as root: sudo ./install.sh
  3. Update your grub configuration using grub-mkconfig or update-grub if your distribution has that

Install Script Arguments

ArgumentDescription
--disable-integratedDon't create a boot option for integrated mode
--disable-hybridDon't create a boot option for hybrid mode
--disable-nvidiaDon't create a boot option for nvidia mode
--uninstallUninstall this generator script (You still need to update grub configuration afterwards)

Icons for Optimus Boot Options

Additional classes are added to each boot option so that you can configure different icons for them, if your grub theme supports this. In the theme folder, there should be an icons folder. Please place custom png icons of your choice in there with the following names according to each boot option:

Boot OptionIcon File Name
Integratedoptimus-integrated.png
Hybridoptimus-hybrid.png
NVIDIAoptimus-nvidia.png

Your custom icons should then show up when you boot once again.