My computer has integrated graphics and a GPU. Using the integrated graphics since it just works out of the box. I had some problems configuring the GPU in the past but now, that is a job done.
The thing is that, I use PRIME to use the NVIDIA GPU, and I have to install the NVIDIA driver every time I upgrade the kernel (I do both of those actions, manually) and after installing the NVIDIA driver, I run the command:
Code:
nvidia-xconfig --prime
That command generates a file called: /etc/X11/xorg.conf
... And now, I only have to use some xrandr to set some configurations and that is it.
Let's say that I forgot to install the NVIDIA-driver after upgrading the kernel or I just want to use the integrated graphics for one xorg session so I can save battery; I can easily avoid using the xrandr configurations that I set when using the GPU (because they are in an script that startx/xinit runs) but I still need to delete the /etc/X11/xorg.conf in order to be able to use the integrated graphics.
So, I wanted to know if there is a way to run xorg ignoring the xorg.conf file for one session? Or something like that.
P.S: I know of Bumblebee to switch graphics, but it does not work with my computer, I tried many times. Also, it is not important to me to switch graphics inside of the session.