Slashdot Mirror


Using X and SVGAlib Concurrently?

Walter Bell asks: "I have two video cards in my Linux PC, one of which has a TV out jack. I would like to connect the TV out jack to my color LCD panel and use it as a system status monitor (kind of like this), while I am running X on the other video card to serve as my desktop. Is it possible to use SVGAlib/GGI and X at the same time on two different video adapters? Right now I can switch between the two but only one of the adapters is active at a given time, depending on which virtual console is active. Is there a workaround?"

5 of 12 comments (clear)

  1. Re:Two instances of X by nneul · · Score: 2

    Running two instances of X is not a problem. I do it regularly to run certain apps under wine, and for dvd playback to TV. What you can't do is output from more than one simultaneously, or at least I have not seen any way to do it.

  2. Re:Two instances of X by Walter+Bell · · Score: 2, Interesting

    That's the same kind of problem I ran into. You can have svgalib and X active at the same time, but only one has control of the console and only one video card gets output.

    I considered running two X instances (like what you want to do) but most TV out cards are less than friendly to X because of Macrovision "trade secrets." For my application, svgalib at 320x200 would be more than adequate and it will still work with TV out.

    I was considering hacking svgalib so that I can run it from within an xterm (currently it complains that it can't open the VGA console and dies), so that it issues the int10 calls to the video BIOS on the first card while the Xserver video card is unaffected. But I strongly suspect that this will cause a big problem if X dies or I otherwise need to switch virtual consoles, because the kernel will have no idea what state the video cards are in.

    Any ideas....? It *should* be doable.

    ~wally

  3. Re:Two instances of X by nneul · · Score: 2

    Seems to me that the problem is that X on linux is very much tied to a vty. If you could get X to run independent of a VTY, then it would work.

    i.e. linux can only have one vty active at a time - so only one X/TTY/SVGA output at a time.

  4. Are you approaching the problem right? by cr0sh · · Score: 2

    The reason I ask is because you essentially want to convert a VGA signal, to a TV signal, then show that on an LCD panel. You have a lot of conversion going on there, and all to display what? Stats for the system?

    Perhaps you could display some large text, or perhaps some largish bar graphs - but output in the manner you are wanting to do this is going to look very "fuzzy" - this is fine for games and video (ie, stuff that moves a bit) - but it isn't what you want for a text display - or at least a "clean" display.

    If all you want are stats - save the LCD panel for another project. Drop the second card (unless you are using it for something), and add a simple LCD display via the parallel port, and run LCDPROC. A couple of cheap pushbuttons and some port monitoring and you can easily add page up/down capabilities from the case. I can't really see the need to do what you are planning, unless you are planning on running fancy screensavers or something on the box when it isn't displaying stats or whatnot...

    --
    Reason is the Path to God - Anon
    1. Re:Are you approaching the problem right? by cr0sh · · Score: 2

      Not necessarily. It depends on the "quality" of the video card. Some video cards will allow this, others require that you switch to a special "tweaked" settings mode to get TV-out, while still others have special routing circuitry that is set by a register on the card (or via some wierd I2C bus control). Here are some sites that might help:

      VGA to TV Information Center
      Chrontel
      Video Timing Calculator
      VGATV Homepage

      As far as the LCD module is concerned - the EDE702 is a good choice - I would almost say with it and the LCD it would be 1/3 the cost of the Matrix Orbital (of course, what you are kinda paying on the MO device is the nice repackaging to make everything fit in a small area). As far as the EL backlight burnout: it might be possible to replace it - but I am not sure it would be worth the trouble. You can get EL kits from AllElectronics, that could be cut and adapted for the device - then you would have to take the LCD off the board and replace the EL portion (if the LCD is truely seperate - otherwise you would be taking the LCD apart - you may or may not get it back together again where it works properly).

      I would go to EIO or AllElectronics and buy another display, personally.

      --
      Reason is the Path to God - Anon