LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 07-22-2008, 10:31 AM   #1
Wurstbrot
LQ Newbie
 
Registered: May 2006
Distribution: Gentoo
Posts: 21

Rep: Reputation: 15
Xorg and 16:9 TV


Hi,
I am struggling to get my new TV to work right.
I have a Nvidia Geforce 8800GT using the 173.14.09 drivers from the Gentoo repositories.
The Xorg version is 1.3.0.0-r6, also from Gentoo.
The TV is a Panasonic Quintrix CRT 16:9 100Hz.
On the first run of X the TV works, although the log says:
Code:
(WW) NVIDIA(0): TwinView requested, but only 1 display devices found.
(WW) NVIDIA(1): No TwinView "MetaModes" specified; will fall back to Display
(WW) NVIDIA(1):     SubSection modes.
(WW) NVIDIA(1): TwinView requested, but only 1 display devices found.
If I have to restart X for some reason, the TV remains dead. The messages in the log remain the same. I have to reboot to resurrect the TV.
This brings us to my second Problem: Since its a 16:9 TV, I have to set a custom resolution with a Modeline.
I found various generators on the Web and ended up with something like this:
Code:
Modeline       "1024x576@50i" 17.46 1024 1056 1120 1152 576 589 592 605 interlace
But X rejects it and says:
Code:
(WW) NVIDIA(1): No valid modes for "1024x576@50i"; removing.
It then falls back to 1024x768.
It is a pain to get this Modeline right, because I have to reboot my Box every time I want to restart X.
I have tried the "ConnectedMonitor" option with no success.
Here are the relevant parts of my xorg.conf:

Code:
Section "ServerLayout"
    Identifier     "Simple Layout"
    Screen      0  "Screen0" 1024 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse1" "CorePointer"
    InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "TV 16:9"
    HorizSync       30.0 - 50.0
    VertRefresh     43.0 - 72.0
    DisplaySize     400 225
    Modeline       "1024x576@50i" 17.46 1024 1056 1120 1152 576 589 592 605 interlace
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VideoRam        524288
    Option         "RenderAccel" "1"
    Option         "AllowGLXWithComposite" "1"
    Option         "AddARGBGLXVisuals" "1"
    Option         "NoLogo" "1" # optional
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "metamodes" "DFP: 1920x1200 +0+0; DFP: 1280x1024 +0+0; DFP: 1024x768 +0+0; DFP: 800x600 +0+0; DFP: 640x480 +0+0"
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VideoRam        524288
    Option         "RenderAccel" "1"
    Option         "AllowGLXWithComposite" "1"
    Option         "AddARGBGLXVisuals" "1"
    Option         "NoLogo" "1" # optional
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
    BusID          "PCI:1:0:0"
    Screen          1
    Option          "TVStandard" "PAL-B"
    Option          "TVOutFormat" "COMPOSITE"
    Option          "ConnectedMonitor" "TV"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "1"
    SubSection     "Display"
        Depth       24
        Modes       "1024x576@50i" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection
So my two questions are:

1.) Whats wrong with the Modeline?
2.) Why is my TV only activated on the first run of X?

Thanks for your time,
Michael
 
Old 07-23-2008, 06:13 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 716

Rep: Reputation: 81
Hi!
I don't have any direct experiences with a 8800GT, but I connected my other nVidia-card to my TV to watch HD-movies, and it is working.
Sorry but I didn't understand a few things:
- during the boot sequence, when the system hasn't started up X yet and you usually see the Grub menu & all the messages in the console, do you see those messages on your TV-screen?
- if you restart X after shutting down, (e.g. you type "startx && startx" at the command prompt instead of the usual "startx" and after that X is up the first time, you end X), do you see the live X-screen again or not?
- did you connect the TV to the GPU through the normal VGA-cable, HDMI or something else?
- did you check in the manual of the TV if it supports the mode "1024x576"? I ask because mine doesn't and it would go back as well to stardard 1024x768 or 800x600. In my case I had to use the standard HD-resolution of 1280x720 (720p) http://en.wikipedia.org/wiki/Image:C...olutions_2.svg
I don't think I had to write a modeline, I just had to mention the resolution - the right settings are found automatically when the GPU speaks to the TV - I can doublecheck this evening.
 
Old 07-24-2008, 07:08 AM   #3
Wurstbrot
LQ Newbie
 
Registered: May 2006
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for the reply.
To answer your questions:

- TV is black during boot sequence
- My machine boots into a console, I have to manually start X with startx. After that the TV works in 1024x768.
- If I stop my X-Session (Ctrl+Alt+Backspace for example) and restart it (startx), the TV stays black.
- Its an old CRT-TV, it has SCART and S-Video connectors only and is connected with S-Video.
- I don't have the manual for it, and it probably can only do 720x405, but snce X accepts a Screensize of 1024x768 I figuered it should be able to handle 1024x576 as well. I still have the Modeline in my xorg, so on the first run it simply falls back to 1024x768.

From what I've read, I have to set a Modeline, because 1024x576 is a non-standard resolution. I tried 720x405 as well, same results.
 
Old 07-24-2008, 10:41 AM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 716

Rep: Reputation: 81
Aaahh, then it might become more complicated. And you might be right about the modeline, but probably both the graphics card and the TV have to support that res. But yes, if it's a CRT having the right res becomes imperative, otherwise the image will be disgusting.

Did you try to have a look at the log-file of X (sorry - might be a dumb question - don't know if you got the warnings from the console or from the log file(s))? (mine gets generated in "/var/log/" and is called something like "X.0.log").
There you should find something that refers to 1) the modes that your graphics card thinks are valid (they all should be listed) and if you're lucky 2) any error messages which might be related to the second start of X.

And, as a workaround, what about unloading and reloading the nVidia-module between the two starts of X? E.g.:
startx && modprobe -r nvidia && sleep 2 && modprobe nvidia && sleep 2 && startx
Does it improve the situation?
 
Old 07-25-2008, 08:52 AM   #5
Wurstbrot
LQ Newbie
 
Registered: May 2006
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
I already posted the logentries in my first post, on the 2nd try I get
Code:
(EE) NVIDIA(1): Unable to find available Display Devices for screen 1.
Reloading the driver doesn't help.
 
Old 07-25-2008, 09:04 AM   #6
Wurstbrot
LQ Newbie
 
Registered: May 2006
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
To clear things up a bit, a more complete log:

This is on the first run when the Telly works in 1024x768:

Code:
(II) Setting vga for screen 0.
(II) Setting vga for screen 1.
(II) NVIDIA(0): Creating default Display subsection in Screen section
        "Screen0" for depth/fbbpp 24/32
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "1"
(**) NVIDIA(0): Option "RenderAccel" "1"
(**) NVIDIA(0): Option "TwinView" "1"
(**) NVIDIA(0): Option "MetaModes" "DFP: 1920x1200 +0+0; DFP: 1280x1024 +0+0; DFP: 1024x768 +0+0; DFP: 800
x600 +0+0; DFP: 640x480 +0+0"
(**) NVIDIA(0): Option "AllowGLXWithComposite" "1"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "1"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): TwinView enabled
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 524288 kBytes
(--) NVIDIA(0): VideoBIOS: 62.92.1f.00.00
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
(--) NVIDIA(0):     NVIDIA TV Encoder (TV-0)
(--) NVIDIA(0):     Samsung SyncMaster (DFP-0)
(--) NVIDIA(0): NVIDIA TV Encoder (TV-0): 400.0 MHz maximum pixel clock
(--) NVIDIA(0): TV encoder: NVIDIA
(II) NVIDIA(0): Display Device found referenced in MetaMode: DFP-0
(WW) NVIDIA(0): TwinView requested, but only 1 display devices found.
(II) NVIDIA(0): Assigned Display Device: DFP-0
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "DFP:1920x1200+0+0"
(II) NVIDIA(0):     "DFP:1280x1024+0+0"
(II) NVIDIA(0):     "DFP:1024x768+0+0"
(II) NVIDIA(0):     "DFP:800x600+0+0"
(II) NVIDIA(0):     "DFP:640x480+0+0"
(II) NVIDIA(0): Virtual screen size determined to be 1920 x 1200
(--) NVIDIA(0): DPI set to (93, 95); computed from "UseEdidDpi" X config
(--) NVIDIA(0):     option
(**) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(**) NVIDIA(1): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(1): RGB weight 888
(==) NVIDIA(1): Default visual is TrueColor
(==) NVIDIA(1): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(1): Option "NoLogo" "1"
(**) NVIDIA(1): Option "ConnectedMonitor" "TV"
(**) NVIDIA(1): Option "TVStandard" "PAL-B"
(**) NVIDIA(1): Option "TVOutFormat" "COMPOSITE"
(**) NVIDIA(1): Option "RenderAccel" "1"
(**) NVIDIA(1): Option "TwinView" "1"
(**) NVIDIA(1): Option "AllowGLXWithComposite" "1"
(**) NVIDIA(1): Option "AddARGBGLXVisuals" "1"
(**) NVIDIA(1): Option "ModeValidation" "NoVertRefreshCheck"
(**) NVIDIA(1): Enabling RENDER acceleration
(**) NVIDIA(1): Forcing COMPOSITE video output
(**) NVIDIA(1): TV Standard string: "PAL-B"
(WW) NVIDIA(1): No TwinView "MetaModes" specified; will fall back to Display
(WW) NVIDIA(1):     SubSection modes.
(**) NVIDIA(1): TwinView enabled
(II) NVIDIA(1): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(1): Memory: 524288 kBytes
(--) NVIDIA(1): VideoBIOS: 62.92.1f.00.00
(II) NVIDIA(1): Detected PCI Express Link width: 16X
(--) NVIDIA(1): Interlaced video modes are supported on this GPU
(--) NVIDIA(1): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
(--) NVIDIA(1):     NVIDIA TV Encoder (TV-0)
(--) NVIDIA(1):     Samsung SyncMaster (DFP-0)
(--) NVIDIA(1): NVIDIA TV Encoder (TV-0): 400.0 MHz maximum pixel clock
(--) NVIDIA(1): TV encoder: NVIDIA
(WW) NVIDIA(1): TwinView requested, but only 1 display devices found.
(II) NVIDIA(1): Mode Validation Overrides for NVIDIA TV Encoder (TV-0):
(II) NVIDIA(1):     NoVertRefreshCheck
(II) NVIDIA(1): Assigned Display Device: TV-0
(WW) NVIDIA(1): No valid modes for "1024x576@50i"; removing.
(WW) NVIDIA(1): No valid modes for "720x405@50i"; removing.
(II) NVIDIA(1): Validated modes:
(II) NVIDIA(1):     "1024x768"
(II) NVIDIA(1):     "800x600"
(II) NVIDIA(1):     "640x480"
(II) NVIDIA(1): Virtual screen size determined to be 1024 x 768
(==) NVIDIA(1): DPI set to (75, 75); computed from built-in default
(**) NVIDIA(1): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
And the same part on the second run:

Code:
(II) Setting vga for screen 0.
(II) Setting vga for screen 1.
(II) NVIDIA(0): Creating default Display subsection in Screen section
        "Screen0" for depth/fbbpp 24/32
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "1"
(**) NVIDIA(0): Option "RenderAccel" "1"
(**) NVIDIA(0): Option "TwinView" "1"
(**) NVIDIA(0): Option "MetaModes" "DFP: 1920x1200 +0+0; DFP: 1280x1024 +0+0; DFP: 1024x768 +0+0; DFP: 800x600 +0+0; DFP: 640x480 +0+0"
(**) NVIDIA(0): Option "AllowGLXWithComposite" "1"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "1"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): TwinView enabled
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 524288 kBytes
(--) NVIDIA(0): VideoBIOS: 62.92.1f.00.00
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
(--) NVIDIA(0):     Samsung SyncMaster (DFP-0)
(--) NVIDIA(0): Samsung SyncMaster (DFP-0): 330.0 MHz maximum pixel clock
(--) NVIDIA(0): Samsung SyncMaster (DFP-0): Internal Dual Link TMDS
(II) NVIDIA(0): Display Device found referenced in MetaMode: DFP-0
(WW) NVIDIA(0): TwinView requested, but only 1 display devices found.
(II) NVIDIA(0): Assigned Display Device: DFP-0
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "DFP:1920x1200+0+0"
(II) NVIDIA(0):     "DFP:1280x1024+0+0"
(II) NVIDIA(0):     "DFP:1024x768+0+0"
(II) NVIDIA(0):     "DFP:800x600+0+0"
(II) NVIDIA(0):     "DFP:640x480+0+0"
(II) NVIDIA(0): Virtual screen size determined to be 1920 x 1200
(--) NVIDIA(0): DPI set to (93, 95); computed from "UseEdidDpi" X config
(--) NVIDIA(0):     option
(**) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(**) NVIDIA(1): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(1): RGB weight 888
(==) NVIDIA(1): Default visual is TrueColor
(==) NVIDIA(1): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(1): Option "NoLogo" "1"
(**) NVIDIA(1): Option "ConnectedMonitor" "TV"
(**) NVIDIA(1): Option "TVStandard" "PAL-B"
(**) NVIDIA(1): Option "TVOutFormat" "COMPOSITE"
(**) NVIDIA(1): Option "RenderAccel" "1"
(**) NVIDIA(1): Option "TwinView" "1"
(**) NVIDIA(1): Option "AllowGLXWithComposite" "1"
(**) NVIDIA(1): Option "AddARGBGLXVisuals" "1"
(**) NVIDIA(1): Option "ModeValidation" "NoVertRefreshCheck"
(**) NVIDIA(1): Enabling RENDER acceleration
(**) NVIDIA(1): Forcing COMPOSITE video output
(**) NVIDIA(1): TV Standard string: "PAL-B"
(WW) NVIDIA(1): No TwinView "MetaModes" specified; will fall back to Display
(WW) NVIDIA(1):     SubSection modes.
(**) NVIDIA(1): TwinView enabled
(II) NVIDIA(1): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(1): Memory: 524288 kBytes
(--) NVIDIA(1): VideoBIOS: 62.92.1f.00.00
(II) NVIDIA(1): Detected PCI Express Link width: 16X
(--) NVIDIA(1): Interlaced video modes are supported on this GPU
(--) NVIDIA(1): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
(--) NVIDIA(1):     Samsung SyncMaster (DFP-0)
(--) NVIDIA(1): Samsung SyncMaster (DFP-0): 330.0 MHz maximum pixel clock
(--) NVIDIA(1): Samsung SyncMaster (DFP-0): Internal Dual Link TMDS
(EE) NVIDIA(1): Unable to find available Display Devices for screen 1.
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(--) Depth 24 pixmap format is 32 bpp
 
Old 07-27-2008, 03:23 AM   #7
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
Nvidia's blob doesn't support the use of modelines at all. They will always be ignored.

From your xorg.conf:
Code:
Option          "TVStandard" "PAL-B"
Option          "TVOutFormat" "COMPOSITE"
I'm not postitve, but I'm pretty sure that unless you're using component video hookups, 1024x768 is the highest resolution you can get with nvidia's tvout, and 4:3 is the only aspect ratio supported. I suspect you'd need to be using one of the HD TVStandard options listed here to get those higher resolutions and a widescreen ratio, not PAL-B (you can't use nvidia's component-video tvout with a standard-def TV btw).

I don't know why it fails the second time, but you can see the only valid modes listed in the first run's log:
Code:
(II) NVIDIA(1): Validated modes:
(II) NVIDIA(1):     "1024x768"
(II) NVIDIA(1):     "800x600"
(II) NVIDIA(1):     "640x480"
Those are the only resolutions you can utilize with nvidia's tvout using composite video or svideo hookups.


Not really relevant to your problem, but these options:
Code:
Option         "RenderAccel" "1"
Option         "AllowGLXWithComposite" "1"
Option         "AddARGBGLXVisuals" "1"
are no longer needed, they're all automatically enabled with current versions of the blob.

I hope some of this is useful info
 
Old 07-28-2008, 04:07 AM   #8
Wurstbrot
LQ Newbie
 
Registered: May 2006
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
Thank you very much lurko, especially the link helped a lot!
My card seems to support component video, so I'll get a cable and check that out later.

Edit: Card has component-out, but TV only has composite in. I give up. Thanks for your help anyway.

Last edited by Wurstbrot; 07-28-2008 at 04:17 AM.
 
Old 08-01-2008, 04:09 AM   #9
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 62
Quote:
Originally Posted by Wurstbrot View Post
I found various generators on the Web and ended up with something like this:

Hey - can you tell us which ones?
 
Old 08-02-2008, 11:02 AM   #10
Wurstbrot
LQ Newbie
 
Registered: May 2006
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 15
Yeah, sure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Medion MIM 2310 powersoff without Xorg...when Xorg installed does not power off. gluesniffmonkey Linux - Laptop and Netbook 6 12-04-2007 08:28 PM
Sid Users - Beware of Xorg 7.3 (xserver-xorg-input-evdev) bug rickh Debian 4 10-24-2007 04:30 AM
Removing custom built Xorg to install Etch's Xorg kushalkoolwal Debian 4 05-30-2007 02:50 AM
recent dist-upgrade of xorg has killed my mouse (and thusly, xorg). Lokathor Debian 4 06-10-2006 05:52 AM
replace 'xfree86' by 'xorg' in your xorg config file dindoung Linux - Newbie 2 02-26-2005 05:43 AM


All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration