Skip to content

Grub mkconfig script for creating optimus-manager boot entires

License

Notifications You must be signed in to change notification settings

hakasapl/optimus-manager-grub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Argument Description
--disable-integrated Don't create a boot option for integrated mode
--disable-hybrid Don't create a boot option for hybrid mode
--disable-nvidia Don't create a boot option for nvidia mode
--uninstall Uninstall 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 Option Icon File Name
Integrated optimus-integrated.png
Hybrid optimus-hybrid.png
NVIDIA optimus-nvidia.png

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

About

Grub mkconfig script for creating optimus-manager boot entires

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages