Having X on two virtual terminals
I was debugging a full-screen game with emacs and gdb. I was thinking that things would be much easier (read: possibler) if I was running the actual game in another virtual terminal. Unfortunately, I don't know enough about X to figure out how to do this. Does anyone know how? I used to have an older distribution (I can't remember which one) which had an option somewhere to open a new XServer in a different vt. Even if I managed that, how would I get my program to open in that VT instead of the current? I use SDL and OpenGL combo. I noticed that the Ctrl-Alt-F keys work to change terminals when running my program (which is how I manage to get out of sticky situation sometimes with gdb - Ctrl-Alt-F2 killall gdb), but not any of my WM's (Ion) keys bound for window management.
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
That's really useful thanks. If you had posted as a user I would have rated you high. Now I just have to figure out how to set environment variables for gdb from within emacs. Probably not too hard...
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
That's really useful - thank you again.
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
You can look into Xnest. With Xnest it's possible to have another X session within a window in the current X session. Depending on your configuration (which runlevel: are you loggin in in X or in console?) and what packages you have installed, you can also achieve a similar goal with gdmflexiserver: basically it spawns a second gdm graphical login screen so you can log in simultaneously as a different user using X. (Switching between the two, or more, is just like otherwise: ctrl-alt-F7, F8, ...) To use gdmflexiserver in a nested X server (Xnest), use the --xnest option.
However, don't expect good performance. A nested X server is much slower than the real thing.
However, don't expect good performance. A nested X server is much slower than the real thing.
In my /etc/gdm/gdm.conf, there is a section which says
[servers]
0=Standard
#1=Standard
My guess is, that if you uncomment the line 1=Standard, you will have another X server running locally.
How usefult this is, is anybody's guess
Mark
[servers]
0=Standard
#1=Standard
My guess is, that if you uncomment the line 1=Standard, you will have another X server running locally.
How usefult this is, is anybody's guess
Mark
Quote:Correct.
Original post by markr
My guess is, that if you uncomment the line 1=Standard, you will have another X server running locally.
Quote:Extremely, in some cases. The OP's for instance.
How usefult this is, is anybody's guess
And if you have a dual-head video card (such as an ATI 9700 pro), how could you tell the the second gdm server to use a different X config file?
... I think I can even plug in two USB keyboards and mice.
... I think I can even plug in two USB keyboards and mice.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Quote:
Original post by Magmai Kai Holmlor
And if you have a dual-head video card (such as an ATI 9700 pro), how could you tell the the second gdm server to use a different X config file?
I haven't tried this, but it sounds good to me. It's based on a mixture of extrapolation of the configuration file and some things I actually knew/looked-up.
Find the section of the configuration file (gdm.conf) that looks like this (from Debian's default GDM configuration file):
|
Below it (for neatness), you can write a new slightly modified version of it:
|
Obviously, you should have created the MyXF86Config-4 file (or whatever you name it). Then, find the line:
|
And add below it (again, for neatness):
|
Hopefully I'm not just making things up and all of that works properly.
Quote:
Original post by Magmai Kai Holmlor
... I think I can even plug in two USB keyboards and mice.
I don't see why not.
I have two mice plugged in right now (long story...) It works fine in both Windows and X
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement