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


                    

Sponsored Ad

Reply
 
Thread Tools
Old 10-29-06, 02:34 PM   #1
dowop
Registered User
 
Join Date: Oct 2006
Posts: 5
Default AIGLX problem with dual screens

I am trying to run AIGLX with Beryl using dual screens (dual-head).

As soon as I start beryl-manager, my second screen becomes blacked out, although the first screen is working fine with the fx.

Beryl complains about "glXCreateContext failed"

Code:
user@local ~ $ XGL Absent, checking for NVIDIA
Nvidia Present
Relaunching beryl with __GL_YIELD="NOTHING"
XGL Absent, checking for NVIDIA
Nvidia Present
beryl: glXCreateContext failed
beryl: Failed to manage screen: 1
Initiating splash
Is this a known problem?
dowop is offline   Reply With Quote
Old 10-30-06, 05:46 PM   #2
dowop
Registered User
 
Join Date: Oct 2006
Posts: 5
Default Re: AIGLX problem with dual screens

Anyone?
dowop is offline   Reply With Quote

Sponsored Ads - Guests Only

Old 11-05-06, 01:21 PM   #3
n3b!
Registered User
 
Join Date: Nov 2006
Posts: 1
Default Re: AIGLX problem with dual screens

I had the same problem on a GeForce 7600. I didn't end up getting it to work with 2 separate X screens (with or without xinerama enabled), but when I turned on NVidia's twinview through nvidia-settings it works. Make sure you add the following to your xorg.conf (see howto: http://www.ubuntuforums.org/showthread.php?t=263851):
Code:
...
Section "ServerLayout"
  ...
  Option      "AIGLX" "on"
EndSection
...
Section "Screen"
...
    Option "AddARGBGLXVisuals" "True"
EndSection
Without the AddARGBGLXVisuals option beryl would load but the window decorator wouldn't (I was getting an error regarding GLXFBConfig).

Let me know if you did end up getting it working with 2 X screens as opposed to twinview as I think I prefer that configuration.
n3b! is offline   Reply With Quote
Old 11-15-06, 05:14 PM   #4
Ascodas
Registered User
 
Join Date: Nov 2006
Posts: 2
Default Re: AIGLX problem with dual screens

Quote:
Originally Posted by dowop
I am trying to run AIGLX with Beryl using dual screens (dual-head).

As soon as I start beryl-manager, my second screen becomes blacked out, although the first screen is working fine with the fx.

Beryl complains about "glXCreateContext failed"

Code:
user@local ~ $ XGL Absent, checking for NVIDIA
Nvidia Present
Relaunching beryl with __GL_YIELD="NOTHING"
XGL Absent, checking for NVIDIA
Nvidia Present
beryl: glXCreateContext failed
beryl: Failed to manage screen: 1
Initiating splash
Is this a known problem?
I am the same problem on my system, do you solve it ?
Ascodas is offline   Reply With Quote
Old 12-19-06, 08:43 AM   #5
Bob Bob
Registered User
 
Join Date: Dec 2006
Posts: 1
Default Re: AIGLX problem with dual screens

I seem to be in a similar position. I'm using FC6 and when I have kde autostart beryl-manager I get a normal beryl managed kde screen on my crt, but my lcd becomes black and unresponsive. So I disabled beryl-manager at kde startup and instead tried to start beryl in a terminal:

$beryl --screen 0 &
$beryl --screen 1 &

This successfully starts beryl for each display and both are functional. However, the window decorator is not working. If I then start beryl-manager, the display on which I start the manager will receive full decorations, but not the other display. If I then select Reload Window Decorator from the beryl menu in the display without window decorations, this display will now have the window decorations and the other display will lose its decorations. I don't know how to get window decorations working for both displays simultaneously. Any ideas?
Bob Bob is offline   Reply With Quote
Old 12-27-06, 04:37 PM   #6
mliang2
Registered User
 
Join Date: Dec 2006
Posts: 1
Default Re: AIGLX problem with dual screens

Here's a stupid workaround for dual screens (NOT Twinview). It'll enable beryl on the first screen, but not on the second.

mv /usr/bin/beryl /usr/bin/beryl.orig

vi /usr/bin/beryl and put in it:
#!/bin/bash
/usr/bin/beryl.orig --screen 0 $1 $2 $3 $4 $5 $6 $7 $8 $9


save and exit

chmod +x /usr/bin/beryl

now, run beryl-manager.

You'll probably have to rerun test steps everytime you upgrade beryl.

Thanks to the previous poster for the --screen trick idea.

mike
mliang2 is offline   Reply With Quote
Old 01-04-07, 07:47 AM   #7
cragdor
Registered User
 
cragdor's Avatar
 
Join Date: Jan 2007
Posts: 2
Default Re: AIGLX problem with dual screens

I have the solution! This enables both monitors to run emerald and display one big screen simular to xinerama. Emerald is also able to detect this and allows you to use some of the more fancy versions of cube animation for multiple desktops. This was tested on a 6600 Nvidia card with XORG 7.1 and Beryl 1.4 and involves shifting the handling of multiple monitors off of the xorg backend and more towards the nvidia driver.
ServerLayout
Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0 # Standard Single screen Layout!!
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection
Configure Monitors As is - I have commented out HorizSync and VertSync for AutoDetection
Code:
Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL  E773p"
#    HorizSync       30.0 - 70.0
#    VertRefresh     50.0 - 160.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Flat Panel"
    ModelName      "LCD Flat Panel 1280x1024"
 ##   HorizSync       31.0 - 79.0
  ##  VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection
Heres the nice part!!
Device
Code:
Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation" 
    BoardName      "GeForce 6600"
    BusID          "PCI:2:0:0"
       ## Rendering Tweaks I have used! Fixes some beryl problems
        Option     "RenderAccel" "true"
	Option	   "DisableGLXRootClipping" "true" #Fix Black windows
   	Option 	   "RenderAccel" "true"
   	Option	   "BackStoring" "true"
	Option     "AllowGLXWithComposite" "True"

        ## Add the secont monitor
        Option	   "TwinView" "true"
	Option	   "ConnectedMonitor" "DFP, CRT"
	Option	   "TwinViewOrientation" "LeftOf"
	Option	   "SecondMonitorHorizSync" "30.0 - 70.0"
	Option	   "SecondMonitorVertRefresh" "50.0 - 160.0"
	Option	   "HWCursor" "On"
	Option	   "MetaModes" "1280x1024,1280x1024"
       
        ## VNC Side project Ignore!
	Option     "rfbauth"     "/root/.vnc/passwd"
        Option     "rfbport"     "5900"
        Option     "usevnc"
EndSection
Slight Changes to these Remember to use include Subsection Dislpay
Code:
Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24
	Option      "AddARGBGLXVisuals" "true"
	Option "Composite" "Enable"
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection
I know this looks a funny way of doing things but it does work.
Note!!
Switching on both monitors doubles the work load!! There for some older graphics cards might stuggle!
Tip install Nvidia-Settings. Load it do not alter any X settings in here as it will overwrite your loverly xorg.conf and beryl will stop working! However this program interface directly to the nvidia garhipcs cards and you can set performance settings for OpenGL!

This is my first helpguide for nvnews! Hope this helps!!!

Last edited by cragdor; 01-04-07 at 07:59 AM.
cragdor is offline   Reply With Quote
Reply




Shop Online


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 -4. The time now is 04:40 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
nV News - Copyright ©1998-2010. All rights reserved.