Jump to content

multiple X configuration


GodFlesh
 Share

Recommended Posts

I have a nVidia GeForce4 card, and 2 monitors + 1 TV set.

I would like to setup 2 configurations :

1) 2 monitors in xinerama configuration : this works

2) 1 monitor + tv (to watch dvd & divx)

 

The problems is that i know how to setup this 2 configurations in my XFree-4 config files, but with 2 different config files, and i don't know how to switch from one configuration to the over.

I would like for example to have the 2 configurations on 2 Xserver screens, switching from one to another with crtl-alt-F7 and crtl-alt-F8

 

How can i do that ?

Link to comment
Share on other sites

Read my website,

www.mandrake.tips.for.free.fr/howtos.html#multix

 

ctrl-alt-F1

X -xf86config /path/to/test/config :1 &

(the number '1' is the number of that graphical environment, you need to use it later; you can use another number if that makes you happy; I think it might be limited to 255 or so ...)

Use ctrl-alt-F1 to get back to the console again, and type:

export DISPLAY=:1

startkde &

for kde and for gnome

gnome-session &

(or icewm etcetc...)

Hit ctrl-alt-F7 to get to the first graphical server, ctrl-alt-F8 to get to the second.

 

 

With a bit of playing, you could make some scripts that do this on startup, so you always get this automatically. (Hint: add commands to /etc/rc.local, and do use the command sudo to run the window managers as the appropriate user -- man sudo)

 

Enjoy.

Link to comment
Share on other sites

Hey my topic is back ! (seemed to me it dispeared this morning)

 

thanks artree

I think i will write a shell script with

 

X -xf86config /etc/X11/XF86Config-4-TV :1 &

export DISPLAY=:1

startkde &

 

So that when i want tv out, i just

ctrl-alt-F1

./script

ctrl-alt-F8

 

But i have a question : can i have 2 sessions of kde (or gnome) for the same user at the same time on 2 x-free screens ?

Link to comment
Share on other sites

you can have the two configs in one file

just create two seperate monitor sections and give them different identifiers

 

then create two seperate server layout sections one using the monitor/monitors and the other using the tvout

 

then you can choose between them by running

 

X -layout tv_layout
X -layout normal_layout

 

replacing tv_layout and normal_layout with the server layout identifiers.

 

if you use xinit or startx then you run them this way

 

xinit -- -layout tv_layout
startx -- -layout normal_layout

 

and yes you can start mutliple KDE and Gnome and whatever sessions and switch between them (and yes they can be run by the same user).

 

if the question however is to have them both visible at the same time, then no it can't be done without patching XFree.

 

cheers,

Alaa

Link to comment
Share on other sites

thanks for the tip alla.

this sound interesting

 

do you know how i can add this to the logon manager ?

I use mdkdm to choose between kde/gnome/others, and would like to be able to choose kde-xinerama or kde-tv (for example)

 

Is this possible on a graphical logon, or is it impossible since the X-server is launched before the graphical logon ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...