twin view

F

flammenflitzer

Routinier
Hallo
Ich möchte teilweise tvout nur auf dem Fernseher haben. Das funktioniert, mit einem abgekupferten Script.
Jetzt möchte ich auch das Bild auf TV und Monitor haben. (geclont, nur den aktuellen WM, ohne das eine Anwendung gestartet wird.
Code:
cat xorg.conf
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath        "/usr/lib64/X11/rgb"
	ModulePath     "/usr/lib64/modules"
        FontPath       "/usr/share/fonts/msfonts-style/
        FontPath       "/usr/share/fonts/sgi-fonts/
        FontPath        "/usr/share/fonts/sharefonts/
        FontPath        "/usr/share/fonts/vc/"
        FontPath 	"/usr/share/fonts/misc"
        FontPath 	"/usr/share/fonts/TTF"
        FontPath 	"/usr/share/fonts/Type1"
        FontPath 	"/usr/share/fonts/75dpi"
        FontPath 	"/usr/share/fonts/100dpi"
        FontPath 	"/usr/share/fonts/afms"
        FontPath 	"/usr/share/fonts/artwiz"
        FontPath 	"/usr/share/fonts/corefonts"
        FontPath 	"/usr/share/fonts/default"
        FontPath 	"/usr/share/fonts/encodings"
        FontPath 	"/usr/share/fonts/freefont"
        FontPath 	"/usr/share/fonts/msfonts"
        FontPath 	"/usr/share/fonts/libdockapp-fonts"
        FontPath 	"/usr/local/share/fonts"
        FontPath 	"/usr/share/fonts"
        FontPath 	"/usr/X11R6/lib/X11/fonts"
        FontPath 	"/usr/share/fonts/cyrillic"
        FontPath 	"/usr/share/fonts/local"
        FontPath 	"/usr/share/fonts/msfonts-style"
        FontPath 	"/usr/share/fonts/sgi-fonts"
        FontPath 	"/usr/share/fonts/sharefonts"
        FontPath 	"/usr/share/fonts/ukr"
        FontPath 	"/usr/share/fonts/urw-fonts"
        FontPath 	"/usr/share/fonts/vc"
        FontPath 	"/usr/X11R6/lib/X11/fonts/xawtv"
        FontPath        "/usr/share/fonts/intlfonts"
        FontPath        "/usr/share/fonts/lfpfonts-fix"
        FontPath        "/usr/share/fonts/lfpfonts-var"
        FontPath        "/usr/share/fonts/xawtv"
        FontPath        "/usr/share/fonts/terminus"
        FontPath        "/usr/share/fonts/efont-unicode"
        FontPath        "/usr/share/fonts/ttf-bitstream-vera"
EndSection

Section "Module"
        Load  "dbe"        # Double buffer extension
	Load  "extmod"     # tv-karten
	Load  "record"
	Load  "xtrap"
	Load  "glx"
	Load  "type1"
	Load  "freetype"
        Load  "ddc"  # ddc probing of monitor
#        Load  "v4l"
#        Load  "v4l2"
        Load  "bitmap"
#        Load  "speedo"
EndSection


Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "de"
        Option      "XkbVariant" "nodeadkeys"

EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
        Option          "SendCoreEvents"        "true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"               "5"
EndSection


Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
        Option    "DPMS"  "true"
        HorizSync 30 - 80 # DDC-probed
        VertRefresh 60 - 90 # DDC-probed
EndSection


Section "Device"
      	Identifier  "Card0"
        Option  "HWCursor"  "false"
#        Driver "nv"
        Driver      "nvidia"   
	VendorName  "nVidia Corporation"
	BoardName   "0x0045" # "6800GT" möglich ist auch 0x0215
	BusID       "PCI:1:0:0"
        Option      "DigitalVibrance" "1"
        Option "RenderAccel" "true"      #Bei nvidia-Grafikkarte Hardware Beschleunigung für die Render Erweiterung aktivieren
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
        DefaultColorDepth 24
	SubSection "Display"
		Viewport   0 0
		Depth     1
                Modes "1024x768" "1600x1200" "1280x1024" "800x600" "640x480"
        EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
                Modes "1024x768" "1600x1200" "1280x1024" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	        Modes "1024x768" "1600x1200" "1280x1024" "800x600" "640x480"
        EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
                Modes "1024x768" "1600x1200" "1280x1024"  "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
                Modes  "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     32
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection


####neu für TV-Ausgang lt. der Anleitung http://www.iofcea.de/cgi-bin/seite.pl?file=linuxtvout getestet und i.O.

Section "Monitor"
  Identifier "Monitor[1]"
  ModelName "PAL TV"
  VendorName "SONY"
  VertRefresh 60
  HorizSync 30-50
EndSection

Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
    Modes "800x600"
  EndSubSection
  Device "Device[1]"
  Identifier "TV"
  Monitor "Monitor[1]"
EndSection

Section "Device"
  BoardName "GeForce-2"
#  Driver "vesa"
  Driver "nvidia"
  Identifier "Device[1]"
  Screen 0
  VendorName "Nvidia"
  Option "NoLogo" "on"
  Option "CursorShadow" "on"
  Option "CursorShadowAlpha" "32"
  Option "CursorShadowXOffset" "2"
  Option "CursorShadowYOffset" "2"
#  Option "TVoutFormat" "SVIDEO"
#  Option "TVoutFormat" "SVIDEO" # oder S-VIDEO
  Option "TVOutFormat" "COMPOSITE"
  Option "TVStandard" "PAL-G"
  Option "ConnectedMonitor" "TV"
EndSection

####neu für Twin View ungetestet

Section "Monitor"
  HorizSync    30-50
  Identifier   "Monitor[2]"
  ModelName    "PAL TV"
  VendorName   "SONY"
  VertRefresh  57-60
  UseModes     "Modes[2]"
EndSection

Section "Modes"
  Identifier   "Modes[2]"
  Modeline 	"800x600" 37.44 800 816 928 1040 600 600 605 626
EndSection

Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      24
    Modes      "800x600" 
  EndSubSection
  Device       "Device[2]"
  Identifier   "TV"
  Monitor      "Monitor[2]"
EndSection

Section "Device"
  BoardName    "GeForce-2"
  Driver       "nvidia"
  Identifier   "Device[2]"
  Option       "CursorShadowAlpha" "32"
  Option       "TVStandard" "PAL-G"
  Option       "TVoutFormat" "S-VIDEO"
#  Option       "TVOutFormat" "COMPOSITE"
  Option       "CursorShadowXOffset" "2"
  Option       "CursorShadowYOffset" "2"
  Option       "CursorShadow" "on"
  Option       "ConnectedMonitor" "TV"
  Option       "NoLogo" "on"
  Option       "IgnoreEDID" "off"
  Option       "TwinView" "true"
  Option       "TwinViewOrientation" "Clone"
  Option       "ConnectedMonitor" "CRT,TV" 
  Screen        0
  VendorName   "Nvidia"
EndSection
 
Wenn beides funktionieren soll musst du noch bei Connected Monitors deinen normalen Monitor mit angeben und MetaModes für den Monitor/TV eintragen afaik. Ansonsten hast du nur auf einem Screen ein Bild.
 
Und die starte ich TwinView? nvtv unterstütz meine Karte nicht.
 
Ich habe jetzt eine neue config angelegt:
twin.conf
Code:
Section "Module"
    Load "dbe"
    Load "extmod"
    Load "bitmap"
    Load "type1"
    Load "freetype"
    Load "glx"
EndSection

#Section "Files"
#    RgbPath "/usr/X11R6/lib/X11/rgb"
#    ModulePath "/usr/X11R6/lib/modules"
#    FontPath "/usr/share/fonts/misc/"
#    FontPath "/usr/share/fonts/TTF/"
#    FontPath "/usr/share/fonts/Type1/"
#    FontPath "/usr/share/fonts/75dpi/"
#    FontPath "/usr/share/fonts/100dpi/"
#    FontPath "/usr/share/fonts/local/"
#    FontPath "/usr/share/fonts/corefonts"
#EndSection

Section "Files"
	RgbPath        "/usr/lib64/X11/rgb"
	ModulePath     "/usr/lib64/modules"
        FontPath       "/usr/share/fonts/msfonts-style/
        FontPath       "/usr/share/fonts/sgi-fonts/
        FontPath        "/usr/share/fonts/sharefonts/
        FontPath        "/usr/share/fonts/vc/"
        FontPath 	"/usr/share/fonts/misc"
        FontPath 	"/usr/share/fonts/TTF"
        FontPath 	"/usr/share/fonts/Type1"
        FontPath 	"/usr/share/fonts/75dpi"
        FontPath 	"/usr/share/fonts/100dpi"
        FontPath 	"/usr/share/fonts/afms"
        FontPath 	"/usr/share/fonts/artwiz"
        FontPath 	"/usr/share/fonts/corefonts"
        FontPath 	"/usr/share/fonts/default"
        FontPath 	"/usr/share/fonts/encodings"
        FontPath 	"/usr/share/fonts/freefont"
        FontPath 	"/usr/share/fonts/msfonts"
        FontPath 	"/usr/share/fonts/libdockapp-fonts"
        FontPath 	"/usr/local/share/fonts"
        FontPath 	"/usr/share/fonts"
        FontPath 	"/usr/X11R6/lib/X11/fonts"
        FontPath 	"/usr/share/fonts/cyrillic"
        FontPath 	"/usr/share/fonts/local"
        FontPath 	"/usr/share/fonts/msfonts-style"
        FontPath 	"/usr/share/fonts/sgi-fonts"
        FontPath 	"/usr/share/fonts/sharefonts"
        FontPath 	"/usr/share/fonts/ukr"
        FontPath 	"/usr/share/fonts/urw-fonts"
        FontPath 	"/usr/share/fonts/vc"
        FontPath 	"/usr/X11R6/lib/X11/fonts/xawtv"
        FontPath        "/usr/share/fonts/intlfonts"
        FontPath        "/usr/share/fonts/lfpfonts-fix"
        FontPath        "/usr/share/fonts/lfpfonts-var"
        FontPath        "/usr/share/fonts/xawtv"
        FontPath        "/usr/share/fonts/terminus"
        FontPath        "/usr/share/fonts/efont-unicode"
        FontPath        "/usr/share/fonts/ttf-bitstream-vera"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "de"
        Option      "XkbVariant" "nodeadkeys"

EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
        Option          "SendCoreEvents"        "true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"               "5"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
        Option    "DPMS"  "true"
        HorizSync 30 - 80 # DDC-probed
        VertRefresh 60 - 90 # DDC-probed
EndSection


Section "Monitor"
    Identifier "TV"
    HorizSync 30-50
    VertRefresh   60
EndSection

Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    Screen 0
    Option       "TVStandard" "PAL-G"
    Option       "TVoutFormat" "S-VIDEO"
    Option       "ConnectedMonitor" "Monitor0,TV"
#    Option       "ConnectedMonitor" "Monitor0"
#    Option       "ConnectedMonitor" "TV"
    Option       "TVOverScan" "1.0"
    Option       "TwinView" "true"
    Option       "TwinViewOrientation" "clone"
    Option       "SecondMonitorHorizSync" "31.5-57.0"
    Option       "SecondMonitorVertRefresh" "50-70"
    Option       "MetaModes" "1280x1024,1280x1024" 
    Option       "RenderAccel" "1"
EndSection

#Section "Device"
#    Identifier "Card1"
#    Driver "nvidia"
#    Screen 1
#EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    Subsection "Display"
        Depth 24
        Modes "1280x1024" "1024x768" "800x600"
        ViewPort 0 0
    EndSubsection
EndSection 

#Section "Screen"
#    Identifier "Screen1"
#    Device "Card1"
#    Monitor "TV"
#    DefaultDepth 24
#    Subsection "Display"
#        Depth 24
#        Modes "1280x1024" "1024x768" "800x600"
#        ViewPort 0 0
#    EndSubsection
#EndSection 

Section "ServerLayout"
    Identifier "Simple Layout"
    Screen "Screen0"
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Die starte ich mit
Code:
startx -- :1 -xf86config twin.conf

Habe nur auf einem Bildschirm die Ausgabe.
Wenn ich

Code:
Option       "ConnectedMonitor" "TV,Monitor0"

drin habe, dann Ausgabe auf TV. Sonst auf Monitor. Muß da nicht noch ein zweiter Abschnitt für Device und Screen hin?
 
Bei den TwinView-Optionen kann man von Hand die Monitorverteilung angeben. Das sieht dann z.B. so aus:

Code:
Option     "ConnectedMonitors" "DFP-0, CRT-1"
Option     "MetaModes" "DFP-0:1280x1024,CRT-1:NULL; DFP-0:NULL,CRT-1:1280x1024"
Option     "HorizSync"    "DFP-0: 31.5-67.0; CRT-1: 30-85"
Option     "VertRefresh"  "DFP-0: 50-75; CRT-1: 50-120"

Bei den obigen Metamodes wird mit Ctrl-Alt-+/- zwischen den Monitoren gewechselt. Ist also kein Clone-Setup. Vielleicht kommst du damit trotzdem naeher an ein TwinView, wie du es haben willst, heran.

-khs
 

Ähnliche Themen

X11 Monitor Position

X startet nichtmehr

xrandr X11 Problem

Zweiter Monitor geht bei Vollbildspielen aus.

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

Zurück
Oben