[howto]
1. Robimy 2 kopie pliku xorg.conf i nadajemy im nazwy xorg.conf.svideo i xorg.conf.single co w rezultacie daje nam katalog /etc/X11/ z 3 plikami xorg.conf, xorg.conf.single, xorg.conf.svideo
2. Teraz zajmiemy się plikiem z końcówką svideo, kopiujemy poniższy kod, do swojego pliku od miejsca Section "Device"
Kod: Zaznacz cały
Section "Device"
Identifier "SVIDEO"
Driver "i810"
Option "MonitorLayout" "TV,LFP"
Option "FlipPrimary" "True"
Option "TVStandard" "NTSC"
Option "TVOutFormat" "SVIDEO"
Option "ConnectedMonitor" "TV"
Option "Clone" "True"
BusID "PCI:0:2:0"
EndSection
Section "Monitor"
Identifier "LCD"
Option "DPMS"
HorizSync 30 - 81
VertRefresh 56 - 76
EndSection
Section "Monitor"
Identifier "TV"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Screen"
Identifier "TV"
Device "SVIDEO"
Monitor "TV"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "LCDandTV"
Screen "TV"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "ServerFlags"
Option "DefaultServerLayout" "LCDandTV"
EndSection
Kod: Zaznacz cały
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-51
VertRefresh 43-60
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82852/855GM Integrated Graphics Device"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection
Section "DRI"
Mode 0666
EndSection
Pierwszy do uruchomienia s-video
Kod: Zaznacz cały
#!/bin/sh
sudo cp /etc/X11/xorg.conf.svideo /etc/X11/xorg.conf
sudo pkill Xorg
sudo chmod +x /usr/bin/tvouton
Drugi do wyłączenia s-video
Kod: Zaznacz cały
#!/bin/sh
sudo cp /etc/X11/xorg.conf.single /etc/X11/xorg.conf
sudo pkill Xorg
5. Odpalamy skrypty poleceniem tvouton i cieszymy sie obrazem na tv