LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-13-2005, 01:45 PM   #1
Fozza
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.3
Posts: 7

Rep: Reputation: 0
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!
 
Old 09-13-2005, 02:44 PM   #2
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
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 '
 
Old 09-13-2005, 03:16 PM   #3
Fozza
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.3
Posts: 7

Original Poster
Rep: Reputation: 0
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

Last edited by Fozza; 09-13-2005 at 03:19 PM.
 
Old 09-13-2005, 11:40 PM   #4
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
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
 
Old 09-14-2005, 01:08 PM   #5
Fozza
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.3
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 09-14-2005, 05:13 PM   #6
JCipriani
Member
 
Registered: Aug 2005
Location: Pittsburgh, PA, USA
Distribution: Redhat 9, OS X 10.4.x, Win2K
Posts: 85

Rep: Reputation: 15
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.
 
Old 09-15-2005, 02:24 AM   #7
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run system-config-soundcard automatically during starting process? leduytien Linux - Software 1 02-11-2006 09:57 AM
custom install cd base-config custom mithereal Debian 6 09-11-2005 03:48 PM
Starting KDE with x config for gnome johan the olive Slackware 1 11-13-2003 07:04 PM
Starting X with a different config? cradlebin Linux - Software 5 10-05-2003 05:56 AM
How to config/custom/create enlightenment theme powerplane Linux - Newbie 2 04-26-2003 07:36 PM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration