Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XOrg + dual monitors = hardlock!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Thu Jan 06, 2005 8:37 pm    Post subject: XOrg + dual monitors = hardlock! Reply with quote

Hi,

I've been having this problem since 6.8.0-r1, and since I didn't find any help in the forums, I've been patiently waiting for a bugfix or something, and now i'm on 6.8.1.901 and still nothing, so I turn back to the forums for another try. 8)

Basically, I've got two video cards, and AGP ATI All-in-Wonder Radeon and a PCI Radeon 7000. I'd been happily running X on both cards, unfortunately without direct rendering working, up from xfree 4.3 to xorg 6.7. xorg 6.8 and later, however, grind my computer to a halt if I attempt to start up using both monitors. (Everything's locked up, can't even ping the machine or light the keyboard leds) The one bright spot is that direct rendering is working now, but I can only use one card at a time. :cry: (both work individually)

Anybody have any ideas?

Thanks,
Ricky

If it helps, my xorg.conf:
http://s88382932.onlinehome.us/files/xorg.conf
and my emerge info:
Code:
Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-nitro2 i686)
=================================================================
System uname: 2.6.10-nitro2 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Dec 25 2004, 08:56:27)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O2 -pipe -fmove-all-movables -fprefetch-loop-arrays -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O2 -pipe -fmove-all-movables -fprefetch-loop-arrays -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.noved.org/ http://gentoo.noved.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/bmg /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa apm avi berkdb bitmap-fonts breakme cdr crypt cups dvd eds emacs encode esd fam flac foomaticdb fortran gdbm gif gnome gnutls gstreamer gtk gtk2 guile hal imagemagick imap imlib ipv6 java jpeg kerberos krb4 libwww mad mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts usb xinerama xml xml2 xmms xv xvid zlib video_cards_radeon"
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Jan 06, 2005 8:42 pm    Post subject: Reply with quote

when does your PC lock up? when you're booting linux, or when your're starting x? for diagnostic purposes, you may want to config your PC so that X doesn't load automatically. this might make it easier to determine when the lockup is occurring.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Thu Jan 06, 2005 8:51 pm    Post subject: Reply with quote

I guess I should have been more specific. I log into the console and run X via startx. X begins loading, and once both monitors have been initialized, the both get stuck on black. I can't access logs or such at the time, cuz everything is frozen.
Back to top
View user's profile Send private message
kadaver_
n00b
n00b


Joined: 23 Jan 2004
Posts: 32
Location: Lulea, Sweden

PostPosted: Thu Jan 06, 2005 8:55 pm    Post subject: Reply with quote

Code:

Section "Device"
    Option   "AGPMode"  "4"
    Option   "AGPFastWrite" "True"
    Option   "EnablePageFlip"  "True"
    Option   "RenderAccel" "True"
    Option   "MonitorLayout" "TMDS, CRT"
#    Option   "IgnoreEDID" "on"
    Identifier  "ATI All-in-Wonder Radeon"
    Driver      "radeon"
    #VideoRam    32768
    # Insert Clocks lines here if appropriate
    BusID       "PCI:1:0:0"
EndSection

Section "Device"
#    Option   "ForcePCIMode"  "True"
    Option   "RenderAccel" "True"
    Identifier  "ATI Radeon VE"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon RV100 QY [Radeon 7000/VE]"
    BusID       "PCI:0:9:0"
EndSection


Try putting Screen 0 and Screen 1 inside the stuff =)
Like this:

Code:

Section "Device"
    Option   "AGPMode"  "4"
    Option   "AGPFastWrite" "True"
    Option   "EnablePageFlip"  "True"
    Option   "RenderAccel" "True"
    Option   "MonitorLayout" "TMDS, CRT"
#    Option   "IgnoreEDID" "on"
    Identifier  "ATI All-in-Wonder Radeon"
     Screen     0
    Driver      "radeon"
    #VideoRam    32768
    # Insert Clocks lines here if appropriate
    BusID       "PCI:1:0:0"
EndSection

Section "Device"
#    Option   "ForcePCIMode"  "True"
    Option   "RenderAccel" "True"
    Identifier  "ATI Radeon VE"
     Screen    1
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon RV100 QY [Radeon 7000/VE]"
    BusID       "PCI:0:9:0"
EndSection


Or vice verca depending on your ServerLayout section...

EDIT:
This isn't taken from thin air btw, It worked for me =)


Last edited by kadaver_ on Thu Jan 06, 2005 8:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Jan 06, 2005 8:56 pm    Post subject: Reply with quote

are you attempting to load a window manager, like kde or gnome, or are you just loading the ugly little x window manager, twm?

do you see any sort of cursor when the screens go blank, or nothing at all?
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Thu Jan 06, 2005 10:00 pm    Post subject: Reply with quote

kadaver_: I tried your suggestion, and I don't lock up when I try my default layout, but I only get one monitor now, so it's kinda the same thing ;-) I get the following in my xorg log:
Quote:
(EE) Screen 1 deleted because of no matching config section.
I tried just adding the "Screen 0" to one card and commenting out the "Screen 1" from the either, and that resulted in the lockup again. (If I try and use just the second monitor with the "Screen 1" left in, I get "no screen found")

Bob P: I'm currently launching xfce4, but all window managers I try result in the same lockup.
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Fri Jan 07, 2005 7:10 pm    Post subject: Reply with quote

hmm... anybody have any more suggestions? :?
Back to top
View user's profile Send private message
kadaver_
n00b
n00b


Joined: 23 Jan 2004
Posts: 32
Location: Lulea, Sweden

PostPosted: Sat Jan 08, 2005 5:49 pm    Post subject: Reply with quote

I'm all out of suggestions. Although I might have one more =)

You have three monitors right?
Have you tried going dualscreen with only two (one on each card)?
If that works you can begin troubleshooting from there.
Also:

Code:

Section "ServerLayout"
        Identifier     "DualDisplay"

        Screen      0  "Screen 1" 0 0
        Screen      1  "Screen 2" LeftOf "Screen 1"

        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard1" "CoreKeyboard"

        Option "Xinerama" "False"
EndSection

Section "ServerLayout"
   Identifier     "Xinerama"

   Screen      0  "Screen 1" 0 0
   Screen      1  "Screen 2" LeftOf "Screen 1"

   InputDevice    "Mouse1" "CorePointer"
   InputDevice    "Keyboard1" "CoreKeyboard"

   Option "Xinerama" "True"
EndSection


To the right of each "Screen 1" you have two zeros, what are those?
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Sun Jan 09, 2005 6:35 pm    Post subject: Reply with quote

Actually, I only have one on each card. The 0 0, i think, is to set the origin at the top right of the screen 1. I got it from some other config, but perhaps it's only applicable to xinerama.
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Fri Jan 14, 2005 5:51 pm    Post subject: Reply with quote

For what it's worth 6.8.1.902 doesn't seem to make any difference. Also, if anyone sees anything useful, here's as much of the xorg log as actually gets written:
http://s88382932.onlinehome.us/files/Xorg.0.log
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Jan 14, 2005 8:03 pm    Post subject: Reply with quote

here is a dual head xinerama setup that i am using on one of my PCs. each monitor is on its own card.
Code:
gentoo ~ # cat /etc/X11/xorg.conf

Section "ServerLayout"
        Identifier     "xinerama"
        Screen         0 "LeftScreen" 0 0
        Screen         1 "RightScreen" LeftOf "LeftScreen"
        InputDevice    "PS/2 Mouse" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
        Option          "Xinerama"      "on"
        Option          "standby time"  "20"
        Option          "suspend time"  "30"
        Option          "off time"      "60"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
        # Additional fonts: Locale, Gimp, TTF...
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
EndSection


Section "Module"
        Load  "ddc"  # ddc probing of monitor
        Load  "GLcore"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "bitmap" # bitmap-fonts
#       Load  "speedo"
        Load  "type1"
        Load  "freetype"
        Load  "record"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "CoreKeyboard"
        Option "XkbRules" "xfree86"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Serial Mouse"
        Driver      "mouse"
        Option      "Protocol" "Microsoft"
        Option      "Device" "/dev/ttyS0"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option      "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier  "PS/2 Mouse"
        Driver      "mouse"
        Option      "Protocol" "PS/2"
        Option      "ZAxisMapping"   "4 5"
        Option      "Device" "/dev/input/mice"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option      "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier    "USB Mouse"
        Driver        "mouse"
        Option        "Device"                "/dev/input/mice"
        Option        "SendCoreEvents"        "true"
        Option        "Protocol"              "IMPS/2"
        Option        "ZAxisMapping"          "4 5"
        Option        "Buttons"               "5"
EndSection



Section "Monitor"
        #DisplaySize  390   290 # mm
        Identifier   "Nokia 445Xav"
        VendorName   "NOK"
        ModelName    "445Xav"
        HorizSync    30.0 - 102.0
        VertRefresh  50.0 - 120.0
        Option      "DPMS"
EndSection

Section "Monitor"
        #DisplaySize  390   290 # mm
        Identifier   "Nokia 445Xi"
        VendorName   "NOK"
        ModelName    "445Xi"
        HorizSync    30.0 - 102.0
        VertRefresh  50.0 - 120.0
        Option      "DPMS"
EndSection



Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "PciRetry"                  # [<bool>]
        #Option     "SyncOnGreen"               # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "Overlay"                   # [<str>]
        #Option     "MGASDRAM"                  # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "SetMclk"                   # <freq>
        #Option     "OverclockMem"              # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "Rotate"                    # [<str>]
        #Option     "TexturedVideo"             # [<bool>]
        #Option     "Crtc2Half"                 # [<bool>]
        #Option     "Crtc2Ram"                  # <i>
        #Option     "Int10"                     # [<bool>]
        #Option     "AGPMode"                   # <i>
        #Option     "AGPSize"                   # <i>
        #Option     "DigitalScreen1"            # [<bool>]
        #Option     "DigitalScreen2"            # [<bool>]
        #Option     "TV"                        # [<bool>]
        #Option     "TVStandard"                # [<str>]
        #Option     "CableType"                 # [<str>]
        #Option     "NoHal"                     # [<bool>]
        #Option     "SwappedHead"               # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "MergedFB"                  # [<bool>]
        #Option     "Monitor2HSync"             # [<str>]
        #Option     "Monitor2VRefresh"          # [<str>]
        #Option     "Monitor2Position"          # [<str>]
        #Option     "MetaModes"                 # [<str>]
        Identifier  "Card0"
        Driver      "mga"
        VideoRam    8192
        VendorName  "Matrox Graphics, Inc."
        BoardName   "MGA 2164W [Millennium II]"
        BusID       "PCI:1:9:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "PciRetry"                  # [<bool>]
        #Option     "SyncOnGreen"               # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "Overlay"                   # [<str>]
        #Option     "MGASDRAM"                  # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "SetMclk"                   # <freq>
        #Option     "OverclockMem"              # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "Rotate"                    # [<str>]
        #Option     "TexturedVideo"             # [<bool>]
        #Option     "Crtc2Half"                 # [<bool>]
        #Option     "Crtc2Ram"                  # <i>
        #Option     "Int10"                     # [<bool>]
        #Option     "AGPMode"                   # <i>
        #Option     "AGPSize"                   # <i>
        #Option     "DigitalScreen1"            # [<bool>]
        #Option     "DigitalScreen2"            # [<bool>]
        #Option     "TV"                        # [<bool>]
        #Option     "TVStandard"                # [<str>]
        #Option     "CableType"                 # [<str>]
        #Option     "NoHal"                     # [<bool>]
        #Option     "SwappedHead"               # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "MergedFB"                  # [<bool>]
        #Option     "Monitor2HSync"             # [<str>]
        #Option     "Monitor2VRefresh"          # [<str>]
        #Option     "Monitor2Position"          # [<str>]
        #Option     "MetaModes"                 # [<str>]
        Identifier  "Card1"
        Driver      "mga"
        VideoRam    8192
        VendorName  "Matrox Graphics, Inc."
        BoardName   "MGA 2164W [Millennium II]"
        BusID       "PCI:1:11:0"
EndSection






Section "Screen"
        Identifier "RightScreen"
        Device     "Card0"
        Monitor    "Nokia 445Xav"
        DefaultColorDepth 16
        SubSection "Display"
                Depth     1
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     4
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     15
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     16
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     32
                Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "LeftScreen"
        Device     "Card1"
        Monitor    "Nokia 445Xi"
        DefaultColorDepth 16
        SubSection "Display"
                Depth     1
                Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     4
                Modes "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     15
                Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     16
                Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     32
                Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
       Mode 0666
EndSection

_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Fri Jan 14, 2005 8:58 pm    Post subject: Reply with quote

So, I've been toying around with stuff, and apparently if I disable DRI, it works. (I seem to recall trying that before and it not working, so I guess something got fixed along the way. ;-))

This is kind of a less than ideal solution, for obvious reasons. (glxgears drops about 800 fps 8O) So, now that we know that DRI is the problem, does anyone know of any possible fixes? Or at least a bug report or something I could watch?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum