You are not logged in.

#1 2005-04-25 20:09:57

johnw
Member
From: London
Registered: 2005-03-22
Posts: 13

Got tv-out working but can't get a console

Hi

I have successfully managed to get my Nvidia GeForce3 (Elsa Gladiac 920?) card to output to my TV (after only 6 hours). It is a dual head card but not a twin view, so the most I can do is switch between monitor and tv, which is fine.

my xorg.config is below:

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
    Load        "dbe"      # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load       "glx"
EndSection

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

Section "Files"
    RgbPath    "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
    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/"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
EndSection

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

Section "ServerFlags"
    Option "DefaultServerLayout" "SimpleLayout"
EndSection

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

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

Section "InputDevice"

    Identifier    "Keyboard1"
    Driver    "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"    "xorg"
    Option "XkbModel"    "pc105"
    Option "XkbLayout"    "gb"
EndSection


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

Section "InputDevice"
    Identifier    "Mouse1"
    Driver    "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/input/mouse0"
EndSection

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

# Any number of monitor sections may be present

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   27-69
    VertRefresh 50-160
EndSection

Section "Monitor"
    Identifier  "TV Sony WEGA"
    HorizSync   30-50
    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"
    Driver     "vga"
#    BusID      "PCI:0:10:0"
#    VideoRam    256
#    Clocks    25.2 28.3
EndSection

# Device configured by xorgconfig:

Section "Device"
    Identifier  "GeForce3"
    Driver      "nvidia"
    Option "NoLogo" "true"
    #Screen 0
    #Option "TVStandard" "PAL-I"
    #Option "ConnectedMonitor" "CRT"
    #Option "TVOutFormat" "SVIDEO"
    #VideoRam    65536
    # Insert Clocks lines here if appropriate
    BusID  "PCI:1:0:0"
EndSection

Section "Device"
    Identifier  "GeForce3TvOut"
    Driver      "nvidia"
    #Screen 1
    Option "NoLogo" "true"
    Option "TVStandard" "PAL-I"
    Option "ConnectedMonitor" "TV"
    Option "TVOutFormat" "SVIDEO"
    BusID  "PCI:1:0:0"
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  "MonitorIiyama"
    Device      "GeForce3"
    Monitor     "My Monitor"
    DefaultDepth 24

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

Section "Screen"
    Identifier  "TVSony"
    Device      "GeForce3TvOut"
    Monitor     "TV Sony WEGA"
    DefaultDepth 16
    Subsection "Display"
        Depth       16
        Modes       "800x600" "640x480"
        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"
    Identifier  "SimpleLayout"
    Screen 0 "MonitorIiyama" 0 0
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "ServerLayout"
    Identifier  "TVLayout"
    Screen 1 "TVSony" 0 0
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


# Section "DRI"
#    Mode 0666
# EndSection

Now this all works ok, I can lauch a new X session using
X :1 -layout TVLayout
I can crtl-alt-F8 to it, and ctrl-alt-F7 back, close, fine.

So my problems are:
1. I have a monitor switch, when i boot and the switch isn't turned to the linux box, the output goes to the TV, I thought the defaultserverlayout would stop this, but it doesn't
2. Once booted up, all my virtual console are fine, but as soon as I run gnome, and/or TV they all start to look like something out of wargames with a 90pt multicoloured font. They still work, but it is totally unreadable, and a real pain
3. if I type 'DISPLAY=:1 xterm'  to launch an xterm in my TV screen, I get
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified
xterm Xt error: Can't open display: :1

in the console and

[johnw@Custard ~]$ X :1.1 -layout TVLayout
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.10-ARCH i686 [ELF]
Current Operating System: Linux Custard 2.6.10-ARCH #1 Sun Apr 24 13:44:47 UTC 2005 i686
Build Date: 16 February 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.1.log", Time: Mon Apr 25 20:43:26 2005
(==) Using config file: "/etc/X11/xorg.conf"
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/local/, removing from list!
AUDIT: Mon Apr 25 20:43:39 2005: 5729 X: client 1 rejected from local host
AUDIT: Mon Apr 25 20:43:43 2005: 5729 X: client 1 rejected from local host

in the X console, and obviously no xterm in the TV output.

I'm hoping someone may have come across some of these problems before and can help me get this going, and/or advise me on improvements to my xorg.config.  The TV's a Sony 28 wega. Failing that I hope my xorg.config is of some use
Just a shame I had mythtv running, and I reinstalled everything to try and sort out the vc problem, only to find it didn't.


cheers

John

Offline

#2 2005-04-26 10:48:12

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Got tv-out working but can't get a console

Ad 1. how about using:

Option "ConnectedMonitor" "string"
                Allows you to override what the NVIDIA kernel module
                detects is connected to your video card.  This may
                be useful, for example, if you use a KVM (keyboard,
                video, mouse) switch and you are switched away when
                X is started.  In such a situation, the NVIDIA kernel
                module cannot detect what display devices are connected,
                and the NVIDIA X driver assumes you have a single CRT.

                Valid values for this option are "CRT" (cathode ray
                tube), "DFP" (digital flat panel), or "TV" (television);
                if using TwinView, this option may be a comma-separated
                list of display devices; e.g.: "CRT, CRT" or "CRT, DFP".

                NOTE: anything attached to a 15 pin VGA connector is
                regarded by the driver as a CRT.  "DFP" should only be
                used to refer to flatpanels connected via a DVI port.

                Default: string is NULL.

ftp://download.nvidia.com/XFree86/Linux … README.txt

Ad 2 & 3. I have no experience running two separate layouts at the same time but I'm using single layout with both screens enabled by default and everything works fine (GF 4 MX 440):
http://bbs.archlinux.org/viewtopic.php?t=9699

Offline

#3 2005-04-26 11:02:24

johnw
Member
From: London
Registered: 2005-03-22
Posts: 13

Re: Got tv-out working but can't get a console

I'll give it a go this evening and let you know.
I tired already, but the rest of my xorg.config was a bit different then.

Offline

#4 2005-04-29 19:09:32

johnw
Member
From: London
Registered: 2005-03-22
Posts: 13

Re: Got tv-out working but can't get a console

aha!

just got a terminal up on the TV X server.
turned out I needed a /etc/X1.hosts file with simple
localhost
in it and all was fine.

checked out
http://www.nvnews.net/vbulletin/showthr … nextnewest
http://howtos.linux.com/howtos/XWindow- … ingx.shtml
http://www.gmpf.de/index.php/Talk:NVidia:TV-OUT

for future reference.

will go for a display manager there next.

Offline

Board footer

Powered by FluxBB