Is it possible to switch to switch between Nvidia and intel cards without uninstalling the drivers?
Nvidia Optimus
- Edited
If you have an issue like
GPU at BusId 0x1 doesn't have a supported video decoder
Floating point exception
this could help
export LIBVA_DRIVER_NAME=i965
https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Configuring_VA-API
if you want to save energy this might be helpful
https://github.com/Bumblebee-Project/bbswitch
shan9656 Actually, it is possible! There are 2 ways, one simpler but requires reboot https://github.com/xulongwu4/nvidia-optimus-manager
And other harder to configure using bbswitch, which is in the repos.
I haven't used any of those as I don't have an optimus laptop, but others had success with those
- Edited
The aim of bbswitch
isn't to switch between the iGPU and the dGPU but to disable the dGPU (nvidia). See it more like a power saving thing.
I just created an installer script for the same code you posted that will set things up for Budgie, Gnome and MATE.
https://github.com/kz6fittycent/nvidia-optimus-manager
It's just my fork of the original code. PR submitted, just not accepted yet.
I use this on my own laptop with Nvidia GPU.