View Single Post
Old 02-23-04, 04:42 PM   #2
W0D0!CLiff0rd
Registered User
 
Join Date: Feb 2004
Posts: 2
Send a message via ICQ to W0D0!CLiff0rd
Default

If you can read german this might interest you:
http://www.iofcea.de/cgi-bin/seite.pl?file=linuxtvout

If not, a brief overview:
- You don switch your existing X-server to the TV
- instead you start another one (accessible with alt+F8 when its started, switch back using alt+F7)

- configure your /etc/X11/XF86Config(-4)
mine looks like this:
__________________________________________________ _________

############## Changelog ################################################## ##########
# 14.02.2004: added Monitor off feature: in Monitor Section and Server Layout Section
#
#
#
################################################## ###################################

Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the Type1 and FreeType font modules
Load "type1"
Load "freetype"

# This loads the GLX module
Load "glx"

EndSection

# ************************************************** ********************
# Files section. This allows default font and rgb paths to be set
# ************************************************** ********************

Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"

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


EndSection

# ************************************************** ********************
# Server flags section.
# ************************************************** ********************

Section "ServerFlags"

EndSection

# ************************************************** ********************
# Input devices
# ************************************************** ********************

# ************************************************** ********************
# Core keyboard's InputDevice section
# ************************************************** ********************

Section "InputDevice"

Identifier "Keyboard1"
Driver "Keyboard"

Option "AutoRepeat" "500 30"

# Option "XkbDisable"

Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"

EndSection


# ************************************************** ********************
# Core Pointer's InputDevice section
# ************************************************** ********************

Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "6 7"
Option "Buttons" "7"
Option "Resolution" "1500"
Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"

EndSection



# ************************************************** ********************
# Monitor section
# ************************************************** ********************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "CTX VL710"
HorizSync 31.5-96
Modeline "1152x864" 120.00 1152 1208 1336 1488 864 865 868 896 +hsync +vsync
VertRefresh 60-120
Option "DPMS"

EndSection





Section "Monitor"

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

EndSection


# ************************************************** ********************
# Graphics device section
# ************************************************** ********************


Section "Device"
Identifier "GF4 Ti-4200"
Driver "nvidia"
VideoRam 131072
Option "NvAGP" "1"
Option "NoLogo" "True"
Option "HWCursor" "True"
Option "CursorShadow" "on"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "2"
Option "CursorShadowYOffset" "2"
EndSection




Section "Device"
BoardName "GF4 Ti-4200"
BusID "1:0:0"
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" "COMPOSITE"
Option "TVStandard" "PAL-B"
Option "ConnectedMonitor" "TV"
EndSection


# ************************************************** ********************
# Screen sections
# ************************************************** ********************


Section "Screen"
Identifier "Monitor"
Device "GF4 Ti-4200"
Monitor "CTX VL710"
DefaultDepth 24
Option "ConnectedMonitor" "CRT"

Subsection "Display"
Depth 8
Modes "640x480" "800x600" "1024x768" "1280x1024"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1152x864" "1280x1024" "1024x768"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1152x864" "1280x1024" "1024x768"
Virtual 1152 864
ViewPort 0 0
EndSubsection
EndSection


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



# ************************************************** ********************
# ServerLayout sections.
# ************************************************** ********************

Section "ServerLayout"
Identifier "Simple Layout"
Screen "Monitor"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
Option "Offtime" "15"
EndSection


__________________________________________________ __________

Make your appropriate changes and save it. Then restart X!

You should now be able to start another X Server. Much easier is to just start a Movie with this script here:

__________________________________________________ __________

#!/bin/bash
X -screen TV :1 -ac & sleep 2; DISPLAY=:1 xine --fullscreen "$1" && kill
`ps aux | awk '/X\ -screen/ {print $2}' `
__________________________________________________ __________

Save the text above to a file and make it executable using
# chmod u+x filename

Then start the script using:
# filename /path/to/movie/moviefilename.extension

Just kill the TV-Out with ctrl+alt+backspace, you will return to your first X-Server. Or use Alt+F7 and Alt9F8 to switch between both of course.

The best solution I have met til now

Cheers
The CLiff
__________________
Im a medic!
W0D0!CLiff0rd is offline   Reply With Quote