Sie sind nicht angemeldet.

1

09.04.2006, 16:48

TV-Out an ATI Radeon 9600 Pro konfigurieren

Hallo,

vor kurzem wollte ich mal wieder am Fernseher per TV-Out vom PC abgespielte DVDs schauen. Was zunächst einmal positiv war, ist, daß der TV-Out unter Ubuntu tatsächlich funktioniert, das Problem ist aber allerdings, daß er sich noch nicht ganz so verhält, wie ich das gerne hätte.
Unter Windows XP war es möglich, den Fernseher als eine Erweiterung des normalen Desktops am rechten Bildschirmrand zu nutzen, wobei dieser auch automatisch auf eine geringere Auflösung (512x384) als mein Monitor konfiguriert wurde. Das war in der Hinsicht auch sehr praktisch, da man das Fenster mit dem wiedergegebenen Video einfach per Maus auf den Fernseher verschieben konnte.
Unter Ubuntu sieht es nun standartgemäß so aus, daß der Fernseher eine exakte Kopie vom normalen Desktop anzeigt, allerdings immer nur einen Ausschnitt der eingestellten Bildschirmauflösung (1152x864) (dieser Auschnitt kann durch scrollen mit der Maus verschoben werden). Daher bin ich nun auf der Suche nach einem Weg, eine der folgenden beiden Möglichkeiten zu realisieren:

- der Fernseher zeigt eine Kopie des Desktops, allerdings in einer Auflösung, die vollständig auf den Bildschirm passt.

oder

- der Fernseher ist ähnlich wie unter Windows als Desktop-Erweiterung nutzbar.

Hier zunächst einmal meine "normale" xorg.conf (Der fglrx-Treiber ist installiert):

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen         "Default Screen"
	InputDevice    "Generic Keyboard"
	InputDevice    "Configured Mouse"
EndSection

Section "Files"

        # paths to defoma fonts
	FontPath     "/usr/share/X11/fonts/misc"
	FontPath     "/usr/share/X11/fonts/cyrillic"
	FontPath     "/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath     "/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/X11/fonts/Type1"
	FontPath     "/usr/share/X11/fonts/CID"
	FontPath     "/usr/share/X11/fonts/100dpi"
	FontPath     "/usr/share/X11/fonts/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
	Load  "GLcore"
	Load  "i2c"
	Load  "bitmap"
	Load  "ddc"
	Load  "dri"
	Load  "extmod"
	Load  "freetype"
	Load  "glx"
	#Load  "int10"
	Load  "type1"
	Load  "vbe"
EndSection

Section "InputDevice"
	Identifier  "Generic Keyboard"
	Driver      "kbd"
	Option	    "CoreKeyboard"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "de"
	Option	    "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
	Option	    "CorePointer"
	Option	    "Dev Phys" "usb-0000:00:13.0-1/input0"
	Option	    "Protocol" "evdev"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Buttons" "7"
EndSection

Section "Monitor"
	Identifier   "Standardbildschirm"
	HorizSync    30.0 - 96.0
	VertRefresh  47.0 - 150.0
	Option	    "DPMS"
        DisplaySize     304     228    # 1600x1400 96dpi
EndSection

Section "Device"
	Identifier  "ATI Graphics Adapter 0"
	Driver      "fglrx"
	BusID       "PCI:3:0:0"
EndSection

Section "Screen"
	Identifier "Default Screen"
	Device     "ATI Graphics Adapter 0"
	Monitor    "Standardbildschirm"
	DefaultDepth     24
	SubSection "Display"
		Depth     1
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection


Das Tool fireglcontrolpanel war mir dabei leider überhaupt keine Hilfe, egal, was ich dort einstelle, es ändert sich dadurch nichts. Daraufhin hab ich mit dem Kommandozeilentool aticonfig versucht, einen Dual-Headbetrieb zu konfigurieren, mit folgenden Ergebnissen (hier zunächst die dabei erzeugte xorg.conf) :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "aticonfig Screen 0" 0 0
	Screen         "aticonfig Screen 1"  RightOf "aticonfig Screen 0"
	InputDevice    "Generic Keyboard"
	InputDevice    "Configured Mouse"
EndSection

Section "Files"

        # paths to defoma fonts
	FontPath     "/usr/share/X11/fonts/misc"
	FontPath     "/usr/share/X11/fonts/cyrillic"
	FontPath     "/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath     "/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/X11/fonts/Type1"
	FontPath     "/usr/share/X11/fonts/CID"
	FontPath     "/usr/share/X11/fonts/100dpi"
	FontPath     "/usr/share/X11/fonts/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
	Load  "GLcore"
	Load  "i2c"
	Load  "bitmap"
	Load  "ddc"
	Load  "dri"
	Load  "extmod"
	Load  "freetype"
	Load  "glx"
#	Load  "int10"
	Load  "type1"
	Load  "vbe"
EndSection

Section "InputDevice"
	Identifier  "Generic Keyboard"
	Driver      "kbd"
	Option	    "CoreKeyboard"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "de"
	Option	    "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
	Option	    "CorePointer"
	Option	    "Dev Phys" "usb-0000:00:13.0-1/input0"
	Option	    "Protocol" "evdev"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Buttons" "7"
EndSection

Section "Monitor"
	Identifier   "aticonfig Monitor 0"
	HorizSync    30.0 - 96.0
	VertRefresh  47.0 - 150.0
	Option	    "DPMS"
EndSection

Section "Monitor"
	Identifier   "aticonfig Monitor 1"
	HorizSync    30.0 - 50.0
	VertRefresh  60.0 - 60.0
	Option	    "DPMS"
EndSection

Section "Device"
	Identifier  "ATI Graphics Adapter 0"
	Driver      "fglrx"
	Option	    "(null)"
	BusID       "PCI:3:0:0"
EndSection

Section "Device"
	Identifier  "ATI Graphics Adapter 1"
	Driver      "fglrx"
	Option	    "TVStandard" "PAL-G"
	BusID       "PCI:3:0:0"
	Screen      1
EndSection

Section "Screen"
	Identifier "aticonfig Screen 0"
	Device     "ATI Graphics Adapter 0"
	Monitor    "aticonfig Monitor 0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
	SubSection "Display"
		Depth     1
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier "aticonfig Screen 1"
	Device     "ATI Graphics Adapter 1"
	Monitor    "aticonfig Monitor 1"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
	SubSection "Display"
		Depth     1
		Modes    "512x384"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes    "512x384"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "512x384"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "512x384"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "512x384"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "512x384"
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection

Wenn ich Ubuntu nun mit genau dieser xorg.conf boot, erhalte ich auf dem Fernseher einen komplett seperaten Desktop, für den ich auch die Auflösung per "System->Einstellungen->Bildschirmauflösungen" individuell konfigurieren kann. Praxistauglich ist dies leider nicht, da ich auf diesen zweiten Desktop offenbar nur per Maus zugreifen kann und Totem offenbar kein Vollbild auf diesem Desktop anzeigen kann (Verschieben von Fenstern von dem einen auf den anderen Desktop ist auch nicht möglich).
Wenn ich nun in der ersten Device-Sektion der xorg.conf den Eintrag

Quellcode

1
Option	    "DesktopSetup" "clone"

hinzufüge und den Eintrag für den zweiten Screen in der ServerLayout-Sektion entferne, erhalte ich wieder das oben beschriebene "Standartverhalten", wenn ich "clone" auf "horizontal" ändere, sind das Ergebnis leider nur seltsame Grafikfehler. Wenn ich die ServerLayout-Funktion nicht ändere, ist wieder der komplett eingeständige Desktop vorhanden, unabhängig von den Device-Einstellungen.
Daher nun meine Frage: Hat jemand eine Idee, wie ich die xorg.conf konfigurieren muß, um einen der beiden gewünschten Betriebsmodi zu erreichen?

Grüße,
Jan

grobi

User

Beiträge: 1

Registrierungsdatum: 22.04.2006

  • Nachricht senden

2

22.04.2006, 21:13

Hallo,

ich kann es zwar nicht ausprobieren, da kein Fernsseher bei mir angeschlossen ist, aber ein komplett separater Desktop ist doch für Deine Zwecke eigentlich perfekt..

Leite doch einfach die Bild-Ausgabe auf diesen Desktop um, indem Du die Display-Variable entsprechend setzt (und falls nötig auch noch die XAUTHORITY). Also eine Konsole öffnen und folgendes tippen:

export DISPLAY=:1.0

(wobei die 1.0 gegen die korrekte Display-Nummer zu ersetzen wäre)

mplayer <Optionen> <Filmdatei bzw. URL>

Bei den Optionen kannst Du dann noch die Auflösung und Vollbild angeben und es sollte funktionieren (such die korrekten Optionen selber raus, ist mir jetzt zu viel Aufwand das man von mplayer zu lesen). Das ganze geht sicher auch mit xine oder totem.