PDA

View Full Version : Multiple X Screens (TV,CRT)


DustSmoke
04-02-03, 07:54 PM
OK, this is something i've been trying to get working since the past 2 driver versions.

Basically, I want 2 X desktops. The problem is getting it to work with one CRT and one TV.

I don't have this problem if i were trying to do 2 x desktops with 2 different video cards on CRT's.... But I can't figure out nvidia's dualhead stuff.

Does somebody know where I can see a sample X config file that has it working like this?

(not twinview, just multiple 'seperate' X desktops so I don't have things moving acrost both screens when I play games, but can launch xine and watch a movie on the other one at 800x600 while my crt is at 1024x768)

DustSmoke
04-02-03, 08:48 PM
OK, I got the mutli X server setup and going.

But the problem now is that it only loads gnome on 1 of them (CRT), the tv sits there with X alone. (same thing as running "X" instead of "startx") How do I get it to open up gnome or kde so I have 2 entirely different desktops?

I don't want to use xinerama since it just pisses me off having things split between the screens, and it's random what supports it.

If any of you are interested in how I did this, Here.......

XF86Config----------------------------------------------
Section "ServerLayout"
Identifier "Me Configured"
Screen 0 "Screen0"
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

FontPath "unix/:7100"

EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"

# Option "AutoRepeat" "500 5"

# when using XQUEUE, comment out the above line, and uncomment the
# following line
# Option "Protocol" "Xqueue"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
#Option "XkbVariant" ""
#Option "XkbOptions" ""
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection


Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-66
VertRefresh 50-120
Option "dpms"


EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Generic TV
ModelName "Mitsubishi"
HorizSync 30-50
VertRefresh 60
#Option "dpms"
EndSection

Section "Device"
Identifier "nvidia0"
Driver "nvidia"
VendorName "NVIDIA GeForce 2 MX (generic)"
BoardName "NVIDIA GeForce 2 MX (generic)"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "nvidia1"
Driver "nvidia"
VendorName "NVIDIA GeForce 2 MX (generic)"
BoardName "NVIDIA GeForce 2 MX (generic)"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "nvidia0"
Monitor "Monitor0"
DefaultDepth 24

Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubsection

EndSection

Section "Screen"
Identifier "Screen1"
Device "nvidia1"
Monitor "Monitor1"
DefaultDepth 24
Option "TVStandard" "NTSC-M"
Option "ConnectedMonitor" "TV"
Option "TVOutFormat" "SVIDEO"
Subsection "Display"
Depth 24
Modes "800x600" "640x768"
EndSubsection
EndSection

#Section "DRI"
#Mode 0666
#EndSection
----------------------------------------------

bwkaz
04-02-03, 09:26 PM
Run export DISPLAY=:0.1 ; gnome-session to start Gnome on that second screen, and export DISPLAY=:0.1 ; startkde to start KDE on that screen.

mfred
04-03-03, 01:26 AM
hi

1.

VendorName "Generic TV

should be closed with "

2.

where is your server section ?

as in the FAQ


Section "ServerLayout"
...
Screen 0 "Screen0"
Screen 1 "Screen1" leftOf "Screen0"
...
EndSection

DustSmoke
04-03-03, 05:51 AM
ServerSection is way at the top.... I know most people have it at the bottom but it doesn't really matter with X. Annakonda initially set it up that way and i'm just lazy.

As for the closed out quote... yeah, I should close it. It all seems to work thou anyways.

Just trying to figure out how to make it init both desktops during startup so I don't have to do it manually. Think you can throw it in .xclients (but that doesn't work) So I guess I will have to go to xinit shell script. Any Ideas anybody?

bwkaz
04-03-03, 08:48 AM
xinit is a binary. Put it in the xinitrc script (which is either /etc/X11/xinit/xinitrc, or (if it exists) ~/.xinitrc).

markus_schwarz
04-04-03, 10:19 AM
I've got the contrary problem - I want to prevent gnome from starting on the second x-screen.
Does anybody know how to achieve that?
TIA, Markus.