[mythtv-users] Start MythTV on Display I want (and if not there, next one I want)

Allen Edwards allen.p.edwards at gmail.com
Sat Jan 10 17:27:46 UTC 2009


I have 3 display devices,  a DFP (projector),  a TV (SVideo),  a CRT
(LCD Display).

I want to have Myth use the projector if it is there and if not the
TV.  This has worked fine for months.  I just restart X and myth comes
up on the projector, unless it is disconnected and then it comes up on
the TV.  Everything worked perfectly until I added the LCD display to
control squeezebox and as a system monitor, not for watching Myth --
the TV doesn't have the resolution for this.  Now Myth comes up on the
LCD when the projector is not there.  I can switch it manually and it
works OK but this is not wife friendly.

I have all three devices defined in xorg.conf and in the order I want
(DFP is screen 0, TV is screen 1, and CRT is screen 2) but that isn't
the secret.  I mean, I want Myth to start in screen 0 if it is there
and if not to start in screen 1. Myth starts in screen 0 if it is
there but in screen 2 if screen 0 is missing, not screen 1 like I
want.

I don't want to put in a DISPLAY variable to point to the TV because I
want the projector if it is connected.  (note: I have a DVI switch to
disconnect the projector)

Here is my definition of screen 2.  The others are similar:

Section "Screen"
   Identifier "Screen2"
   Device "Videocard2"
   Monitor "Monitor2"
   Option "TwinView" "0"
   Option "metamodes" "CRT: 1280x1024_60 +0+0"
   Option "AddARGBGLXVisuals" "True"
   SubSection "Display"
      Depth 24
   EndSubSection
   Defaultdepth 24
EndSection

Section "Device"
   Identifier "Videocard2"
   Driver "nvidia"
   Vendorname "NVIDIA Corporation"
   Boardname "GeForce 6200 LE"
   Option "UseEvents" "True"
   Busid "PCI:1:0:0"
   Option "UseDisplayDevice" "CRT"
   Screen 2
EndSection

Section "Monitor"
   Identifier "Monitor2"
   Horizsync 30.0 - 63.0
   Vertrefresh 56.0 - 75.0
   Option "DPMS"
EndSection


I can't find anyone else doing this so there are no useful results
from Google or the archives so I turn to this group of helpful people.

Allen


More information about the mythtv-users mailing list