LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting X with a custom config (https://www.linuxquestions.org/questions/linux-general-1/starting-x-with-a-custom-config-363024/)

Fozza 09-13-2005 01:45 PM

Starting X with a custom config
 
Hi all, just a little help if you have a moment :)

I have 3 different X configurations that I would like to alternate between. (dualhead, dual X screens and dualhead with TV).

Is there an easy way to start X telling it to use my custom config rather than the default xorg.conf?

Even better, is there a simple script I could write that would open a new virtual console, and start X with my custom config?

Thanks in advance for your help!

rtg 09-13-2005 02:44 PM

From X -help:
Code:

-config file      specify a configuration file, relative to the
                      xorg.conf search path, only root can use absolute

So the only parameter that your script will change is the config file.
/etc/X11/xorg.dualhead will be used by ' -config xorg.dualhead '

Fozza 09-13-2005 03:16 PM

Thanks rtg, that's handy to know.

Now, I'm trying to start a new X session in another virtual terminal but getting the message "Fatal server error: Server is already active for display 0". What am I doing wrong to start a new X session?

Edit: to elaborate, I'm typing the following command:

Code:

X -config xorgdual.conf vt02

rtg 09-13-2005 11:40 PM

As I understand the X may receive an optional parameter of the number of server to start. Thus when you say 'X' you get it started as 0 server. To start a new one you need to pass something like :1 -
Code:

X :1 vt02

Fozza 09-14-2005 01:08 PM

Thanks again rtg.

I've got X starting correctly in the virtual terminals now.

I've trawled google trying to look for a kde command line switch to start it on a particular display. But everything I try, it just says "this display is in use".

Any ideas?

JCipriani 09-14-2005 05:13 PM

Maybe set your DISPLAY environment variable to the display you want it to start on before starting it? It would either be ":0.1" or ":1.0", I don't remember.

rtg 09-15-2005 02:24 AM

startx /opt/kde/bin/startkde -- :1
(substitute that path with our one to startkde script) and 1 with the display number you wanded kde to start on.


All times are GMT -5. The time now is 11:22 AM.