Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unusual Problems with XFree and ati-drivers
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
Xiphas
n00b
n00b


Joined: 15 Oct 2002
Posts: 40

PostPosted: Thu Jan 22, 2004 7:18 am    Post subject: Unusual Problems with XFree and ati-drivers Reply with quote

My X server was working perfectly fine until I decided to try out the FireGL ATI driver. I can't start an X server for any other user other than root. But, even as root when I use the "startxfce4" script, it crashes out on me too...

Sometimes it gives no error, and other times it outputs (I also get this error when it successfully starts as root...):

Code:
(WW) flgrx: No matching Device section for instance (BusID PCI:1:0:1) found
(EE) flgrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
(EE) flgrx(0): can not init AGP
(EE) flgrx(0): Failed to setup write-combining range (0xd0000000,0x40000000)


I'm using the kernel AGPGART, and I have it compiled into my (2.6.1-gentoo) kernel.

Here is my XF86Config-4 file:

Code:
Section "dri"
    Mode 0666
EndSection

Section "Module"
    Load        "dbe" 
    Load     "extmod"
    Load        "type1"
    Load        "freetype"
    Load        "glx"   
    Load        "dri" 
    Load   "v4l"
EndSection

Section "Files"
   RgbPath      "/usr/X11R6/lib/X11/rgb"

   FontPath      "/usr/X11R6/lib/X11/fonts/local/"
   FontPath      "/usr/X11R6/lib/X11/fonts/misc/"
   FontPath      "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath      "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath      "/usr/X11R6/lib/X11/fonts/Type1/"
   FontPath      "/usr/X11R6/lib/X11/fonts/Speedo/"
   FontPath      "/usr/X11R6/lib/X11/fonts/75dpi/"
   FontPath      "/usr/X11R6/lib/X11/fonts/100dpi/"
   FontPath      "/usr/X11R6/lib/X11/fonts/TTF/"
   FontPath      "/usr/X11R6/lib/X11/fonts/truetype/"
   FontPath      "/usr/X11R6/lib/X11/fonts/100dpi/"
   FontPath      "/usr/X11R6/lib/X11/fonts/util"
   FontPath      "/usr/share/fonts/afms"
   FontPath      "/usr/share/fonts/artwiz"
   FontPath      "/usr/share/fonts/freefont"
   FontPath      "/usr/share/fonts/ttf-bitstream-vera"
EndSection

Section "ServerFlags"
#    Option "NoTrapSignals"
#    Option "DontZap"
#    Option "Dont Zoom"
#    Option "DisableVidModeExtension"
#    Option "AllowNonLocalXvidtune"
#    Option "DisableModInDev"
#    Option "AllowNonLocalModInDev"
EndSection

Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option    "AutoRepeat"    "500 30"
    Option    "XkbRules"   "xfree86"
    Option    "XkbModel"   "pc104"
    Option    "XkbLayout"   "us"
EndSection


Section "InputDevice"
    Identifier   "Mouse1"
    Driver    "mouse"
    Option    "Protocol"         "ImPS/2"
    Option    "ZAxisMapping"   "4 5"
    Option    "Device"         "/dev/mouse"
EndSection

Section "Monitor"
    Identifier  "Monitor0"
    HorizSync   30-85
    VertRefresh 50-120
    Option "DPMS"
EndSection


Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "vga"
EndSection

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
    Option "DesktopSetup"               "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
    Option "NoTV"                       "yes"     
    Option "TVStandard"                 "NTSC-M"     
    Option "TVHSizeAdj"                 "0"     
    Option "TVVSizeAdj"                 "0"     
    Option "TVHPosAdj"                  "0"     
    Option "TVVPosAdj"                  "0"     
    Option "TVHStartAdj"                "0"     
    Option "TVColorAdj"                 "0"     
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
    Option "Capabilities"               "0x00000800"
    Option "VideoOverlay"               "on"
    Option "OpenGLOverlay"              "off"
    Option "CenterMode"                 "off"
    Option "PseudoColorVisuals"         "off"
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
    Option "FSAAScale"                  "6"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "no"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"
    Screen 0
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "Monitor0"
    DefaultDepth 24

    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


Any help would be much appreciated.
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Thu Jan 22, 2004 9:34 am    Post subject: Reply with quote

First thing I'd do is try building the kernel agp drivers as modules. I remember having some sort of issue or another when I had them compiled in.
Back to top
View user's profile Send private message
Xiphas
n00b
n00b


Joined: 15 Oct 2002
Posts: 40

PostPosted: Thu Jan 22, 2004 3:12 pm    Post subject: Reply with quote

I tried that, but it didn't make a difference.

Thanks for the idea, though.
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Thu Jan 22, 2004 11:38 pm    Post subject: Reply with quote

if you use the agp as a module, make absolutely sure you modprobe it BEFORE loading the fglrx. Furthermore make sure that you modprobe the appropriate driver for your specific agp chipset (eg sis_agp). I've read about fglrx not loading these properly on its own. Also, just for giggles, have you tried using the internal agp? That actually works fine for me, and so does external. ATi, last I checked, actually recommends using internal whenever possible. Something else to try...Also, do you have SMP enabled in your kernel? I had problems with fglrx when I had SMP enabled. I had just forgotten to remove it (don't need it as I have a uni-proc machine).
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