LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2007, 03:57 AM   #1
mynameisflorian
Member
 
Registered: Jul 2005
Location: Minneapolis, Minnesota
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 15
unique s-video setup


I am trying to get s-video output in a second "x-session" (ie ctrl-alt-f9) even when I switch back to my primary session. I want to be able to use the primary x-session on my monitor without interupting the s-video output of the second session. I also want to be able to see my second session with both my regular monitor and the s-video device when switched.

Right now my xorg.conf clones the s-video to the monitor when I start an x-session using the svideo layout -- but the output ceses when I switch back to my primary session. Any Ideas?

Also, how do I start a second X-session with mythtv? Right now I am using "X :1 -layout svideo" to test, but I can't do anything when I'm there (except ctrl-alt-bksp).

Here is my xorg.conf:

Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "ServerLayout"
    Identifier     "svideo"
        Screen        "svideo"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "Files"

	# path to defoma fonts
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load           "i2c"
    Load           "bitmap"
    Load           "ddc"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
    Load           "int10"
    Load           "vbe"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
    Identifier     "stylus"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "stylus"
    Option         "ForceDevice" "ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
    Identifier     "eraser"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "eraser"
    Option         "ForceDevice" "ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
    Identifier     "cursor"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "cursor"
    Option         "ForceDevice" "ISDV4"		# Tablet PC ONLY
EndSection

Section "Monitor"
    Identifier     "SyncMaster"
    ModeLine       "1440x900@70" 127.0 1440 1536 1688 1936 900 901 904 937 -hsync +vsync
    ModeLine       "1440x900@60" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
    Option         "DPMS"
EndSection

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

Section "Device"
    Identifier     "nVidia Corporation NV34 [GeForce FX 5500]"
    Driver         "nvidia"
EndSection

Section "Device"
        Identifier      "Device1"
        Driver "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "nVidia Corporation NV34 [GeForce FX 5500]"
    Monitor        "SyncMaster"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       1
        Modes      "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" "1440x900@70" "1440x900@60"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "svideo"
    Device         "device1"
    Monitor        "svideo" #"SyncMaster"
    DefaultDepth    24

    Option      "TwinView" 		 "1"
    Option      "TwinViewOrientation"    "Clone"
    Option      "metamodes" 		 "640x480, 640X480"
    Option      "TVOutFormat" "SVIDEO"
    Option      "TVStandard" "NTSC-M"


    SubSection     "Display"
        Depth       24
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
EndSection




Section "Extensions"
    Option         "Composite" "Enable"
EndSection
Thank you!
- Florian

Last edited by mynameisflorian; 10-06-2007 at 04:07 AM.
 
Old 10-06-2007, 11:46 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Hi Florian,

Forgive me, but I don't understand what exactly you are trying to do. I think I can help you as I have what seems to be a similar setup on my own machine, but I can't quite make sense of your request.

First, I have no idea what mythTV is (am I alone in this?? ) but I suspect that if we could get your X session(s) working the way you like, then you could take care of the mythTV part, yes?

OK, some things:
1 - I don't use Ubuntu very much.
2 - I do use nVidia stuff, and S-Video for my Television.
3 - I have two serverlayouts configured, but not sure if they are like you want yours or not.

So for comparison:

With my setup, Serverlayout #1 drives two monitors on my desk.
....................... Serverlayout #2 drives one monitor, plus a TV using S-Video. I switch by 'startx -- :1 -layout="television"

Both layouts use Twinview, ie, my main monitor is always used, and the second device (either another monitor OR the TV) is 'Twinviewed' to the right or left of my monitor.

The purpose is this: If it's just me using the computer, I use two monitors.
But if I want to play a DVD movie on the TV, I switch to layout #2 and then start Xine. I put Xine onto the TV screen, Full-Screen it, and start the movie.
While the movie plays, I can still use my computer on my monitor.

That said, can you explain why you need to have a second session & serverlayout started on a different TTY, but need to be able to switch back to the first layout while still having the second one going?? I'm not sure you can do that by this method, but you *Might* get the results you seek by using something like 'tightVNC' or a similar VNC client. With VNC, I can start a second X session inside a console window. Using that method, what I would suggest would be to start your S-Video session, and then open a console window and start another session using your PRIMARY layout. This way, the S-Video continues to run as the default layout, but you have your own session in its own window.
The only problem I can foresee with this, might be that depending on the capabilities of your video card, it may not be able to display the outputs you want simultaneously. My video card for example has 3 outputs, however it will only drive two out of three at any time.

So, umm.. I don't know where this info leaves you, but if you can clarify what exactly you need it to do, perhaps we can figure a solution.
 
Old 10-07-2007, 03:25 AM   #3
mynameisflorian
Member
 
Registered: Jul 2005
Location: Minneapolis, Minnesota
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you so much for your response. Sorry if I was confusing :-). I think it might help if I let you in on why I want to use this setup. My TV is in another room and I don't have an RF remote yet. I need to be able to control my TV while I can't see it. Also, I want to be able to use my pc while someone else is watching content from my PC on the TV. If that means I need to use a VNC client to remote into the second desktop, that's 100% ok. Primarily, I want to be able to have both outputs going at the same time, being able to use my monitor to view both my Desktop and the TV output. Having a 640x480 VNC window would be a very convenient solution.

I will look into this and post how it works out...
 
Old 10-07-2007, 08:33 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Thanks for that explanation that makes it MUCH easier to try to figure out how to do what you want done! ( even if we cannot find the solution, atleast where we know where we are *trying* to go!)

A few ideas to ponder (and please elaborate or correct me anywhere here):

1 - 'CLONE' is probably not an option you will want for this. I get the impression that you would like to be able to actually WATCH the s-video output from your computer occasionally, and this might be a sticky point of this all. Luckily my TV is in the same room as my computer, however, if it weren't then I would still have access to the CONTROL PANEL GUI for Xine, to stop/play/pause/volume etc., but wouldn't actually be able to WATCH the tv/movie output.
That said, I have never used the CLONE option (I have used all the other ones thought ) so tell me, if the TV were VIDEO-OUTPUT-ONE and it were TWINVIEW-CLONED onto your monitor which is VIDEO-OUTPUT-TWO, how does the taskbar work under this circumstance? Can you place the taskbar onto your monitor only??
If not, this again brings me back to the VNC setup, USING CLONE. You clone the TV onto your Monitor (if you absolutely MUST be able to watch the TV output) and then from your Monitor (while using your computer) you start a VNC in a window, and that acts as your own little "window into your own session "

2 - AFAIK, without using some VNC arrangement like above, there is no possible way to start or run a given X session, and have its output(s) still alive while physically switching to another X session using CTRL-ALT-Fn. The outputs you want must come from the same (one single) X session.

Sorry if I have been a bit repetitive here but just want to help you & me see the issue from some different perspectives. I'll leave you to it, but definitely post your progress and good luck!
 
Old 10-08-2007, 02:51 AM   #5
mynameisflorian
Member
 
Registered: Jul 2005
Location: Minneapolis, Minnesota
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
I ended up coming up with a pretty simple solution. I replaced:
Option "TwinViewOrientation" "clone"
with:
Option "TwinViewOrientation" "below"
and added the following to mythtv's mplayer command:
-xineramascreen 1
To view the other screen I use Beryl's clone desktop function. The only issue is that if you switch virtual-desktops, the video goes away. I'll figure that one out tomorrow...

Thank you for you help!

- Florian

P.S. MythTV is a fullscreen DVR and media-access software. Beryl is a 3d hardware accelerated composite manager.
 
Old 10-08-2007, 05:37 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Hey, glad you got a solution that you are happy with.

For a time, I had that inconvenience too of switching virtual desktops and the TV output would go away because it was only "running on one desktop" so to speak.
Surely **Gnome has an option similar to what I use on KDE to fix that: I click the top-left window icon of my Xine window (or whatever you are playing the TV output with) and click "Advanced.." --> "Special Windows Settings" and then from that menu, I specify that the application be shown on "All Desktops" and to "Force This Behaviour".
It works PERFECT and keeps the video output going to the TV, regardless which virtual desktop I am looking at on my 'puter monitor.

(** I say Gnome, because you are running Ubuntu, yes? But maybe Beryl will offer the setting I am referring to. Idon't know the ins and outs of Beryl/Gnome priority or arrangement.)

Last edited by GrapefruiTgirl; 10-08-2007 at 05:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kubuntu video setup pixellany Ubuntu 2 03-10-2007 07:04 AM
Manual Video Setup? njdube Ubuntu 2 07-08-2006 10:39 PM
plz help me setup video conferencing syed_abbas616 Linux - Networking 2 05-15-2006 07:16 AM
video cam setup allelopath Linux - General 1 02-22-2005 03:01 PM
Re-run the video setup? mchitsquad Red Hat 6 09-13-2003 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration