[mythtv-users] @ X sessions?

jose rubio debian at nc.rr.com
Sat Mar 6 07:15:07 EST 2004


On Fri, 2004-03-05 at 20:53, stan wrote:
> I've got a system I'm working at setting up. It's based on the latest
> KnoppMyth, and has 2 capture cards in it, a PVR-350, and a PVR-250.
> 
> I've pretty much got things working to the monitor. I'm also able to send
> the output of recorded shows, or "live" TV to the TV Out on the 350, since
> I've loaded teh saa7127 module.
> 
> Now, I'm playing around with teh ivrv-fb module to get the X session runing
> on the TV monitor. However, I'm not at all happy with what I'm seeing there
> (oversacn, and it's not very sharp). 
> 

Yep, the resolution of an analog tv is not very good, even compared to
the worst monitors out there.

> I'm thinking that I should be able to set up 2 X session, one to the AGP
> card/monitor, and the 2nd to the 350's frame buffer. I've doen something
> like this in the past, with 2 gdm sessions on 2 different VT's. However
> looking at the somewhat complex way all this is started with KnoppMYTH, I
> find myself a bit lost as to how to go about it. I do have 2 working X
> config files, one for the AGP card, and one for the 350's frame buffer
> (although I suspect the later needs a bit of tweaking).
> 

you don't need two x-sessions or two gdm's, i have one session with two
displays :0.0 for my monitor and :0.1 for my tv.
To run myth on the tv:

export DISPLAY:0.1 && mythfrontend

Look at my XF86Config file (attached)

Have you read the file ivtv-fb.c?  The begining of it is a HOWTO on
setting up X to run this way.

good luck



-jose-


-------------- next part --------------
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/Type1/"
#    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
    Load        "dbe"  	# Double buffer extension
    # added 8/9/03 from:
    # http://pvrhw.goldfish.org/tiki-page.php?pageName=rh9pvr250&PHPSESSID=d9c531cba56f4ba99e5dcfb70e5aed52#video
    Load 	"v4l"
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load       "glx"
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen 0 "CTXMonitor"
    Screen 1 "TV Screen" RightOf "CTXMonitor"  # << (TV screen)
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

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

Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"	"xfree86"
    Option "XkbModel"	"pc104"
    Option "XkbLayout"	"us"
EndSection

Section "ServerFlags"
EndSection

# Device configured by Jose on 4/6/03:

Section "Screen"
    Identifier  "CTXMonitor"
    Device      "NVIDIA GeForce"
    Monitor     "ctx"
    DefaultDepth 24
    Subsection "Display"
        Depth       8
        Modes       
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "800x600"
        ViewPort    0 0
    EndSubsection
EndSection

Section "Screen"
  Identifier  "TV Screen"
  Device      "Hauppauge PVR 350 iTVC15 Framebuffer"
  Monitor     "NTSC Monitor"
  DefaultDepth 24
  DefaultFbbpp 32
  Subsection "Display"
    Depth 24
    FbBpp 32
    Modes "720x480"
  EndSubsection
EndSection

Section "Device"
    Identifier  "NVIDIA GeForce"
    Driver      "nvidia"
    VideoRam    65536
    #Option "TwinView"
    #Option "ConnectedMonitor"	"TV,CRT"
    #Option "SecondMonitorHorizSync"     "30-50"
    #Option "SecondMonitorVertRefresh"   "60"
    #Option "MetaModes" "800x600, 800x600"
    #Option "MetaModes" "800x600, 800x600"
    #Option "TVStandard" "NTSC-M"
    #Option "TwinViewOrientation"	"Clone"
EndSection

Section "Device"
    Identifier  "Hauppauge PVR 350 iTVC15 Framebuffer"
    Driver      "fbdev"
    Option      "fbdev" "/dev/fb0"      # <-- modify if using another device
    BusID "0:09:0"
EndSection

Section "Monitor"
    Identifier  "ctx"
    HorizSync   31.5 - 35.1
    VertRefresh 50-100
EndSection

Section "Monitor"
    Identifier  "NTSC Monitor"
    HorizSync  30-68
    VertRefresh 50-120
    Mode "720x480"
      # D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
      DotClock 25.177
      HTimings 640 664 760 800
      VTimings 480 491 493 525
      Flags    "-HSync" "-VSync"
    EndMode
EndSection




More information about the mythtv-users mailing list