Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-08-09, 03:33 PM   #1
JFMR
Registered User
 
Join Date: Mar 2009
Posts: 5
Exclamation Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no terminals

First of all I want to say that despite a few quirks, my system has been running quite smoothly (with what I've tested so far) with drivers 185.08.08 in Ubuntu Jaunty with Kde 3.5 and just wanted to say excellent job so far.

I am running two Geforce 8600 GTs with three lcd monitors. Monitors 1 and 2 are joined via twinview (they're on the same card), monitor 3 is added via xinerama.

Visual Aid:
[ 1 | 2 ][ 3 ]

What works:
1. Dragging windows between borders
2. Maximizing one OpenGL app across one, two, partially or fully across all 3 monitors (I simply launch any OpenGL app, wine or not to a window and select "No Border" from the window manager menu and if necessary, stretch the window to the appropriate size (Option Key + right click : Option Key is Alt by default, I changed this to the Windows Key).
3. Full Screening an app in window 3 will full screen it within that window only.

Issues:
1. Double Cursor: When moving the cursor across the Twinview screens (1 & 2) and screen 3, it leaves behind a static cursor at the screen boundary on the screen I'm not working on.

2. GLX Bad Drawable error when launching a wine app a 2nd time.
This has been previously noted here though: http://www.nvnews.net/vbulletin/show...=124730&page=2

3. Can't bring up my terminals via Cntrl+Alt+F1/F2/F3 etc: With prior driver releases I would get a blank screen with a blinking cursor, later just a blank screen, now pressing Cntrl+Alt+F1 will restart the GUI.
Similar isues noted here:
http://www.nvnews.net/vbulletin/showthread.php?t=131639
http://www.nvnews.net/vbulletin/show...light=xinerama

Other Lost/Desired Functionality:
4. I would like to define my twinview screen as two separate screens (so that when an app fullscreens, it only fullscreens to one monitor).
There was a patch here (for Xorg I believe?):
http://www.nvnews.net/vbulletin/show...t=85604&page=1
The thread opened 2 years and 3 months ago and hasn't seen activity for nearly 6 months. Has an option like the "TwinViewXineramaInfoOverride" been added to the mainstream xorg since then?
Does this patch still work?

5. Unable to run compiz (fails with a missing XGL error).

Anyway, I know that issues 2-5 have been reported before but I figured I'd check again before bumping some ancient threads. Issue 1 (double cursor) I haven't come across it in a few searches and would like a fix or workaround (along with 2 and 3 if possible)! I know this is a lot of issues for one thread but since they all seem xinerama related, I thought I'd include them in one spot.

I've attached the files required by the sticky and inline you may find my bastardized (but working) xorg.conf (please let me know if there's anything unecessary or missing in it).

Code:
# xorg.conf-4800x1200_triplehead-3x1-xinerama-dualview+monoview

Section "ServerLayout"
	Identifier	"Layout0"
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
	Option		"Clone"	"off"
	Option		"Xinerama"	"on"
  screen 0 "Screen0"
  screen 1 "Screen2" rightof "Screen0"
	#     Screen 1 "Screen1" LeftOf "Screen0"

  # Option XineramaInfo required a patch as of Feb 2007 is this still the case?
 Option         "TwinviewXineramaInfo"     "True"
  Option "XineramaInfoOverride" "1280x1024+0+0,1280x1024+1280+0,1280x1024+2560+0"
	
EndSection

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

Section "Module"
	Load		"dbe"
	#   Load "fbdevhw"
	#   Load "record"
	#   Load "freetype"
	#   Load "type1"
	Load		"i2c"
	Load		"bitmap"
	Load		"ddc"
	# Load "dri"
	Load		"extmod"
	Load		"freetype"
	Load		"glx"
	Load		"int10"
	#Load "type1"
	Load		"vbe"
EndSection

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

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

Section "Monitor"
	Identifier	"Monitor0"
	Vendorname	"Unknown"
	Modelname	"LG L1933TR"
	Horizsync	30.0	-	71.0
	Vertrefresh	56.0	-	75.0
	Option		"IgnoreEDID"	"true"
	
EndSection


#Section "Monitor"
#	Identifier	"Monitor1"
#	Vendorname	"Unknown"
#	Modelname	"LG L1933TR"
#	Horizsync	30.0	-	71.0
#	Vertrefresh	56.0	-	75.0
#EndSection

Section "Monitor"
	Identifier	"Monitor2"
	Vendorname	"Unknown"
	Modelname	"LG L1933TR"
	Horizsync	30.0	-	71.0
	Vertrefresh	56.0	-	75.0
	Option		"IgnoreEDID"	"true"
	
EndSection


## Connection 0
Section "Device"
	Identifier	"Videocard0"
	Driver		"nvidia"
	Busid		"PCI:3:0:0"
	#     Option "CursorShadow" "1"
	Option		"Coolbits"	"1"
	Option		"RenderAccel"	"True"
# Added for Compiz...
	Option "AllowGLXWithComposite" "True"
	Option		"IgnoreDisplayDevices"	"crt,tv"
	Option		"ConnectedMonitor"	"dfp,dfp"
	Option		"TwinView"	"yes"
	Option		"MetaModes"	"1280x1024,1280x1024"
	Option		"SecondMonitorVertRefresh"	"30-71"
	Option		"SecondMonitorVertRefresh"	"60-60"
	Option		"TwinViewOrientation"	"LeftOf"
	
	
	#     Screen 0
EndSection

## Connection 1
#Section "Device"
#     Identifier "Videocard1"
#     Driver "nvidia"
#     BusID "PCI:3:0:0"
#     Option "CursorShadow" "1"
#
#     Option "RenderAccel" "True"
#     Screen 1
#EndSection

## Connection 2
Section "Device"
	Identifier	"Videocard2"
	Driver		"nvidia"
	Busid		"PCI:10:0:0"
	Option		"Coolbits"	"1"
	Option		"IgnoreDisplayDevices"	"crt,tv"
	Option		"RenderAccel"	"True"
# Added for Compiz...
	Option "AllowGLXWithComposite" "True"
	Option		"ConnectedMonitor"	"dfp"
	
	#     Option "CursorShadow" "1"
	
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device		"Videocard0"
	Monitor		"Monitor0"
	Defaultdepth	24
	Option		"Metamodes"	"1280x1024,1280x1024"
	Option		"AddARGBGLXVisuals"	"True"
	SubSection "Display"
		Viewport	0	0
		
		Depth	24
		Modes		"1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Screen2"
	Device		"Videocard2"
	Monitor		"Monitor2"
	Defaultdepth	24
	Option		"Metamodes"	"1280x1024"
	Option		"AddARGBGLXVisuals"	"True"
	SubSection "Display"
		Viewport	0	0
		
		Depth	24
		Modes		"1280x1024"
	EndSubSection
EndSection

#Section "Screen"
#    Identifier "Screen1"
#    Device "Videocard0"
#    Monitor "Monitor1"
#    DefaultDepth 24
#    Option "Metamodes" "1280x1024,1280x1024,1280x1024"
#    SubSection "Display"
#      Depth 24
#      Modes "1280x1024"
#    EndSubSection
#EndSection


Section "DRI"
	Mode	0666
EndSection

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

Section "ServerFlags"
	Option "AllowEmptyInput" "0"
	Option "AutoAddDevices" "0" # will turn off the HAL Features
	Option "DontZap" "Off" # Enables ctrl-alt-del
EndSection
Attached Files
File Type: gz nvidia-bug-report.log.gz (44.8 KB, 82 views)
File Type: log nvidia-installer.log (52.4 KB, 87 views)

Last edited by JFMR; 05-08-09 at 03:37 PM. Reason: Adjusted title
JFMR is offline   Reply With Quote
Old 05-10-09, 12:00 AM   #2
JFMR
Registered User
 
Join Date: Mar 2009
Posts: 5
Default Re: Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no termi

So any ideas/theories on the cursor issue? Anybody else seeing it?
JFMR is offline   Reply With Quote
Old 05-10-09, 05:52 PM   #3
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no termi

The cursor issue is a known X server bug. There's a patch for it floating around, but I don't think it's been fixed in any distributions yet.
AaronP is offline   Reply With Quote
Old 05-10-09, 06:50 PM   #4
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no termi

Quote:
Originally Posted by JFMR View Post
3. Can't bring up my terminals via Cntrl+Alt+F1/F2/F3 etc: With prior driver releases I would get a blank screen with a blinking cursor, later just a blank screen, now pressing Cntrl+Alt+F1 will restart the GUI.
So you are the lucky one, eh? For me, a freshly installed Fedora 10 with
stock "nv" driver just fully crashes when switching to a text console. After
installing the "nvidia" driver it looked a little bit better - that means: i can
switch to a console, but when then rotating with i.e. ALT+ARROW_LEFT
the computer just hangs at vt8. The solution for me was to install xdm
instead of using gdm, plus using evdev instead of the default kbd and
mouse drivers. It seems like there is currently a lot of development
going on that is supposed to make the boot process nicer for certain distros,
but it also seems that these efforts are done with hot needles and are very
poorly tested.


Quote:
Originally Posted by JFMR View Post
Has an option like the "TwinViewXineramaInfoOverride" been added to the mainstream xorg since then?
Not that I'm aware of ...


Quote:
Originally Posted by JFMR View Post
Does this patch still work?
I'm not maintaining this patch any more, because all the pain
those multi-GPU setups caused lead me to a different solution:

http://www.nvnews.net/vbulletin/showthread.php?t=106517
http://www.nvnews.net/vbulletin/show...3&postcount=26

Quote:
Originally Posted by JFMR View Post
5. Unable to run compiz (fails with a missing XGL error).
That's a know problem: the randr extension and xinerama don't play
nicely with composite extension. There are no signs that this is going
to be fixed in any foreseeable future.

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 05-11-09, 06:40 AM   #5
drhirsch
Registered User
 
Join Date: Jul 2005
Posts: 61
Default Re: Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no termi

Have you ever tried a pure xinerama approach? Without using TwinView?

I am using Xinerama on a single 8800GS. TwinView worked good, but I have different screen sizes (1920x1200 and 1280x1024) and I found the dead area and the panning to which TwinView falls in this case back ugly.
drhirsch is offline   Reply With Quote
Old 05-23-09, 07:39 PM   #6
JFMR
Registered User
 
Join Date: Mar 2009
Posts: 5
Exclamation Re: Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no termi

Thank you for your quick responses. I wanted to wait until I could try some new things before replying. Well, I have 2 new things to try!

First I tested my old setup with the new 185.18.10 drivers. No issue was fixed. Now I went ahead and ordered a Dualhead2go box (the D2G-A2D) and just got done connecting it, reconfiguring X and benchmarking a couple of games.

Issues 1-3 listed are no longer present. My new setup is:

[ 1 | 2 ][ 3 ]
..|....|.....|..
.{D2G}....|..
......\....../..
{nVidia Card}

To get it working:

1. I started with a minimal xorg.conf (backed up my old one)
2. Booted into my GUI (KDE 3.5 in my case)
3. Started nVidia X Server settings (in the gui)
a) enabled the 2nd monitor (which it detected as simply "Matrox")
b) selected 2560x1024 from the pulldown
c) I dragged the new "Matrox" monitor to the correct position on the layout and hit apply.
d) Clicked on "Save to X Configuration File"
e) Clicked on "Show Preview"
f) Unchecked "Merge with existing file" (gives a fresh xorg - ignores changes you've made)
g) Highlighted the whole thing (Cntrl + A) and selected copy (Right click > Copy)
4. Open a konsole
a) Typed:
sudo kwrite /etc/X11/xorg.conf
5. Kwrite will open, deleted the whole xorg.conf and pasted in the one the nVidia Settings program created.
a) added the following line in the "Device" section:
Busid "PCI:3:0:0"
I was getting errors when booting "Device not found" until I added this line. Replace "PCI:3:0:0" with your correct busid, find it by running "lspci" at the command prompt and look for the line with your video card. Note that hex values should be converted to decimal (Ex: a:0:0 should be 10:0:0). As always consult your nVidia documentation and of course backup your old xorg.conf before making changes.

b) Saved the xorg.conf and rebooted. Below is my current working xorg.conf (note I still need to work on it to enable compiz and possibly get X to recognize the correct monitor boundaries):
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder63)  Thu Apr 30 17:38:47 PDT 2009


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"

#    Load           "freetype"
    Load           "dbe"
    Load           "extmod"
#    Load           "type1"
    Load           "glx"
EndSection

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

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Matrox"
    HorizSync       31.5 - 80.0
    VertRefresh     57.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Busid	   "PCI:3:0:0"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8600 GT"
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: 1280x1024 +2560+0, DFP-1: 2560x1024 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-1"
    Option         "metamodes" "CRT: 2560x1024 +0+0, DFP: 1280x1024 +2560+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

6. Success! (and ghosting...)

Well it works, the only issue is ghosting (most visible with black text on a white background). The ghosting issue is most likely due to having to convert the DVI connector on my video card to VGA to connect to the Matrox DH2G box. I've tried 3 adaptors (the one that came with the videocard, a Belkin "Pro" adapter, and a Macbook Pro adapter) the issue affected all 3 (and seemed more pronounced on the Belkin adapter). I'm going to order a VGA to DVI cable to see if that fixes the issue (1 less boundary for signal reflections to occur).

I have not tried to get compiz working yet and I have not found a way to define my new 2560x1024 "screen" as two 1280x1024 screens (so programs will maximize to one monitor, not two). I'll be working on that and updating that in a bit.


Now my crude benchmarking:

<< 3 Monitors, Two GeForce 8600's w/ xinerama enabled >>

Half-Life 2 episode 2 2560x1024 Windowed (centered on middle monitor)
17-40 outdoors (final encounter with striders, low point was a building exploding)
40-60fps indoors (~90 fps peak in low detail areas)

Neverwinter Nights 2560x1024 windowed (centered on middle monitor)
30-60 (saw momentary peaks in the 100s)



Disabled Xinerama, installed DH2G box, tried games with the same settings:

HL2 (2560x1024)
22-53 fps (final encounter, again typically 30fps or above, 22fps lowpoint when a building was exploding)
50-80 fps indoors (120 fps in narrow passages)

NWN
Unable to test atm since the game only detects 3840x1024 resolution. Even at that higher resolution though I was seeing:
35-55 fps

I'll figure out how to define the metamodes (I believe that's what I'm missing...) in my xorg and update what results I'm getting.


Only other issue is issue 4, Programs still maximize across 2 monitors. I'll have to look into that later. But good suggestion on the Matrox box. Had I known sooner I could have saved the cost of my 2nd videocard *and* gotten better performance!
JFMR is offline   Reply With Quote
Old 05-24-09, 05:18 AM   #7
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: Xinerama (3 monitors) Double Cursor, GLX Bad Drawable on 2nd wine launch,no termi

Quote:
Originally Posted by JFMR View Post
Issues 1-3 listed are no longer present. My new setup is:
Glad to read you got it working with the DH2G.

Quote:
Originally Posted by JFMR View Post
Well it works, the only issue is ghosting
What a pity that the there is no "true" digital version of the DH2G - I wish you
good luck with the DVI to VGA cable.

Quote:
Originally Posted by JFMR View Post
Only other issue is issue 4, Programs still maximize across 2 monitors.
You can easily fix this, just add the following lines to the screen section
of your xorg.conf:

Code:
Option "TwinviewXineramaInfo" "True"
Option "TwinViewXineramaInfoOverride" "1280x1024+0+0, 1280x1024+1024+0, 1280x1024+2048+0"
Quote:
Originally Posted by JFMR View Post
But good suggestion on the Matrox box. Had I known sooner I could have saved the cost of my 2nd videocard *and* gotten better performance!
Since the maximum resolution you can get out of a single card with Matrox boxes,
is "only" 5040x2100 (3x2x1680x1050@57Hz), I would prefer that the multi-GPU/multi-head
issues would finally get sorted out, but this didn't happened in the last four years and it
doesn't look like that it gets fixed in the next four years ...

BTW.: a MatroxTripleHead2Go Digital Edition can split one DVI output (from the
video card) to operate three LCDs (up to 3x1680x1050=5040x1050). Means:
with a TH2G, you should be able to run your two 8600GTs in SLI mode, then
splitting the video signal to your three 1280x1024 LCDs. The TH2G is quite
expensive, but at least for me, my LCDs typically last for a couple of GPU
generations, so do the TH2Gs and will pay off over time (but YMMV, of course).

regards

Bernhard
JaXXoN is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:01 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.