If you installed Nvidia drivers through Negativo17 or RPMfusion, the Nvidia card would always be on by default. As the dedicated GPU consumes a lot of power, it is a significant problem to those using laptops.


  • makes Grub load Nouveau instead of Nvidia drivers on normal basis and creates a new entry which loads Nvidia drivers.
  • lets you switch between Nouveau and Nvidia drivers within seconds.


  • Switch to Nouveau or Nvidia proprietary dirvers. You'll be brought to the login screen right after the switch. The whole process should be around 5 seconds.


Why is this method preferred over Bumblebee?


Supported Operating Systems

  • Fedora 26 ~ 29


Easy Setup

  • To make the script do everything automatically, run make enable && make.
  • To completely remove everything, run make uninstall.

All Options

  • make or make run: Runs Changes take effect on the next boot.
    1. Current session: make / make run
    2. Next boot: changes should take effect
  • make force: Same as running make, but without checking Linux kernel's version and the presence of Nvidia modules.
  • make enable: Registers grub-nvidia-entry.service and gdm-nvidia-wayland-switch.service and enables them. will update all configurations on the next boot. However, you'll have to reboot again to see the changes.
    1. Current session: make enable / Kernel update
    2. Next boot: executes
    3. Second boot: changes should take effect
  • make disable: Disables grub-nvidia-entry.service and gdm-nvidia-wayland-switch.service.
  • make install: Registers grub-nvidia-entry.service and gdm-nvidia-wayland-switch.service.
  • make uninstall: Deregisters and uninstalls all components.
  • make sign: Signs Nvidia modules for Secure Boot with Note that this is NOT included in make enable and should be re-run MANUALLY on every kernel update.

GPU Verification


iGPU: glxgears -info | grep GL_VENDOR image dGPU(Nouveau): DRI_PRIME=1 glxgears -info | grep GL_VENDOR image


glxgears -info | grep GL_VENDOR image


Full installation overwrites /usr/lib/systemd/system/switcheroo-control.service, /etc/grub.d/40_custom, /usr/lib/udev/rules.d/61-gdm.rules, and /etc/gdm/custom.conf.


  • There's an upstream bug that prevents Gnome from detecting dedicated GPU when Secure Boot is on. DRI_PRIME=1 works fine though. A workaround is to disable Secure Boot for now.
  • Upstream made a change to disable GDM's ability to launch Wayland backend if Nvidia proprietary drivers are used. However, GDM seems to be not regaining the ability even after the drivers are unloaded[need confirmation]. A workaround is applied in the commit, 382ddeb.


  • RPM package
  • Better documentation for user to check what went wrong.
  • Gnome extension

Development Stopped

I've switched to another laptop with AMD graphics card.

Grub Nvidia Entry

Enable Nvidia driver only with the last entry in grub.

Grub Nvidia Entry Info

⭐ Stars 40
🔗 Source Code
🕒 Last Update 5 months ago
🕒 Created 5 years ago
🐞 Open Issues 0
➗ Star-Issue Ratio Infinity
😎 Author Superdanby