LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-16-2008, 07:04 AM   #1
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
trouble between twinview and separate screens


Left monitor: 1280x1024
Right monitor: 1680x1050 [widescreen]

If I use twinview, videos in totem play on Right monitor fullscreen but opengl games span both screens.

If I use separate screens (no twinview) opengl games run at 1680x1050 on the Right monitor but video output is limited to 1280x1024, screensavers also run at 1280x1024 on the Right monitor in this setup. The desktop is still visible on the right and bottom edge of the screen.

I am using metacity/GNOME

Is there a way to force opengl games and videos to run correctly on the Right monitor? Preferably using twinview or xinerama, I have read the fine manuals but can't see a solution. I want to use the left hand monitor for productive work only.

Code:
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

#Section "ServerFlags"
#    Option         "Xinerama" "True"
#Endsection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "NV41GL [Quadro FX 1400]"
    BusID          "PCI:64:0:0"
    Screen         0
EndSection

Section "Device"
    Identifier     "Card1"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "NV41GL [Quadro FX 1400]"
    BusID          "PCI:64:0:0"
    Screen         1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    Option         "TwinView" "True"
    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Card1"
    Monitor        "Monitor1"
    Option         "TwinView" "True"
    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection
I want my cake and I want to eat it!
 
Old 02-17-2008, 02:26 AM   #2
Count Zero
Member
 
Registered: Feb 2008
Distribution: Debian wheezy
Posts: 130

Rep: Reputation: 15
I use twinview myself and earlier on I used Gnome but as I too wanted to use only the left screen for productive work that proved bothersome (my right screen is a projector which is frequently and unproductively used to watch movies). The reason was the cascading behavior of metacity which kept opening windows on the projector when I didn't use it. To the best of my knowledge this is a non-configurable behavior but a guy on ubuntuforums have made a patch for some releases (in this thread)

When it comes to some applications spanning both screens I too have that problem but with very few applications. I just configure that in the applications configuration option. I don't have any xinerama option at all in my xorg.conf but I know I used to have. That option decides, I think, if you have one common screen or two separate but I can't remember if it should be set to true or false though and I couldn't find a good list of twinview options.

Here is my xorg.conf.

Code:
Section "Device"
	Identifier	"nVidia Corporation G70 [GeForce 7600 GS]"
	Driver		"nvidia"
	BusID		"PCI:7:0:0"
	Option		"AddARGBVisuals"		"True"
	Option		"AddARGBGLXVisuals"		"True"
	Option		"RenderAccel"			"true"
	Option		"AllowGLXWithComposite"		"true"
	Option		"NoLogo"			"True"
        Option "TwinView" "True"
        Option "TwinViewOrientation" "RightOf"
        Option "MetaModes" "1024x768,1280x720"
EndSection

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

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-64
	VertRefresh	43-60
EndSection

Section "Monitor"
        Identifier      "Projector"
        Option          "DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
        Device          "nVidia Corporation G70 [GeForce 7600 GS]"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Modes		"1024x768" "800x600"
	EndSubSection
EndSection

Section "Screen"        #this section is from projector xorg
        Identifier      "Default Screen"
        Device          "nVidia Corporation G70 [GeForce 7600 GS]"
        Monitor         "Projector"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes		"1280x720" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen" 0 0
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection
 
Old 02-17-2008, 04:14 AM   #3
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Original Poster
Rep: Reputation: 52
Thanks for sharing that, xinerama is open source, twinview is nvidia's proprietary implementation of a similar idea.

I decided to compromise for now, I have two separate screens now but both are set to 1280x1024 to avoid complication. As my widescreen monitor is for media and gaming only I can do without the super high resolution.
 
Old 02-22-2008, 07:51 AM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Original Poster
Rep: Reputation: 52
I found a nice solution...
My large widescreen monitor now plays widescreen movies correctly and high resolution games correctly.
I used normal Xorg config (not twinview or xinerama), both screens are setup at 1280x1024 but I have included the higher resolutions in my xorg.conf... this has the effect of making the righ hand monitor look fine for movies, the two drawbacks are:

1. wrong aspect ratio for normal desktop apps, no problem for fullscreen video though
2. the right screen is a panning virtual desktop, if the mouse moves to the bottom right of the right screen the desktop pans

Neither of these things bother me this is ideal, I am still able to access my higher resolutions for excellent gaming fun!

Code:
#Section "ServerFlags"
#    Option         "Xinerama" "True"
#Endsection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "NV41GL [Quadro FX 1400]"
    BusID          "PCI:64:0:0"
    Screen         0
EndSection

Section "Device"
    Identifier     "Card1"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "NV41GL [Quadro FX 1400]"
    BusID          "PCI:64:0:0"
    Screen         1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth   24
#    Option         "TwinView" "True"
#    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes       "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Card1"
    Monitor        "Monitor1"
    DefaultDepth   24
#    Option         "TwinView" "True"
#    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes       "1280x1024" "1024x768" "1680x1050" "1440x900"
    EndSubSection
EndSection
 
  


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
twinview & xorg- spanning,separate desktops lightningdan Linux - Software 0 09-06-2006 06:48 PM
TwinView & Separate Desktops PsypherPunk Linux - Hardware 3 05-23-2006 05:43 PM
2 screens, need same resolution (TwinView) drummerdan Slackware 5 03-08-2006 04:41 PM
Twinview with separate desktops mykrob Suse/Novell 1 09-17-2005 04:33 AM
Twinview as separate screens, not stretched degraffenried13 Linux - General 3 06-06-2004 03:30 PM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration