How do I start a second X server

Cameron Simpson cs at zip.com.au
Fri Jul 30 08:51:54 UTC 2004


On 10:38 30 Jul 2004, Rasmus Back <rasmus.back at gmail.com> wrote:
| I have two graphic cards in my system and I'm trying to configure the
| second card so that I can use its tv-out feature to play dvds on my
| tv. Since I only watch movies once in while I'd like to be able to
| start a second X server with a minimal window manager and specify the
| server layout for the tv-out video card. Probably something like
| "startx twm -- -layout tv-out :1".
| 
| I thought that the startx command would do it but it fails with the
| error: /usr/X11R6/bin/xterm:  bad command line option "twm". startx
| without the "twm" option tries to start another gnome-session on vt8.

If you have a gander at the startx script you'll see it tries to be
ultra clever.  If that first arg (your "twm") is a full path it's taken
to be a program name, otherwise it's an argument for the default program,
thus causing it to invoke the command "xterm twm" eliciting the error you
see. So find the full path of twm ("which twm" says "/usr/X11R6/bin/twm"
on my system) and go:

	startx /usr/X11R6/bin/twm -- -layout tv-out :1

Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

If it can't be turned off, it's not a feature. - Karl Heuer





More information about the users mailing list