Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-23-04, 01:22 PM   #1
LasseTK
Registered User
 
Join Date: Feb 2004
Posts: 2
Send a message via ICQ to LasseTK
Question How to use TV-out ?

I am a total n00b to Linux, but have somehow managed to get everything to work proberly (I think) so far.
Well here it is:

How do I use TV-out!? I can't seem to find the function anywere?

I am using Mandrake 9.2
LasseTK is offline   Reply With Quote
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
Old 02-24-04, 03:30 AM   #3
sehh
GFX 5600 VideoSuite
 
Join Date: Oct 2002
Posts: 60
Default

I'm using a similar method to watch movies, my script is:

#!/bin/sh
unset DISPLAY
unset XAUTHORITY
xinit $* -- :1 -screen Screen1


W0D0!CLiff0rd, have you managed to have both the computer
monitor out and the TV out running at the same time?

Because when i switch to TV out, my LCD goes blank
sehh is offline   Reply With Quote
Old 02-24-04, 11:33 AM   #4
LasseTK
Registered User
 
Join Date: Feb 2004
Posts: 2
Send a message via ICQ to LasseTK
Default

It still doesn't work, and I don't understand it! I get the following error:
Fatal server error:
-----------------------------------------------------------------
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org.

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

giving up.
xinit: unable to connect to X server
xinit: No such process (errno 3): Server error.
------------------------------------------------------------------

I have configured my XF86Config-4 as the following:
------------------------------------------------------------------
# File generated by XFdrake.

# ************************************************** ********************
# Refer to the XF86Config man page for details about the format of
# this file.
# ************************************************** ********************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
#DontZap # disable <Crtl><Alt><BS> (server abort)
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "/usr/X11R6/lib/modules/extensions/libglx.so"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "dk"
Option "XkbOptions" ""
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/usbmouse"
Option "ZAxisMapping" "6 7"
EndSection

# **************************
# Monitors
# **************************

Section "Monitor"
Identifier "Targa1"
VendorName "Targa"
ModelName "Targa TM-xxxx, 19 Inch Monitor"
HorizSync 30-70
VertRefresh 50-130

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

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

# **************************
# Grafikkort
# **************************

Section "Device"
Identifier "device1"
VendorName "NVidia"
BoardName "NVIDIA GeForce4 (generic)"
Driver "nvidia"
Option "DPMS"
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

# *****************************
# Screens
# *****************************

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "Targa1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 15
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 16
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 24
Virtual 1280 1024
EndSubsection
EndSection

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

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"
EndSection
----------------------------------------------------------------------

What am I doing wrong !?

I have tryed the following:
----------------------------------------------------------------------
#!/bin/bash
X -screen TV:1 -ac & sleep 2; DISPLAY=:1 xine --fullscreen "$1" && Kill
`ps aux | awk '/X\ -screen/ {print $2}'`
----------------------------------------------------------------------

and
----------------------------------------------------------------------
#!/bin/sh
unset DISPLAY
unset XAUTHORITY
xinit $*--:1 -screen Screen1
----------------------------------------------------------------------

Non of them seem to work and I get the error
LasseTK is offline   Reply With Quote
Old 02-24-04, 06:03 PM   #5
sehh
GFX 5600 VideoSuite
 
Join Date: Oct 2002
Posts: 60
Default

My script (the second one you mention) wouldn't work anyway because
you dont have a Screen1 defined. You'd have to rename it to TV.
sehh is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:00 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.