Code: Select all
$export DISPLAY=":1.0"
$mplayer xyz.aviPlease do not suggest nvtv or using one X-Screen with TwinView. I know they exist, but they don't serve my purposes.
Thanks in advance.

Code: Select all
$export DISPLAY=":1.0"
$mplayer xyz.avi
Code: Select all
Section "Device"
Identifier "GeForce4 TI4200"
Driver "nvidia"
VideoRam 131072
# Insert Clocks lines here if appropriate
Option "CursorShadow" "true"
Option "CursorShadowAlpha" "150"
Option "CursorShadowXOffset" "4"
Option "CursorShadowYOffset" "2"
Option "NoLogo" "on"
Option "TwinView"
#Option "TwinViewOrientation" "Clone"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "MetaModes" "1152x864, 800x600 @800x800; 1024x768, 800x600; 800x600, 640x480"
Option "TVStandard" "NTSC-M"
EndSection
Code: Select all
#Section "ServerFlags"
# Option "Xinerama" "true"
#EndSection
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0"
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "speedo"
Load "type1"
Load "xinerama"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/misc/psaux"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Device"
Identifier "nvidia0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV25 [GeForce4 Ti 4200]"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "nvidia1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV25 [GeForce4 Ti 4200]"
BusID "PCI:1:0:0"
Screen 1
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "TVStandard" "PAL-B"
EndSection
Section "Screen"
Identifier "Screen1"
Device "nvidia1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen0"
Device "nvidia0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
# Modes "1280x1024,1024x768,800x600"
EndSubSection
EndSection


Code: Select all
Section "Monitor"
Identifier "Hitachi CM611"
HorizSync 31-92
VertRefresh 50-120
# for 100dpi
DisplaySize 327 248
EndSection
Section "Monitor"
Identifier "TV"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Device"
Identifier "nvidia0"
VendorName "NVidia"
BoardName "Ti 4200"
# Chipset "generic"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NvAGP" "1"
Option "NoLogo" "1"
# Option "DigitalVibrance" "1"
# Option "RenderAccel" "1"
# Option "ConnectedMonitor" "CRT"
# Option "UseEdidFreqs" "false"
Screen 0
# VideoRam 256
# Clocks 25.2 28.3
EndSection
Section "Device"
Identifier "nvidia1"
Driver "nvidia"
# Option "DigitalVibrance" "1"
# Option "RenderAccel" "1"
# Option "ConnectedMonitor" "TV"
# Option "UseEdidFreqs" "false"
BusId "PCI:1:0:0"
Screen 1
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "TVStandard" "PAL-B"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen0"
Device "nvidia0"
Monitor "Hitachi CM611"
DefaultDepth 24
DefaultFbBpp 32
Option "NvAgp" "1"
Option "NoLogo" "true"
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "Screen"
Identifier "Screen1"
Device "nvidia1"
Monitor "TV"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubsection
EndSection
# **********************************************************************
# ServerLayout sections.
# **********************************************************************
# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.
Section "ServerLayout"
# The Identifier line must be present
Identifier "Simple Layout"
# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens. The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen. In this example, screen 2 is located to the
# right of screen 1.
Screen 0 "Screen0"
Screen 1 "Screen1" RightOf "Screen0"
# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used. Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

OK, it's working now. Thanks for the hint. By the way, I use "xhost +localhost", which isn't as much of a security hazard as "xhost +". For people more concerned about security, there is also xauth.DiS-K wrote:Err, error opening display 1:0 ? You should use DISPLAY=:0.1

Code: Select all
#!/bin/bash
xhost +localhost
DISPLAY=":0.1"
exec /usr/bin/mplayer "$1"



Hi! Usually(on all nvidia cards I've seen) you get a VGA-out, a S-video-out, and sometimes a DVI out. So far, every single nvidia card I have touched (which isn't part of an n-force mobo), includes a cable that seperates the signal into s-video and composite, and Gainward have delivered the best so far; four outputs, two of each. What I currently use to connect to my TV is just a long composite cable, and a scart-"head" for it, which I plug in my TV.dishkuvek wrote:What kind of connection is on the back of the card and through what method do you go about connecting the card to the TV (type of connection on TV)?

By all means, yes! The game will nicely fill your TV screen, leaving your monitor completely unaffected. I might also mention that those ugly black bars on the left and right are not any more. There is an overscan parameter in the new nvidia drivers, but it turns out that the default is right for me.helmers wrote:Is it possible to export the display this way, and play a game, like tuxracer or quake3 on the TV?
I feel that way, too.Because TwinView with the clone option uses both devices, and is not exactly perfect.
You could probably modify the "ServerLayout" part of XF86Config, and change "RightOf" to "LeftOf", or "TopOf", and thus place it a bit less intrusive. On Windows, I usually place it on the "top middle", because I rarely "toss" the mouse in that direction.Kenadin wrote:I have my geforce working like yours now, but i was wondering if it is possible to prevent the mouse from going to the tv. Currently if I move my mouse to the right past the edge of the screen it goes to the tv. I don't want that to happen.
It would be great if you could somehow toggle the mouse going to the TV. That way you could disable it while you're not using TV-output and enable it when you need to use mouse there.helmers wrote:You could probably modify the "ServerLayout" part of XF86Config, and change "RightOf" to "LeftOf", or "TopOf", and thus place it a bit less intrusive. On Windows, I usually place it on the "top middle", because I rarely "toss" the mouse in that direction.
I second this one. And it should be easy to toggle, perhaps something like "ctrl+shift+alt". Is this possible to do with standard tools, dear hackers?yartz wrote:It would be great if you could somehow toggle the mouse going to the TV. That way you could disable it while you're not using TV-output and enable it when you need to use mouse there.

Chris Finch wrote:ok, i'll check that, and try to recompile Xfree. thanks for the advice.helmers wrote: jief: I've never had that problem. Have you closely followed the nvidia docs as to which modules not to include in XF86Config, etc? Also, there is a troubleshooting FAQ in there, maybe it helps. At last, look at the end of /var/log/XFree86.0.log, that might give you a clue.