Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is this possible? vt7=monitor vt8=tv?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 5:54 am    Post subject: Is this possible? vt7=monitor vt8=tv? Reply with quote

I want to have my computer set up so that I can have vt7 show up on my monitor while at the same time vt8 shows up on my TV. Is that possible to do? I'm trying to do this so I can have mythtv going on vt8 and use it with the remote while I use the computer at the same time.

Right now I can get vt8 open with startx -- :1 and have mythtv lookin all nice over there, but I just need to get it over to the TV :)

I'd rather not use nvtv or twinview or any of that if possible.

Would it be as easy as setting up two server layouts, one using screen "screen1" and one using screen "TVScreen".. Then doing a startx -- :1 -layout TVScreen ?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Nov 22, 2003 6:04 am    Post subject: Reply with quote

In my experience, the nvidia drivers can't switch between tv-only and monitor only very well. I am only able to get them to switch back and forth if one of the X servers is TwinView (dual screen won't even work for me, for some reason). If I can find where to bother Nvidia for driver feature requests (their site seems to imply that they don't want to hear from end users at all), I'll ask them about supporting TV and CRT as independant servers instead of dual-screen or TwinView. I need this feature too :(
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 6:17 am    Post subject: Reply with quote

So in order to get the picture up on both at the same time I'll have to use twinview and just have the TV part off to the side?

I haven't done this in awhile.. is it possible to make it so they're seperate (not where you can just drag windows over from one to the other and move the mouse of the side of the screen on to the TV) and can full screen windows like mythtv?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Nov 22, 2003 6:35 am    Post subject: Reply with quote

What you are describing is possible with TwinView. TwinView supports Xinerama-aware apps, so MythTV can detect that the TV is Xinerama screen 1 and run on it. There some problems with this, however, so I'm not using it.

Xinerama requires that all displays that are part of the same screen be similar in features (color depth, etc). Nvidia cards only have one overlay unit for the Xv extension, so overlay can not happen on both screens. As a result, you get Xv via a scaling blitter, it's not synced to refresh, and it tears.

What you can do (maybe) is set it up as 2 screens on one display. Separate screens can differ in features, because applications are not allowed to extend across them or move between them. There are instructions in the README that should be installed in your /usr/share/doc for how to do this, but it seems to "just not work" on my system. However, that was when my card was running in PCI mode (a GeForceFX 5600 in PCI mode, heh). I'm using NvAGP now and will try again when I get a chance.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 6:40 am    Post subject: Reply with quote

I think I'm getting somewhere. I looked in the nvidia readme file and it said to do the following to my XF86Config:

Code:


Section "Monitor"
    Identifier  "Viewsonic A90"
    HorizSync   30-86
    VertRefresh 50-180
EndSection

Section "Monitor"
    Identifier   "TV"
    VertRefresh   60
    HorizSync   30-50
EndSection

Section "Device"
    Identifier  "GeForce Ti4200"
    Driver      "nvidia"
    BusID   "PCI:1:0:0"
    Screen   0
EndSection

Section "Device"
    Identifier   "nvidia1"
    Driver   "nvidia"
    BusID   "PCI:1:0:0"
    Screen   1
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "GeForce Ti4200"
    Monitor     "Viewsonic A90"
    DefaultDepth 24
    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   "Screen1"
    Device   "nvidia1"
    Monitor   "TV"
    DefaultDepth 24
    Subsection "Display"
   Depth       24
   Modes       "640x480"
   Viewport    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen   0 "Screen0"
    Screen   1 "Screen1" leftof "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


So I would think I could run startx -- :1 -screen 1 and it would show up on the TV? Or would there already be a session started there when I start x?

One more question, if I have the monitor connected to the video card, and the tv connected to the video card through svideo,, how does it know which goes where?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Nov 22, 2003 6:50 am    Post subject: Reply with quote

You can set connected display devices, that's also in the README. I think it goes to the CRT first if both are attached, because I'm using a single-screen config right now with both attached, and the monitor always comes on. What I've been doing to get MythTV to work is to run a TV-only setup on vt8, and a TwinView on vt7. As long as one of your setups includes both devices, it looks like you can freely switch back and forth. You'll have to keep in mind, however, that you can only actually use one at a time this way.

If you get the dual-screen thing working, you'll actually only have one X server. It will provide two screens, :0.0 and :0.1, with different capabilities. I'm pretty sure whichever device is :0.0 gets the overlay support, so if you want MythTV on your TV you'll want to make the TV screen 0. Only problem here is I don't think that you can have your screens managed separately, as they're both part of one display. If you use a display manager on the monitor, any MythTV on the TV, they are probably going to interfere with each other. I never got to having to worry about this, because my TV output won't work in dual-screen mode. It tells me that there's a second screen, and I can run apps on it, but there's no signal.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 7:22 am    Post subject: Reply with quote

I've flipped the screens around to make the TV screen 0.. I'll just have to drag the TV in here tomorrow and try to play around with it to see if I can get it to work. Thanks for the help, I've at least got some direction now :)
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Nov 22, 2003 7:24 am    Post subject: Reply with quote

So you got it to actually work? Hrm, I'll have to try again now that I'm using NvAGP, maybe it won't be all weird. Or maybe after I get that nforce2 board I've been eyeing.... my KT400 is a just a wee bit flakey.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 7:42 am    Post subject: Reply with quote

Whoops, sorry, didn't mean to say I got it working!

I meant I flipped them in the XF86Config file, so that I can drag the TV in here tomorrow and test it out. I also added a few lines from a post I saw on a mythtv list where people were discussing a similar problem to change the device section for the TV to:

Code:
Section "Device"
    Identifier  "nvidia1"
    Driver      "nvidia"
    BusID       "PCI:01:00:0"
    Screen      0
    Option "ConnectMonitor" "tv"
    Option "TVStandard" "NTSC-M"
    Option "TVOutFormat" "SVIDEO"
EndSection


Though once I plug the tv in I need to make sure thats the right variable for "ConnectMonitor"
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Nov 22, 2003 1:55 pm    Post subject: Reply with quote

Progress! For the first time, I have CRT and TV up in dual screen mode. Oddly enough, it seems it will only function with the TV as screen 0. With CRT as screen 0, I'm back to the old behavior of it telling me that there's a screen 1, and that screen 1 is on TV-0, but never sending video to the TV. With TV on screen 0, both devices work. I'll have to play with it to see what the minimum degree of interference I can get is - I have a feeling I will still want to pester nvidia about providing the option of 2 fully independent displays.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 8:46 pm    Post subject: Reply with quote

Good to hear you got it workin!

I'm having some problems. I think it might be that the TV isn't being recognized.

Heres my xf86config:

Code:

Section "Monitor"

    Identifier  "Viewsonic A90"
    HorizSync   30-86
    VertRefresh 50-180

EndSection

Section "Monitor"

    Identifier   "TV"
    VertRefresh   60
    HorizSync   30-50

EndSection

Section "Device"
    Identifier  "GeForce Ti4200"
    Driver      "nvidia"
    BusID   "PCI:01:00:0"
    Screen   0
EndSection

Section "Device"
    Identifier   "nvidia1"
    Driver   "nvidia"
    BusID   "PCI:01:00:0"
    Screen   1
    Option "TVStandard" "NTSC-M"
    Option "TVOutFormat" "SVIDEO"
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "GeForce Ti4200"
    Monitor     "Viewsonic A90"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "Screen"
    Identifier   "Screen1"
    Device   "nvidia1"
    Monitor   "TV"
    DefaultDepth 24
    Subsection "Display"
   Depth       24
   Modes       "640x480"
   Viewport    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen   0 "Screen0"
    Screen   1 "Screen1" leftof "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


That brings up the following in my xf86.0.log

Code:

(==) Using config file: "/etc/X11/XF86Config"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Viewsonic A90"
(**) |   |-->Device "GeForce Ti4200"
(**) |-->Screen "Screen1" (1)
(**) |   |-->Monitor "TV"
(**) |   |-->Device "nvidia1"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
Using vt 7
(--) using VT number 7

(WW) Open APM failed (/dev/apm_bios) (No such file or directory)

(--) PCI:*(1:0:0) nVidia Corporation NV25 [GeForce4 Ti 4200]

(II) NVIDIA XFree86 Driver  1.0-4496  Wed Jul 16 19:06:03 PDT 2003
(II) NVIDIA Unified Driver for all NVIDIA GPUs
(II) Primary Device is: PCI 01:00:0
(--) Chipset NVIDIA GPU found
(--) Chipset NVIDIA GPU found

(II) Setting vga for screen 0.
(II) Setting vga for screen 1.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
   compiled for 4.3.0, module version = 0.1.0
   ABI class: XFree86 Video Driver, version 0.6
(**) 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): Linear framebuffer at 0xF0000000
(--) NVIDIA(0): MMIO registers at 0xE7000000
(II) NVIDIA(0): NVIDIA GPU detected as: GeForce4 Ti 4200
(--) NVIDIA(0): VideoBIOS: 04.25.00.34.00
(--) NVIDIA(0): VideoRAM: 131072 kBytes
(II) NVIDIA(0): Connected display device(s): CRT-1
(--) NVIDIA(0): Detected TV Encoder: Philips 7104
(--) NVIDIA(0): Display device CRT-1: maximum pixel clock at  8 bpp: 350 MHz
(--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 16 bpp: 350 MHz
(--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 32 bpp: 350 MHz
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
   compiled for 4.3.0, module version = 1.0.0
   ABI class: XFree86 Video Driver, version 0.6
(II) NVIDIA(0): Viewsonic A90: Using hsync range of 30.00-86.00 kHz
(II) NVIDIA(0): Viewsonic A90: Using vrefresh range of 50.00-180.00 Hz
(II) NVIDIA(0): Clock range:  12.00 to 350.00 MHz
(II) NVIDIA(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) NVIDIA(0): Not using default mode "512x384" (bad mode clock/interlace/doublescan)
(II) NVIDIA(0): Not using default mode "1280x1024" (hsync out of range)
(WW) (1792x1344,Viewsonic A90) mode clock 204.8MHz exceeds DDC maximum 180MHz

(basically it repeats the last few lines over and over again with different numbers)

(**) NVIDIA(0): Validated modes for display device CRT-1:
(**) NVIDIA(0):      Default mode "1280x1024": 135.0 MHz, 80.0 kHz, 75.0 Hz

(a bunch of those)

(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
(--) NVIDIA(0): Display dimensions: (370, 280) mm
(--) NVIDIA(0): DPI set to (87, 92)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
   compiled for 4.3.0, module version = 1.0.0
   ABI class: XFree86 ANSI C Emulation, version 0.2
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor="The XFree86 Project"
   compiled for 4.3.0, module version = 0.1.0
   ABI class: XFree86 Video Driver, version 0.6
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Reloading /usr/X11R6/lib/modules/libvgahw.a

(**) 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 "TVStandard" "NTSC-M"
(**) NVIDIA(1): Option "TVOutFormat" "SVIDEO"
(**) NVIDIA(1): Forcing SVIDEO output
(**) NVIDIA(1): TV Standard string: "NTSC-M"
(--) NVIDIA(1): Linear framebuffer at 0xF0000000
(--) NVIDIA(1): MMIO registers at 0xE7000000
(II) NVIDIA(1): NVIDIA GPU detected as: GeForce4 Ti 4200
(--) NVIDIA(1): VideoBIOS: 04.25.00.34.00
(--) NVIDIA(1): VideoRAM: 131072 kBytes
(II) NVIDIA(1): Connected display device(s): CRT-1 *** (i think this is the problem)
(--) NVIDIA(1): Detected TV Encoder: Philips 7104
(--) NVIDIA(1): Display device CRT-1: maximum pixel clock at  8 bpp: 350 MHz
(--) NVIDIA(1): Display device CRT-1: maximum pixel clock at 16 bpp: 350 MHz
(--) NVIDIA(1): Display device CRT-1: maximum pixel clock at 32 bpp: 350 MHz
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Reloading /usr/X11R6/lib/modules/libddc.a
(II) NVIDIA(1): TV: Using hsync range of 30.00-50.00 kHz
(II) NVIDIA(1): TV: Using vrefresh value of 60.00 Hz
(II) NVIDIA(1): Clock range:  12.00 to 350.00 MHz
(II) NVIDIA(1): Not using default mode "640x350" (vrefresh out of range)
(bunch of those)
(**) NVIDIA(1): Validated modes for display device CRT-1:
(**) NVIDIA(1):      Default mode "640x480": 25.2 MHz, 31.5 kHz, 60.0 Hz
(**) NVIDIA(1):      Default mode "512x384": 32.5 MHz, 48.4 kHz, 60.0 Hz (D)
(**) NVIDIA(1):      Default mode "400x300": 20.0 MHz, 37.9 kHz, 60.3 Hz (D)
(**) NVIDIA(1):      Default mode "320x240": 12.6 MHz, 31.5 kHz, 60.1 Hz (D)
(II) NVIDIA(1): Virtual screen size determined to be 640 x 480
(--) NVIDIA(1): Display dimensions: (370, 280) mm
(--) NVIDIA(1): DPI set to (43, 43)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Reloading /usr/X11R6/lib/modules/libfb.a
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Reloading /usr/X11R6/lib/modules/libramdac.a
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  Yes, I do.
(II) LoadModule: "rac"
(II) Loading /usr/X11R6/lib/modules/librac.a
(II) Module rac: vendor="The XFree86 Project"
   compiled for 4.3.0, module version = 1.0.0
   ABI class: XFree86 Video Driver, version 0.6

(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse1: ps2EnableDataReporting: succeeded
Warning: font renderer for ".TTF" already registered at priority 10
Warning: font renderer for ".TTC" already registered at priority 10
(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources
(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources
(II) NVIDIA(0): Setting mode "1280x1024"
(II) NVIDIA(1): Setting mode "640x480"
(II) Entity 0 shares no resources
(II) Entity 1 shares no resources
(II) Mouse1: ps2EnableDataReporting: succeeded
(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources


I tried to cut out as much unneeded stuff as possible so there's less to sort through. It doesn't look like it's seeing the TV. Is there anywhere to check to see if it's being seen? My TV only has coaxial on the back so I had to run an s-video cable from the video card to an R/F modulator and from that to the TV. Is it possible that that's messing it up?
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Nov 22, 2003 11:25 pm    Post subject: Reply with quote

As it turns out the adapters were the problem.

I can now get a picture on the screen using the same server layout I posted from before

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


But there are a few problems.

Its doing what I didn't what I didn't want it to.. I had to move the mouse off the left of the screen to control what shows up on the TV (MythTV) Eventually I'd like to get it so that I can use the remote control for mythtv and the mouse/keyboard for everything else.

Also, the picture is in black and white and the top and bottom are cut off.


EDIT:

Well I got them seperated and almost doing what I originally planned by using this server layout config:

Code:
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen      "Screen0"
#    Screen     "Screen1" leftof "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "ServerLayout"
    Identifier  "tv"
    Screen      "Screen1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


startx -- :1 -layout tv gives me a new vt8 that shows mythtv and vt7 that shows me everything else.. but I can only see one at a time. Still with the bars and no color, too.
Back to top
View user's profile Send private message
earlNameless
n00b
n00b


Joined: 01 Apr 2003
Posts: 47

PostPosted: Sun Nov 23, 2003 5:33 pm    Post subject: Reply with quote

i do not know if this will be of any use, but i think there is a way to make startx use a specific config file, so then you can create a config file for your crt, and another one for your tv, then

startx -- :1 ... something here to make it use the tv config file ...
startx .... something here to make it use the crt file ...

that might create tv on vt7 and crt on vt8, and then you will have to switch between the two using crtl-alt-f7 and f8

i do not know if that is what you want and if it will work
i am downloading a large file right now under win and therefore will only be able to test it later, i will post my results :)
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sun Nov 23, 2003 6:06 pm    Post subject: Reply with quote

Earl, you can do that with the setup I just posted right above your post.

I decided to go back and test some things with the "Screen0" leftof "Screen1".
I wanted to see if I could use the remote control or gamepad with screen0, while the mouse was on screen1 (the keyboard only works one whichever one the mouse is on). The problem is once mythtv starts up zsnes, I can't move the mouse back over to the other side anymore! I can't seem to get my remote working with mythtv to test it that way.

Anybody know a way around this? I'm going to go out and try buying a new adapter and rf modulator (sounds geeky, huh?) to see if those give me a color picture. The only advice I can find through google for the black and white problem has been to try getting new adapters.
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sun Nov 23, 2003 6:40 pm    Post subject: Reply with quote

I just asked about managing the two screens separately on nvnews forums, but I suspect there's really no way to do what we want (TV and monitor active at the same time, with separate input devices). This seems like an obviously useful feature (in my home, the TV isn't even in the same room). To do this, a separate X server is needs for each device.

I found an email contact for the linux nvidia drivers (it's in the README), I would suggest that anybody interested in this feature send a polite email to linux-bugs@nvidia.com, asking that they make it possible for both display devices to be active as separate displays, instead of separate screens as is possible now.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sun Nov 23, 2003 6:53 pm    Post subject: Reply with quote

Yeah, I just found that out the hard way. I finally got my remote working, though :). Didn't realize I had to run "irxevent"

By running a seperate xserver for each device do you mean making two XF86Config files and running one of them using startx -- :1 -howeveryouspecifyaconfigfile? (edit: Or actually I think that would just bring it back to having to ctrl+alt+f7 or 8 to switch between the two)

I guess the main problem there is getting it to load up and start mythtv and irxevent automatically so you wouldn't have to worry about not having a keyboard to use.
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sun Nov 23, 2003 7:20 pm    Post subject: Reply with quote

That's what I have to do now, I run a separate X server and have to switch. It should be possible (but isn't with current drivers) to run separate X servers with both displays active at the same time, with their own input devices. This is what I emailed nvidia about :-)

I've been doing the work manually so far, but I guess we need to set up a .xinitrc to set things up at server start. In my case, the remote is a keyboard, but I still have to run xmodmap so that the buttons have the correct functions.
Back to top
View user's profile Send private message
earlNameless
n00b
n00b


Joined: 01 Apr 2003
Posts: 47

PostPosted: Mon Nov 24, 2003 3:55 am    Post subject: Reply with quote

Drewgrange, i tried to do it the way you have it:

Code:

Section "Monitor"

    Identifier  "kds"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   31.5 - 64.3

#    HorizSync   30-64         # multisync
#    HorizSync   31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync   15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 50-90

EndSection

Section "Monitor"
    Identifier "panasonic"
    VertRefresh 60
    HorizSync   30-50
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"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset   "generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

    Driver     "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam   256

#    Clocks   25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
    Identifier  "geforece4nv"
#    Driver      "nv"
    Screen      0
    Driver      "nvidia"
    Option   "NvAGP" "3"
    #VideoRam    65536
    # Insert Clocks lines here if appropriate
   
    # twinview settings
#    Option "TwinView" "1"
#    Option "SecondMonitorHorizSync" "30-69"
#    Option "SecondMonitorVertRefresh" "50-70"
#    Option "TwinViewOrientation" "RightOf"
#    Option "MetaModes" "1280x1024, 640x480"
#    Option "ConnectedMonitor" "CRT, DFP"
EndSection

Section "Device"
     Identifier  "geforce4nvtv"
     Driver      "nvidia"
     Screen      1
     Option      "TVStandard"  "NTSC-M"
     Option      "TVOutFormat" "SVIDEO"
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  "Screen 1"
    Device      "geforece4nv"
    Monitor     "kds"
    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   "TVScreen"
    Device       "geforce4nvtv"
    Monitor      "panasonic"
    DefaultDepth 24
   
    Subsection "Display"
        Depth       24
   Modes       "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"

# The Identifier line must be present
    Identifier  "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

Section "ServerLayout"
    Identifier "tv"
    Screen "TVScreen"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


but it does not work, and fails when loading the nvidia drivers.
i check the config file a couple of times and could not find anything wrong with it.

is there anything else special that you did for this to work?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Mon Nov 24, 2003 4:15 am    Post subject: Reply with quote

I've put a copy of my config up at http://chshrcat/homelinux.net/~chshrcat/XF86Config.nvidia2head. You'll need to edit the Input sections, at the very least, because I'm using the evdev input patch. My system only works with the TV as screen 0, so you may want to try swapping screens to see if it helps. If all else fails, post a copy of / link to your XFree86 log (it should be in /var/log/XFree86.<displaynumber>.log). That should have all the gory details after X fails.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Mon Nov 24, 2003 6:00 am    Post subject: Reply with quote

earl, You'll need to add

Option "ConnectedMonitor" "TV"

to your device section for "geforce4nvtv"

and to your geforce4nv device:

Option "ConnectedMonitor" "CRT-1"

and the busid to both nvidia devices. On mine this is 01:00:0, you can check to make sure in your log.

BusID "PCI:01:00:0"

See if that helps. If not post some error messages from your xf86.0.log
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Mon Nov 24, 2003 6:05 am    Post subject: Reply with quote

Just for completion:

Turns out the black and white was because of an adapter I used (svideo to rca), I had to switch the line SVIDEO to COMPOSITE in my xf86config. For now I'm going to stick with the "Screen0" leftof "Screen1" type setup and move the mouse over when I want to do something on MythTV. I guess I usually don't do both at the same time anyway,, just slide the mouse over, change channel, slide the mouse back. :)

That'll have to suffice until nvidia gives us support for having the two running seperately but at the same time, I guess. (which means that'll probably be that way for a loong time :roll: )
Back to top
View user's profile Send private message
earlNameless
n00b
n00b


Joined: 01 Apr 2003
Posts: 47

PostPosted: Mon Nov 24, 2003 2:29 pm    Post subject: Reply with quote

thanks a lot, i will see what i can do when i get home today.

I tried to look for some information about the nvidia driver, and found some, but is there a place where I can find a listing of ALL :D the different parameters and what they mean for the nvidia driver?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Mon Nov 24, 2003 7:06 pm    Post subject: Reply with quote

I'm pretty sure that the README installed by the nvidia-glx driver has all of the options. I don't remember getting them from anywhere else when I set mine up.
Back to top
View user's profile Send private message
earlNameless
n00b
n00b


Joined: 01 Apr 2003
Posts: 47

PostPosted: Mon Nov 24, 2003 11:50 pm    Post subject: Reply with quote

:( i screw up something majorly, and do not have startx any longer, since i am a n00b :), i am going to reemerge x11, and try with the config later, such a pain, grrrr.... i hate myself for doing stuff that is this stupid
actually this is an excuse to reemrge everything, i emerged way too much crap that i do not need so i need to free some space :), so i will get back much later, but:

do you want to make a tutorial for setting up nvidia to use two screens (the way we are doing it right now, normal twinview, and two competely separate files [by preference])?
(unless there is already such a thing)
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Tue Nov 25, 2003 8:43 am    Post subject: Reply with quote

earl, no need to reemerge x11!

just run xf86cfg or xf86config to get a nice little program that will make you a new one.

I am not very familiar with using Twinview or using two completely seperate config files, but if you search these boards or google with error messages that you're recieving, you're bound to find some help.

Wait, I just realized you may have meant you can't run startx anymore? How would that have gotten deleted?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum