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! |
From X -help:
Code:
-config file specify a configuration file, relative to the /etc/X11/xorg.dualhead will be used by ' -config xorg.dualhead ' |
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 |
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 |
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? |
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.
|
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. |