I'm using a PC with an integrated Intel and a dedicated NVIDIA GPU. Is there a way to switch between the two graphics adapters automatically - depending upon the need at the moment?  

Using the NVIDIA settings application forces me to log out and back in to perform the switch. 

[![enter image description here](https://i.stack.imgur.com/axVZH.png)](https://i.stack.imgur.com/axVZH.png)

I found a similar [question](https://askubuntu.com/questions/195972/switching-between-intel-and-nvidia-gpu), but the answers are not sufficient enough. I installed [bumblebee](https://askubuntu.com/a/160310/417607), but I don't want to specify the card each time when I run a program. Is there an automatical solution?