Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvtv - how exactly?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
True
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 125
Location: Vancouver

PostPosted: Sat Dec 07, 2002 9:58 am    Post subject: nvtv - how exactly? Reply with quote

Hi,

I'm not sure that I understand how nvtv is supposed to work. I've emerged it, added it to the default run level and started it up '/etc/init.d/nvtv start', but what do I do next? Am I supposed to just 'startx'? I've modified XF86Config to include my TV and if I start X then X starts up on the TV but it looks a bit fuzzy. From within X it's possible to bring up the nvtv config box but all the options look more or less bad.. well a bit fuzzy I mean. The picture also has ugly curves along the sides. Am I expecting too much? It's a nice 100Mhz widescreen TV and having seen a PC plugged into a plasma screen (it looked great!) I hoped that it would look like that too...

Is there a step that I'm missing?
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Sat Dec 07, 2002 1:50 pm    Post subject: Reply with quote

Of course you mean 100 hertz tv ;)
But i will be trying to get it to work now :) , i will let you know if i got it right(and will post the Xf86config settings here)
I got it working fine one time(before a big hd crash)
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Sat Dec 07, 2002 2:31 pm    Post subject: Reply with quote

Well I don't know for sure, but I think the tv-chip on nv cards isn't capable of exceeding 60Mhz, besides it depends on the chip how good the image quality is, but for using the desktop etc it sucks (some what fuzy and flickring), watching movies however rulez, So don't expect extreem good results,

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Sat Dec 07, 2002 2:48 pm    Post subject: Reply with quote

The screen is great with macrovision and ntsc(plus color fix), so that should fix the problem(at least the curve problem) i use the 0.4.2 btw this has alot of new options 8O
But it looks like my screens(tv,monitor) are working on 640x800 but X is still using 1280x1024, i know that i can change this with metamodes and all
Which metamodes will i need to let my monitor work at 1280x1024 and my tv at 640x480?


Edit xine's output says this:
tvmode: switching back to regular display
tvmode: cannot find any valid TV mode - TV output disabled
tvmode: switching back to regular display
tvmode: disconnected
Back to top
View user's profile Send private message
True
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 125
Location: Vancouver

PostPosted: Sat Dec 07, 2002 3:52 pm    Post subject: Reply with quote

Rick, here's the relevant part of my XF86config file, maybe some of it'll be useful..

Code:

Section "Monitor"
        Identifier "Monitor0"
        ModelName "PAL TV"
        VendorName "Unknown"
        VertRefresh 60
        HorizSync 30-50
EndSection

Section "Screen"
         Identifier   "Screen0"
         Device       "GeForce II"
         Monitor      "Monitor0"
         DefaultDepth    24
         Option "TwinView" "On"
         Option "TVStandard" "PAL-B"
         Option "SecondMonitorHorizSync" "30-50"
         Option "SecondMonitorVertRefresh" "60"
         Option "MetaModes" "800x600,800x600;640x480,640x480"
         Option "TwinViewOrientation" "Clone"
         Option "ConnectedMonitor" "TV"
   
         Subsection "Display"
         Depth       24
         Modes       "800x600" "640x480"
EndSubsection


t think I was expecting rather more than is possible. Basically I just wanted to get rid of my monitor and use the PC as a jukebox (xmms with big fonts and a wireless keybourd). It's not too bad, I just thought it might be better. BTW, there doesn't seem to be an ebuild for 0.4.2. Perhaps I'll just grab the source code..
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Sat Dec 07, 2002 6:36 pm    Post subject: Reply with quote

Thx now my tv-out is working again :D
I just need to copy my XF86Configs if i want to watch a dvd, but that's much better then going back to that crappy *W* word OS ;)
Back to top
View user's profile Send private message
den_RDC
Apprentice
Apprentice


Joined: 25 Aug 2002
Posts: 166
Location: beercountry, Belgium;)

PostPosted: Sun Dec 08, 2002 8:31 pm    Post subject: Reply with quote

i just finished installing 1.4 (fresh install) on my tv pc... when i was trying to do emerge nvtv i got the following error : Xxf86vm video mode extensions library required .. strange is, i do have that lib (it's located in /usr/X11R6/lib wich seems the right place for it to be in) ...
How do i fix this one (bar dld'ing nvtv sources myself, but i'd like to keep the system portage only)?

btw, Xfree4.2.1
Back to top
View user's profile Send private message
kybber
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 228
Location: Trondheim, Norway

PostPosted: Mon Dec 09, 2002 8:58 am    Post subject: Reply with quote

RickDB: You can use

Code:
startx -- -layout Some_Server_Name


to avoid copying the XF86Xonfig file. Just add a second server-layout for TV out to your XF86Config.
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Mon Dec 09, 2002 12:56 pm    Post subject: Reply with quote

With X i am kinda a n00b when it comes to tv-out(i got it to work one time but i don't remember how)
So can you maybe say what i need to add to the config to make a seconde server.
My XF86Config:

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

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"

# The chipset line is optional in most cases. It can be used to override
# the driver's chipset detection, and should not normally be specified.

# Chipset "generic"

# The Driver line must be present. When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module. Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

Driver "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for. When this line isn't present, a device
# section can only match up with the primary video device. For PCI
# devices a line like the following could be used. This line should not
# normally be included unless there is more than one video device
# intalled.

# BusID "PCI:0:10:0"

# VideoRam 256

# Clocks 25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
Identifier "322"
Driver "nvidia"
# unsupported card
#VideoRam 128000
# Insert Clocks lines here if appropriate
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 "Screen 1"
Device "322"
Monitor "My Monitor"
DefaultDepth 24

Subsection "Display"
Depth 8
Modes "640x480" "800x600" "1024x768" "1280x1024"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "640x480" "800x600" "1024x768" "1280x1024"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection

And my tv-out config looks like this:

Section "Screen"
Identifier "Screen 1"
Device "322"
Monitor "My Monitor"
DefaultDepth 24
Option "TwinView" "On"
Option "TVStandard" "PAL-G"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "MetaModes" "800x600,800x600;640x480,640x480"
Option "TwinViewOrientation" "Clone"
Option "ConnectedMonitor" "TV"

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


Thx in advance,

RickDB
Back to top
View user's profile Send private message
kybber
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 228
Location: Trondheim, Norway

PostPosted: Mon Dec 09, 2002 3:02 pm    Post subject: Reply with quote

Copy and paste your screen section from the TV out XF86Config file into your primary XF86Config. Make sure the two screen sections have different names (Singlescreen vs. TVscreen, for instance). Then duplicate your current ServerLayout part in your XF86Config. Give the two serverlayouts different names (Identifier), for instance Standalone and TV. Let one of them contain the line 'Screen "Singlescreen"' whereas the other contains the line 'Screen "TVscreen"'.
Now you can run the TV-configured X server by typing startx -- -layout TV at the console. I think (better check this) the default is that the first serverlayout will be used if none are specified, so letting your regular serverlayout be the first one will prevent you from having to type more than 'startx' in those cases. You can easily make a script to simplify the selection process further.
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Mon Dec 09, 2002 5:18 pm    Post subject: Reply with quote

Thx for the help, but it gives an error when trying to startx(X won't start on boot with the new config):



Code:

rick@Tux X11 $ startx -- -layout TV
net-tools 1.60
hostname 1.100 (2001-04-14)
hostname: Unknown host




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.




Are these settings ok i did i forget something:

Code:

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

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset   "generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

    Driver     "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam   256

#    Clocks   25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
    Identifier  "322"
    Driver      "nvidia"
   # unsupported card
    #VideoRam    128000
    # Insert Clocks lines here if appropriate
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 "Singlescreen"
    Identifier  "Screen 1"
    Device      "322"
    Monitor     "My Monitor"
    DefaultDepth 24

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

Section "TVscreen"
    Identifier  "Screen 1"
    Device      "322"
    Monitor     "My Monitor"
    DefaultDepth 24
    Option "TwinView" "On"
    Option "TVStandard" "PAL-B"
    Option "SecondMonitorHorizSync" "30-50"
    Option "SecondMonitorVertRefresh" "60"
    Option "MetaModes" "800x600,800x600;640x480,640x480"
    Option "TwinViewOrientation" "Clone"
    Option "ConnectedMonitor" "CRT,TV"

# **********************************************************************
# 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  "Standalone"

# 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 "Singlescreen"

# 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

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "TV"

# 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 "TVscreen"

# 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
Back to top
View user's profile Send private message
kybber
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 228
Location: Trondheim, Norway

PostPosted: Tue Dec 10, 2002 8:21 am    Post subject: Reply with quote

Ah, yes. My explanation was perhaps a bit dubious. You need to make two quick adjustments:
The following code
Code:
Section "Singlescreen"
    Identifier  "Screen 1"

should be:
Code:
Section "screen"
    Identifier  "Singlescreen"

Similarly for the TV screen:
Code:
Section "screen"
    Identifier  "TVscreen"

I'm not at by laptop right now, so I can't check this. But please just try it out and let me know if you have any further problems.

Edit: Seems you are also missing an EndSection for your last screen section.
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Tue Dec 10, 2002 3:30 pm    Post subject: Reply with quote

Ok i fixed it i can run it from init1(login as root etc..) but when kdm is already running on screen1(the monitor) it get this error:

Code:

rick@Tux rick $ startx -- -layout TV
net-tools 1.60
hostname 1.100 (2001-04-14)
hostname: Unknown host


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.


My new XF86Config(made a few monitor adjustments):

Code:


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

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   50-95

#    HorizSync   30-64         # multisync
#    HorizSync   31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync   15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 50-160

EndSection

Section "Monitor"

    Identifier  "My Monitor2"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   30-50

#    HorizSync   30-64         # multisync
#    HorizSync   31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync   15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 60

EndSection

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

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset   "generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

    Driver     "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam   256

#    Clocks   25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
    Identifier  "322"
    Driver      "nvidia"
   # unsupported card
    #VideoRam    128000
    # Insert Clocks lines here if appropriate
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  "Singlescreen"
    Device      "322"
    Monitor     "My Monitor"
    DefaultDepth 24

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

Section "screen"
    Identifier  "TVscreen"
    Device      "322"
    Monitor     "My Monitor2"
    DefaultDepth 24
    Option "TVStandard" "PAL-B"

    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "640x480" "800x600"
        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  "Standalone"

# 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 "Singlescreen"

# 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
# **********************************************************************
# 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  "TV"

# 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 "TVScreen"

# 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



So it looks like the X server won't let me run 2 screens at once any ideas?



Edit: hmm when i alt-control-backspace out of kde i get no screen on my monitor and all weird stripes on my tv.
Back to top
View user's profile Send private message
Zarx
n00b
n00b


Joined: 09 Dec 2002
Posts: 7

PostPosted: Tue Dec 10, 2002 9:52 pm    Post subject: Reply with quote

RickDB wrote:
Ok i fixed it i can run it from init1(login as root etc..) but when kdm is already running on screen1(the monitor) it get this error:

Code:

rick@Tux rick $ startx -- -layout TV
net-tools 1.60
hostname 1.100 (2001-04-14)
hostname: Unknown host


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.


So it looks like the X server won't let me run 2 screens at once any ideas?


Yes, you should run "startx -- :1 -layout TV" to make them both run at once. You could also add vt8 or something else to make it run on the desired virtual terminal. vt8 = Alt-F8. Check the man page of XFree86 for more info.

Good Luck!
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Tue Dec 10, 2002 10:03 pm    Post subject: Reply with quote

Alright its working great now, thx again for the help :)
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Sun Jun 29, 2003 10:15 pm    Post subject: Reply with quote

Damn....so cool tip 8) I love the idea of running two X, one for TV and one for normal staff :) So I can keep working normally while my wife watches Friends (i know, i know...)

But it doesn't work....After typing
Code:
startx -- :1 -layout TV vt8
I get my blackbox as usual, but there is no picture on TV :x

Here is my Xfree config file:
Code:
Section "Module"
    Load        "dbe"  # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "speedo"
    Load       "glx"
EndSection


Section "Files"
    RgbPath"/usr/X11R6/lib/X11/rgb"
    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/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection


Section "ServerFlags"
EndSection
Section "InputDevice"
    Identifier"Keyboard1"
    Driver"Keyboard"
    Option "AutoRepeat" "500 30"
    #Option "XkbRules""xfree86"
    Option "XkbModel""microsoftpro"
    Option "XkbLayout""fi"
    #Option "XkbVariant""fi-latin1"
EndSection


Section "InputDevice"
    Identifier"Mouse1"
    Driver"mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/usbmouse"
    Option "ZAxisMapping""4 5"
EndSection
Section "Monitor"
    Identifier  "SOny"
    HorizSync   30-70
    VertRefresh 48-120
EndSection
Section "Monitor"
    Identifier  "TVs"
    HorizSync   30-50
    VertRefresh 60
EndSection
Section "Device"
    Identifier"Standard VGA"
    VendorName"Unknown"
    BoardName"Unknown"
    Driver     "vga"
EndSection


Section "Device"
    Identifier  "GeForce"
    Driver      "nvidia"
    VideoRam    65536
    #Option "TwinView" "on"
    #Option "ConnectedMonitor" "CRT,TV"
    #Option "TwinView"
    #Option "SecondMonitorHorizSync" "33-50"
    #Option "SecondMonitorVertRefresh" "60"
    #Option "TwinViewOrientation" "Clone"
    #Option "TVStandard" "PAL-B"
    #Option "SecondMonitorHorizSync" "30-50"
    #Option "SecondMonitorVertRefresh" "50"
    #Option "TwinViewOrientation" "clone"
    #Option "MetaModes"  "1280x1024,NULL;1024x768,1024x768"
EndSection


Section "Screen"
    Identifier  "Monitor"
    Device      "GeForce"
    Monitor     "SOny"
    DefaultDepth 16
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection


Section "screen"
    Identifier  "TVscreen"
    Device      "GeForce"
    Monitor     "TVs"
    DefaultDepth 24
    Option "TVStandard" "PAL-B"
    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
Endsection


Section "ServerLayout"
    Identifier  "Standalone"
    Screen "Monitor"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "ServerLayout"
    Identifier  "TV"
    Screen "TVScreen"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Mon Jun 30, 2003 9:02 am    Post subject: Reply with quote

hm...
You know you don't need to customize your XF86Config, it's sufficient to type
Quote:
$ nvtv

as root to run this app. You can set all parameters and the resolution in there.
At least it worked fine this way for me.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Mon Jun 30, 2003 4:19 pm    Post subject: Reply with quote

Master_Of_Disaster wrote:
hm...
You know you don't need to customize your XF86Config, it's sufficient to type
Quote:
$ nvtv

as root to run this app. You can set all parameters and the resolution in there.
At least it worked fine this way for me.


The funny thing is that I tried nvtv and I got fuzzy image on computer and even worse on TV. I would wont 800x600 reso on TV and monitor. I have a widescreenTV and when I selected 800x600 16:9 it showed sucky quality image on tv and half of screen on my monitor :roll:
_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
sortkatt
n00b
n00b


Joined: 05 Mar 2003
Posts: 13

PostPosted: Sun Jul 27, 2003 6:52 pm    Post subject: nvtv aint the way to go as of yet.... Reply with quote

Quote:

The funny thing is that I tried nvtv and I got fuzzy image on computer and even worse on TV. I would wont 800x600 reso on TV and monitor. I have a widescreenTV and when I selected 800x600 16:9 it showed sucky quality image on tv and half of screen on my monitor


Your tv isn't able to show that resolution unless it supports HDTV, and AFAIK the s-video/composite can't even show that. But i might be wrong :) Mine is a PAL and it supports 720:576. PAL has higher resolution than NTSC. Some scaling must be done by the screen-card. The reason to choose 800:600 is to get smaller icons.

There are some things that limit the usage of the nvidia in tv-out mode
1. Ramdac
2. State of the coded drivers

"Old" gpus came with only one ramdac, that is a processor being able to handle the graphics and send them to the different ports at the back of the card (CRT, TV and later DVI). When the first cards with possibilities to output on multiple screens (CRT+CRT, CRT+TV) there were some graphic cards that had two ramdacs (e.g. some matrox-types) and some that only had one, but given the possibility to output to tv-out too (e.g. nvidia). The way they were able to use the tv-out were to simple tricks like just sending the grapical data straight through the tv-out port without doing anything other than scaling it to fit a normal tv-set. This trick is what later has been called an unaccelerated output to your tv-out port.

The meaning of the term unaccelerated output is that you don't use the gpus abillities in terms of 3d-effects and other hardware-oriented refinings of the data sent through the card. This is very cheap and simple in terms of the complexity of the gpu. Having two ramdacs is like having two gpus on a card and only in the latest models of the well known version of the NVIDIA cards have we seen multiple ramdacs, but now they do it because there are more and more demand of being able to have two displays simultaneously (crt+crt or dvi+dvi)

So the question is what type of gpu you have, and how many ramdacs this card has. My guess is that it only has one. This is information they tend to hide from the buyer, since the buyer sees the term "with tv-out abillities" and does not think of what lies beneath (so to speak:) When i was in my youth and used that bloated m$ windows, there were only limited drivers for tv-out abillities.

I had the desktop on my crt or the tv, not both (limitation of early drivers and only one ramdac). This is not very cool, and i thought to my self "there must be a better way than this!" When i did my big change (converting to linux) i was eager to search out the tv-out possibilities in a land of much open source and many bright minds. Sadly i was dissapointed when i found out that yes, there were drivers for my card (nvidia then) that were updated regularly (and limited support for games), but no there were not great abillities as of yet in terms of tv-out capabilities.

What i wanted was to have the desktop for myself, and the tv showing the movie and only that. Because of the ramdac problem (so i could not assign another xsession to do the movie-bit, and have another xsession for my desktop) i was only able to use one or the other. With two sessions one of them went black when i used the other. Later when drivers in the wonderful-world-of-windows emerged that gave the possibility to have only unaccellerated tv-out on the tv while still keeping your desktop on some nvidia-cards with only one ramdac,, i got my hopes refreshed and starting to search for misc hacks to find sollutions in linux.

One of the things i tested was nvtv, a program i gave up on pretty quick
nvtv is a program that messes around with the internal registers of the nvidia-type cards to start and stop the tv-out display and do alterations when it comes to scaling, fitting and positioning. As some of you have tried and found out, changing the resolution and starting the tv-out may distort one or both of the displays and they both seem somewhat dependant (crt changes the resolution when tv-out is on). And there aren't anything that says that this/that setting will be the best on your tv. The reason for this is that the program just gives you the abillity to do alterations, with a list of different possibilities. The last version i played with only had a wide load of different screen-resolutions and some sets for the registers in the card, but no super-sollution. Thats why you sometimes get a distorted signal on one or both. I wasn't satisfied with having a blinking resized screen on the crt so i quit the program and moved on.

Most of the time i used the trick of having two sessions, one for desktop and one for movies to play my videos and dvds and using ctrl+alt+f7 and ctrl+alt+f8 to change between desktop/tv. But that wasn't satisfying, cause i don't want to put alot of energy into playing a video. I want load file, play file. not start new session, start tv output, load file by browsing for the movie on my tv-set which isn't easy cause of the blurry text on all the apps. Believe me, it will become quite tedious...

So i did a search for an irc-channel with people helping other people with nvidia. I found #nvidia on freenode.net (same as the main #gentoo-channel is on) and through a link they always have in their topic

http://www.sh.nu/nvidia

This page explains the wonders of the twinview function. This is a part of the nvidia-drivers for xfree86 and there is alot of information about it in the documentation and i don't know why people don't see this, cause its very well written. Well... I missed it for a good 5 months :oops:

Twinview is the name of the feature that nvidia uses when other gpu-vendors uses names like double-headed, double-ramdac or multiple outputs. It means having more than one thing connected to your gpu and them all being usable for the xfree-desktop. The same abillity for double windows-desktops or cloning-effect with the tv-out in that part of the camp.

Twinview in its simple form lets you set up your xfree to show the xfree-session on different units at once. You can either clone your screen, or have it like an add-on to the crt (which they call RightOf or LeftOf indicating where the second display should be on the screen). Setting up this is beyond the scope of this document (always wanted to say that). Its covered extensively in the docs and in the XF86config in the page i mentioned.

Ah... But there is a catch. Twinview means that you can have both your crt and your tv connected at the same time, but according to the physics of your gpu there are some limitations to the tv-part of the output. For instance; if you have only one ramdac, you would not be able to play an OpenGL based game on the tv, using this method. This is because of nvidia choosing to not implement an extra ramdac, cause they weren't aiming for the multi-display market at first, and one ramdac per card is much cheaper. This also has some limitations on what output works for viewing movies (e.g the different -vo outputs in mplayer). Newer nvidia-cards has multiple ramdacs, but i know so little about these new cards and the new drivers, but nvidia spews out new drivers all the time, so if they arent supported fully on the tv-out bit, they are sure to be in the relatively near future. Nvidia-people are quite nice, when all comes to all.

One of the problems that emerged when using twinview (LeftOf/RightOf) was this:
"But the icon-bar is shown in two pieces, one for the crt and one for the tv!"

I know. Its just how it is. The meaning of Twinview is to have two displays, we are only using that to have xsession run on both crt and tv at the same time. In all respects (unless of course the unaccelerated bit) the tv is the rest of the screen. So if you want to use twinview in the LeftOf or RightOf mode you better switch to openbox and disable the bar at the end (cause openbox is sweeeeeet!). For people using kde or gnome the clone-way of doing this might be the solution.

When using Twinviews clone-function, the crt and the tv shows the same, so your icons and desktop isn't farked. You might notice that the tv is not the same resolution as the crt and that the tv only shows part of the screen which is decided by the positioning of the mouse-pointer (this is of course according to how you set up your xfree in terms of screen resolution). The quick fix of this is to use mplayers resize and positioning-function to show the movie in the top left of your screen in the tvs screenresolution (you can brag all you want about Xine. Not having command-line arguments is stupid in a posix-based world).

so i made an alias...
arg! which i don't remember and can't find. People please advise

Code:
 alias playfile="mplayer -vo something -ao something resizethingyicantremember "


This is not quite as clean and straightforward as the LeftOf/RightOf way (there they are free to set the resolution as the see fit), but at least you can start the movie with something like

Code:

 playfile /home/my.favorite.illegaly.downloaded.nature.programs/the.wonders.of.the.cod.avi


I haven't touched a nvidia in a long time, so i don't know if there is a way to make the tv-output resized to show all the desktop. But i did not put much thought into this, cause it worked, and i like to have my irssi running in the bottom of the screen.

Hope this will be helpful, and im sorry it turned into such a rant :oops:

There are some things i haven't tried out for nvidia-cards. Thats framebuffer. I love framebuffers. Framebuffers means that i can send information straight to the gpu, which means that i have really sweet terminals in 1280x1024@75Hz instead of the 80x40 (in chars) or whatever. There are different support for different cards, cause framebuffers are methods which emerged in its fullest aproximately in 1994, and got somewhat lost in the meantime before it emerges again (linux-penguin in the startup and directfb DIRECTFB DIRECTFB!!!). There are support for the nvidia with some code for the riva-chip in the kernel, but i did not try this out, cause it would not start. DirectFB has support for many known gpus (nvidia included) and mplayer supports playing movies on the framebuffer. There might be a possibility that you can use mplayer to play only the video with nvidia-cards. Havent tried it and havent heard about anybody going to that step. Well i demand more! And i think the method of showing your desktop to be able to view a movie is rather cumbersome...

I am currently a happy owner of a g550. Only one ramdac but there are fortunately people that have been reverse engenee... engenieee... engensomething the bits and pieces of the registers on that and similar cards from the same vendors so that i can play my movies with this command:

Code:

mplayer -vo dfbmga:nospic -vop expand=720:576,scale=680:-2 -ao alsa9 the.wonderful.cod.avi


This makes use of DirectFB which gives me the movie on the tv as the only thing outputted. This is what i have been searching for all my grown life, but that means that i lose my desktop while im watching the movie. But we can't have it all can we?

But I must admit that the movie on my tv look sweeeeeet! :D
_________________
-this is a signature
Back to top
View user's profile Send private message
puregenius
n00b
n00b


Joined: 24 Sep 2002
Posts: 56

PostPosted: Wed Jul 30, 2003 3:24 pm    Post subject: on B&W on TV out Reply with quote

Hi, I am using a Xinerama and TwinView setup to use my TV and a second monitor.
I seem to have everything setup fine. The TV is to the left of the monitor and windows can be dragged across... cloning doesn't seem to work, but that doesn't bother me too much.
The only problem i have is that the display appears in black and white.
The TV only works when i use it in a depth of 24, and a resolution of 1024x768.
I have it running from the S-Video out of my Nvidia Ti 4200 to the scart socket of my TV.
Movies with mplayer look great, but i would love colour.
Also, the TV can do both NTSC and PAL, its a european tv, but bought for that feature so an american PS2 would work with it.
Thanks
alex
_________________
--
Alex Wasserman

Me just me, but i might be like you too...
Back to top
View user's profile Send private message
sortkatt
n00b
n00b


Joined: 05 Mar 2003
Posts: 13

PostPosted: Thu Jul 31, 2003 11:24 pm    Post subject: B&W on TV out Reply with quote

Quote:


The only problem i have is that the display appears in black and white.
....
Also, the TV can do both NTSC and PAL, its a european tv, but bought for that feature so an american PS2 would work with it.


There might be some setting to change from NTSC to PAL, but if thats not the problem, then maybe this is:

The Scart has lotsof connectors. and there are more than one way to connect through the scart-cable. There is AFAIK three ways:

Composite = one pair of connectors (the same as the phono-plug many might have on the front of the tv (to connect f.ex. camcorders)
s-video = two pairs of connectors (small round thing that looks like ps/2-plug)
RGB = three pairs of connectors where each pair is the colors RED, GREEN and BLUE

the scart-converter-thingomabob just makes a connection with two pair on the back of your tv, but you also have to set up the tv to use s-video and not composite. Have had this problem myself, but there was always a quick fix to set one of the scarts (av1,av2,av3) to use s-video. Its on some menu... :) If you have a relatively new tv that should be it. If its a really old and stripped one, it might only support composite-signal. If so you need a converter on the gpu-port.

Hope this is helpful and that you are given colours[/quote]
_________________
-this is a signature
Back to top
View user's profile Send private message
puregenius
n00b
n00b


Joined: 24 Sep 2002
Posts: 56

PostPosted: Fri Aug 01, 2003 1:39 pm    Post subject: Thanks for the help Reply with quote

Turns out that using NTSC-M and COMPOSITE fixed it.
I read that scart can actually delver all three if its a good scart socket and so tried different values. Guess the TV picked up one and sorted it out.
_________________
--
Alex Wasserman

Me just me, but i might be like you too...
Back to top
View user's profile Send private message
bushwakko
Guru
Guru


Joined: 25 Mar 2003
Posts: 495

PostPosted: Wed Aug 13, 2003 10:51 pm    Post subject: tearing Reply with quote

the big problem I have with running multiple screens, both TwinView and and two monitors and two screens is that I get Tearing on the TV. It's just like playing a game when having lots of fps and low hz.... If I only run one X with just the TV I don't get this annying shit. should be some vsync stuff or something to fix this.
_________________
Macbook Pro 15"
Core 2 Duo 2,33ghz
2gb Ram
ATI Mobility x1600 256mb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum