LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2008, 05:08 PM   #16
MonsterMaxx
Member
 
Registered: Aug 2005
Posts: 36

Original Poster
Rep: Reputation: 15

no, when I log in to the mch locally it launches what looks like two logins.
I say 'looks like' because the kde menubar and desktop is different on each screen. On the monitor it's the tweaked kde that I use for that user as it should, on the TV it's kde as it came out of the box. I've since tweaked it a little, but they are clearly separate desktops/menu.

However....I can roll the mouse from one screen to the other and the keyboard controls the one that has focus.
It is not possible to drag a window from one to the other. (which I read somewhere is normal)

There is just one xorg process running.

Not sure what all this means.

to run mythfrontend now I simply roll the mouse over to the desktop screen and launch myth.

I guess what I need to do is get ahold of what resources a user uses when he/she logs in. No?
Something in that user's config that says 'only use the tv screen', 'ignore keyboard input', 'listen to the remote control (lirc)', then of course I guess I have to tell all the other accounts to ignore lirc' probably also going to want this user to get the sound card too.


{it's almost like I don't speak the language}

Last edited by MonsterMaxx; 01-18-2008 at 05:10 PM.
 
Old 01-19-2008, 07:33 AM   #17
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
To do what you hod in mind requires running two x sessions, this means you have to login twice - one for each screen.

But I found some reading for you that should help:
http://www.mythtv.org/wiki/index.php...TV_Dual_Headed
... this uses xinit in the way I was hoping to use gdm.conf, and saves me having to go back through your xorg.conf
 
Old 01-19-2008, 05:08 PM   #18
MonsterMaxx
Member
 
Registered: Aug 2005
Posts: 36

Original Poster
Rep: Reputation: 15
akkk, ok then, I'll work on that for a bit...

thanks
 
Old 01-21-2008, 03:53 AM   #19
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
[checking some assumptions]
With a standard xorg setup the assumption is that all screens in the session are the same user. You have multiple screens, but only one set of input devices so there is no reason (with the exception of tv out) to run different users for each. If you only have one user its easy enough, make them auto login and then run myth to the second screen in xinitrc or equiv...

With multiusers, make myth run for all of them and just require that *someone* is logged in to watch TV....
 
Old 10-17-2008, 12:54 AM   #20
bevanh
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Is anyone still reading this thread?

I have an nvidia card (8600) set up and working well with separate X sessions and this mode works better for my situation that Twinview/Xinerama.

[Background: I have a media PC with a small LCD screen built into the PC case. This is at 1024x768 running on the VGA connector. The DVI out runs through DVI/HDMI cable to an AV receiver and from there to a Panasonic Plasma (HDMI connected too). This runs at 1920x1080.

Separate X sessions works well - I can use the small screen for system admin etc or starting music in Amarok. I can use the TV to start movies etc. Applications opened in the separate X sessions always open on the screen from which they were launched and maximise nicely to each screen (never try to stretch across both screens). And I never have any reason to move windows between screens.]


Now... for the question! If I boot up the PC before I switch on the TV, the second X session doesn't start. I can switch on the small screen after booting and the "main" X session is running there... but I have to reboot (or at least restart X) if I don't switch on the TV first. So - is there some way, maybe an option in xorg.conf, to force the second X session to start, even if it doesn't detect the monitor connected/switched on at start up??

Thanks!
 
Old 10-17-2008, 03:17 AM   #21
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I suspect you can use the old-style xorg dual screen to get this effect instead of xrandr.

Have you tried using mythtv to access the TV instead?
 
Old 10-17-2008, 03:55 AM   #22
bevanh
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Hi,
No, I don't have Mythtv installed yet, nor do I have a tuner card. One day I'll do all that, but for now I was hoping to just get working what I described.

I've heard of xrandr but I don't know what this is - I've only experimented with the obvious options in nvidia-settings.

I'll look for some more info on xrandr.

Thanks.
 
Old 10-17-2008, 04:55 AM   #23
bevanh
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Sorry, misread that. Mmm, so what is the old-style that should work??

Thanks!
 
Old 10-17-2008, 08:37 PM   #24
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Ah - right - xrandr is supposed to help with autodetecting your monitors. It does not enable dual head unless two monitors are detected - for eg. However, a TV on s-video does not seem to be detected, and you suspect that just telling X that there are two monitors, even when one output is not connected, may help.

There is an older method which just defined different screens for each monitor.

Jut search for xorg dual head to get loads of examples.
For me to help, I'll need to see your existing xorg.conf and the lspci entry for our video card.

However - never used this with s-video.
Looking into it - laptops with s-video usually have a hardware output switch for it, often fn+F8. When this is used the laptop screen switches off and the picture appears on the TV. No messing about required - but you only get one screen at a time.

Last edited by Simon Bridge; 10-17-2008 at 08:39 PM.
 
Old 10-18-2008, 02:04 AM   #25
bevanh
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Hi Simon,
Thanks for that. Searching on those terms has helped return some more useful information, but it's not working so far. Here's my xorg.conf (this one works - before I starting experimenting and broke it)!

Just re-capping, I'm not using svideo... the TV is on the DVI output of the video card (via DVI to HDMI cable) and the small monitor is on the dsub VGA port.

I don't know why there are three each of Device, Monitor and Screen sections - I only have two screens. This xorg.conf has been modified fairly extensively by Ubuntu Screens and Graphics tool and nvidia-settings before I finally got it working to this point, so the extra sections could have been inserted by one of these tools at some stage?

I appreciate you taking the time to look at this for me!

XORG.CONF
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@vernadsky) Tue Mar 4 20:24:34 UTC 2008

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
EndSection

Section "Module"
Load "glx"
Load "GLcore"
Load "v4l"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

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

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Emulate3Buttons" "true"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
VendorName "Generic LCD Display"
ModelName "LCD Panel 1024x768"
HorizSync 31.5 - 48.0
VertRefresh 56.0 - 65.0
Gamma 1
ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
ModeLine "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-1"
HorizSync 31.5 - 48.0
VertRefresh 56.0 - 65.0
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "CMO CMC 17 AD"
HorizSync 30.0 - 82.0
VertRefresh 50.0 - 75.0
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
VendorName "NVIDIA"
BoardName "NVIDIA GeForce 8 Series"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8500 GT"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8500 GT"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 24
Modes "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "1024x768@60 +0+0; 800x600@60 +0+0; 800x600@56 +0+0; 640x480@60 +0+0"
# Removed Option "metamodes" "CRT: 1024x768@60 +0+0; CRT: 800x600@60 +0+0; CRT: 800x600@56 +0+0; CRT: 640x480@60 +0+0"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT: 1024x768 +0+0"
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP: nvidia-auto-select +0+0"
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection



LSPCI1
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82P965/G965 PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HB (ICH8) 4 port SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8500 GT (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
 
  


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
multi head with separate sessions? machs_fuel Linux - Desktop 1 10-15-2007 07:28 PM
Separate Wallpaper in Twin View fredmt Linux - General 1 08-28-2005 06:29 PM
Xinerama and Twin View for multi-monitor used2win32 Linux - Hardware 7 01-16-2005 07:56 AM
Multi-monitor Issues on RH9, Geforce 4 Ti Dual Head + TNT2 Single Head the letter b Linux - Newbie 3 12-05-2004 12:23 AM
multi-head/multiple displays RLBaldwin Linux - Newbie 0 04-26-2001 08:30 AM


All times are GMT -5. The time now is 02:22 AM.

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