[mythtv-users] Set default display to DVI on nvidia card

Norm mlists at dressler.ca
Fri Sep 12 17:07:11 UTC 2008



On Fri, 2008-09-12 at 10:32 -0400, Chandi Bernier wrote:
> >>
> >>> My Myth systems works fine. It outputs perfectly on a DVI port
> >>> connected to DVI-HDMI adaptor to an HDMI HDTV.
> >>>
> >>> The problem is I don't have a monitor connected to it and  
> >>> sometimes I
> >>> would need to see the console on the TV while X is not started. I
> >>> would like the graphic card to always output on it's DVI port (boot
> >>> up, bios, console, etc).
> >>>
> >>> Any ideas how to do that ?
> >>>
> >>> I'm running gentoo and the card is PCI.
> >>
> >>
> >> Mine does this by default. I can edit BIOS settings too. The HDTV  
> >> should
> >> be just like a monitor. Nvidia 7300GS and proprietary drivers..
> >>
> > My nvidia cards pick up which port a device is connected to. If  
> > nothing
> > is there they default to VGA. Here is part of my xorg.conf file to  
> > force
> > DFP (DVI port).
> >
> > Section "Device"
> >        Identifier      "Default Device"
> >        Boardname       "Geforce6200"
> >        Busid           "PCI:3:0:0"
> >        Driver          "nvidia"
> >        Screen  0
> >        Option          "AddARGBVisuals"        "True"
> >        Option          "AddARGBGLXVisuals"     "True"
> >        Option          "NoLogo"        "True"
> > 	Option		"UseDisplayDevice"	"DFP"
> > EndSection
> 
> 
> Ok, after a lot of research I've finally understand what is causing  
> the problem. It's the resolution that the kernel tries to set that is  
> not accepted by my TV. It seems to accept only 720x480 and 720P. I've  
> found that after running X I can change to a virtual terminal  
> (console) but not before. That must be because X sets the resolution  
> to an valid one.
> 
> I must then try to find how to make one of the 2 valid resolution  
> default by the kernel.
> 
> Thanks,

My xorg config is very similar.. first in your server settings:
Section
"ServerLayout"                                                                                           
    Identifier     "Default
Layout"                                                                              
    Screen      1  "Screen0" 1280
0                                                                              
    Screen      0  "Screen1" LeftOf
"Screen0"                                                                    
EndSection  
..
..
Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown" 
    ModelName      "CRT-0"   
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
EndSection                     

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown" 
    ModelName      "PYX 26LCDTV"
    HorizSync       30.0 - 91.0 
    VertRefresh     55.0 - 85.0 
EndSection                      
..
..  Monitor 1 is my HDMI out on my TV.
..
Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"    
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7050 PV / NVIDIA nForce 630a"
    BusID          "PCI:0:18:0"                          
    Screen          0                                    
EndSection                                               

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"    
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7050 PV / NVIDIA nForce 630a"
    BusID          "PCI:0:18:0"                          
    Screen          1                                    
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0; CRT:
320x240 +0+0"
    Option         "UseEvents" "True"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: 1280x720 +0+0"
    Option         "UseEvents" "True"
EndSection

Screen1 matches Monitor1 and is set to the default output in the top of
the file under ServerLayout.

Hope it helps.

Norm



More information about the mythtv-users mailing list