[ale] running two X servers

James P. Kinney III jkinney at localnetsolutions.com
Fri Jan 17 22:35:38 EST 2003


AWESOME!!!  This should be carefully written up and submitted to the
linuxdocs people. A mini-howto would be fantastic. Great work, Jason!

On Fri, 2003-01-17 at 22:28, Jason Day wrote:
> On Fri, Jan 17, 2003 at 10:09:01PM -0500, Geoffrey wrote:
> > There was a question at the ALE NW meeting last night regarding running 
> > two X servers on one box.  I just verified my own suggestion and thought 
> > I'd put it type.
> 
> I've been doing this for a while now to run games in wine.  I kept
> having various problems when running games in wine: like moving the
> mouse to the edge of the screen and inadvertantly switching to a
> different virtual desktop.  I also discovered that wine tends to work
> better if you set your X resolution to 640x480 or 800x600 and 16-bit
> color.  So I did a bit of research and figured out how to start a
> different X server.
> 
> First, I added this to my XF86Config file:
> 
> Section "Screen"
>         Identifier      "wine"
>         Device          "Generic Video Card"
>         Monitor         "Generic Monitor"
>         DefaultDepth    16
> 
>         Subsection "Display"
>                 Depth 16
>                 Modes "800x600" "640x480"
>         EndSubsection
>         Subsection "Display"
>                 Depth 24
>                 Modes "800x600" "640x480"
>         EndSubsection
> EndSection
> 
> Then, for each game, I create a gnome panel launcher with this for a
> command:
>   xinit /home/jday/bin/game.sh -- :1 -screen wine
> 
> The game.sh is a shell script customized for the game I want to play.
> For example, I use this script to launch NeverWinter Nights:
> 
> #!/bin/bash
> xscreensaver-command -display :0 -throttle
> cd /win/c/Games/NeverwinterNights/nwn
> wine --debugmsg -all nwmain
> xscreensaver-command -display :0 -unthrottle
> 
> Once the game is goint, I can use C-A-F7 to switch back to my desktop if
> I need to.  And when I exit the game, the second X session ends,
> returning me to my desktop.  Pretty cool :)
-- 
James P. Kinney III   \Changing the mobile computing world/
President and CEO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list