I have a dual-monitor setup, and I wanted to run a 2nd X session in another virtual terminal, but only on a single monitor. It was basically to play games on, since I couldn't get Half-Life under wine to behave properly. (Unreal Tournament was fine, but HL was being a pain) I also wanted to run icewm on the 2nd session, since there was no need for full-blown KDE.
After wading through the maze that is startx/xinit and not being able to get it to work correctly, I came upon the X commands to do it.
The trick was being able to specify a different xorg.conf file. This seems to have worked:
sudo /usr/bin/X :1 -nolisten tcp vt9 -config /home/<myuser>/.wine/drive_c/SIERRA/Half-Life/xorg.conf.vga &
followed by
icewm --display :1
However, when I go to log out of the icewm session (on vt9), it is also bringing up the logout dialog on my main KDE session on vt7 (?!). I have to kill the icewm and X session processes in order to stop vt9. It shuts down gracefully if I go through the KDE menu Switch User > Start New Session, but I can't use that because it uses the default xorg.conf which is dual-monitor setup.
Any ideas? There has to be an easy way to do this, but I've been wrestling with startx/xinit but there are so many files involved trying to figure out what it is doing it's driving me nuts. At one point I had a process running that looked like this (note the :0 AND the :1)
root 12160 1 0 13:12 tty9 00:00:01 /usr/bin/X :0 -br -nolisten tcp :1 vt9 /home/<myuser>/.wine/drive_c/SIERRA/Half-Life/xorg.conf.vga
After wading through the maze that is startx/xinit and not being able to get it to work correctly, I came upon the X commands to do it.
The trick was being able to specify a different xorg.conf file. This seems to have worked:
sudo /usr/bin/X :1 -nolisten tcp vt9 -config /home/<myuser>/.wine/drive_c/SIERRA/Half-Life/xorg.conf.vga &
followed by
icewm --display :1
However, when I go to log out of the icewm session (on vt9), it is also bringing up the logout dialog on my main KDE session on vt7 (?!). I have to kill the icewm and X session processes in order to stop vt9. It shuts down gracefully if I go through the KDE menu Switch User > Start New Session, but I can't use that because it uses the default xorg.conf which is dual-monitor setup.
Any ideas? There has to be an easy way to do this, but I've been wrestling with startx/xinit but there are so many files involved trying to figure out what it is doing it's driving me nuts. At one point I had a process running that looked like this (note the :0 AND the :1)
root 12160 1 0 13:12 tty9 00:00:01 /usr/bin/X :0 -br -nolisten tcp :1 vt9 /home/<myuser>/.wine/drive_c/SIERRA/Half-Life/xorg.conf.vga