Article 53XE5 How to run xorg with different configuration files?

How to run xorg with different configuration files?

by
slac
from LinuxQuestions.org on (#53XE5)
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 --primeThat 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.latest?d=yIl2AUoC8zA latest?i=ipPIm_DC3_Y:wH_okRaHduQ:F7zBnMy latest?i=ipPIm_DC3_Y:wH_okRaHduQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=ipPIm_DC3_Y:wH_okRaHduQ:gIN9vFwipPIm_DC3_Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments