Problem with fglrx drivers on 2.6.20.4

Everything about X, Gnome, KDE, ... and everything running on it

Problem with fglrx drivers on 2.6.20.4

Postby russellc » 2007-04-24 16:29

This has been going on for awhile but recently they released the 2.36.5 drivers which work with kernel 2.6.20 without patches. I installed it using module assistant and the installation went fine. I get the same error as I did when using the previous drivers that were patched.

Output of LIBGL_DEBUG=verbose fglrxinfo:
Code: Select all
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libGL error: XF86DRIQueryDirectRenderingCapable failed
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)


Output of dmesg | grep fglrx:
Code: Select all
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 1398 MBytes.
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed


Output of cat /var/log/Xorg.0.log:
Code: Select all
...
(II) Loading sub module "fglrxdrm"
(II) LoadModule: "fglrxdrm"
(II) Loading /usr/lib/xorg/modules/linux/libfglrxdrm.so
(II) Module fglrxdrm: vendor="FireGL - ATI Technologies Inc."
(II) fglrx(0): Depth moves disabled by default
(**) fglrx(0): Capabilities: 0x00000000
(**) fglrx(0): CapabilitiesEx: 0x00000000
(**) fglrx(0): cpuFlags: 0x8000001d
(==) fglrx(0): OpenGL ClientDriverName: "fglrx_dri.so"
(**) fglrx(0): ATI GART size: 128 MB
(WW) fglrx(0): No DRM connection for driver fglrx.
(II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 65536
(**) fglrx(0): UseFastTLS=0
(**) fglrx(0): BlockSignalsOnLock=1
(==) fglrx(0): EnablePrivateBackZ = NO
(II) fglrx(0): driver needs X.org 7.1.x.y with x.y >= 0.0
(II) fglrx(0): detected X.org 7.1.1.0
(EE) fglrx(0): GART is not initialized, disabling DRI
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *
(II) fglrx(0): FBADPhys: 0xc0000000 FBMappedSize: 0x08000000
(II) fglrx(0): FBMM initialized for area (0,0)-(1472,8191)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1472,900) (front color buffer - assumption)
(II) fglrx(0): Largest offscreen area available: 1472 x 7291
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(**) fglrx(0): DPMS enabled
(WW) fglrx(0): Textured Video not supported without DRI enabled.
(WW) fglrx(0): Video Overlay not supported on AVIVO based graphics cards. For XVideo support use Option "TexturedVideo".
(II) fglrx(0): GLESX enableFlags = 0
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
(II) fglrx(0): Acceleration enabled
(WW) fglrx(0): Option "VendorName" is not used
(WW) fglrx(0): Option "ModelName" is not used
(II) fglrx(0): Direct rendering disabled


Contents of xorg.conf:
Code: Select all
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
   Identifier     "Default Layout"
   Screen      0  "aticonfig-Screen[0]" 0 0
   InputDevice    "Generic Keyboard"
   InputDevice    "Synaptics Touchpad"
   InputDevice    "Configured Mouse"
EndSection

Section "Files"

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

Section "Module"
   Load  "i2c"
   Load  "bitmap"
   Load  "ddc"
   Load  "dri"
   Load  "extmod"
   Load  "freetype"
   Load  "glx"
   Load  "int10"
   Load  "vbe"
EndSection

Section "InputDevice"
   Identifier  "Generic Keyboard"
   Driver      "kbd"
   Option       "CoreKeyboard"
   Option       "XkbRules" "xorg"
   Option       "XkbModel" "pc104"
   Option       "XkbLayout" "us"
EndSection

Section "InputDevice"

   #Option      "CorePointer"
   Identifier  "Configured Mouse"
   Driver      "mouse"
   Option       "SendCoreEvents" "on"
   Option       "Device" "/dev/input/mice"
   Option       "Protocol" "ImPS/2"
   Option       "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
   Identifier  "Synaptics Touchpad"
   Driver      "synaptics"
   Option       "CorePointer"
   Option       "Device" "/dev/input/mouse1"
   Option       "Protocol" "auto-dev"
   Option       "LeftEdge" "100"
   Option       "RightEdge" "5000"
   Option       "TopEdge" "50"
   Option       "BottomEdge" "300"
   Option       "FingerLow" "10"
   Option       "FingerHigh" "20"
   Option       "MaxTapTime" "150"
   Option       "MaxTapMove" "220"
   Option       "MaxDoubleTapTime" "180"
   Option       "VertScrollDelta" "25"
   Option       "HorizScrollDelta" "80"
   Option       "VertTwoFingerScroll" "true"
   Option       "HorizTwoFingerScroll" "true"
   Option       "FastTaps" "false"
   Option       "TapButton2" "3"
   Option       "TapButton3" "2"
   Option       "MinSpeed" "0.79"
   Option       "MaxSpeed" "0.88"
   Option       "AccelFactor" "0.02"
   Option       "PalmDetect" "1"
   Option       "SHMConfig" "on"
EndSection

Section "Monitor"
   Identifier   "Color LCD"
   HorizSync    28.0 - 72.0
   VertRefresh  43.0 - 60.0
   Option       "DPMS"
EndSection

Section "Monitor"
   Identifier  "aticonfig-Monitor[0]"
   Option       "VendorName" "ATI Proprietary Driver"
   Option       "ModelName" "Generic Autodetecting Monitor"
   Option       "DPMS" "true"
EndSection

Section "Device"
   Identifier  "aticonfig-Device[0]"
   Driver      "fglrx"
   BusID       "PCI:1:0:0"
   
   # === disable/enable XAA/DRI ===
   Option "no_accel"                   "no"
   Option "no_dri"                     "no"
   
   # === misc DRI settings ===
   Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
   
   # ### FireGL DDX driver module specific settings ###
   # === Screen Management ===
   Option "DesktopSetup"      "0x00000100"
   Option "ScreenOverlap"     "0"
   
   Option "DPMS"              "off"
   
   # === TV-out Management ===
   Option "TVFormat"                   "NTSC-M"     
   Option "TVStandard"                 "VIDEO"     
   Option "TVHSizeAdj"                 "0"     
   Option "TVVSizeAdj"                 "0"     
   Option "TVHPosAdj"                  "0"     
   Option "TVVPosAdj"                  "0"     
   Option "TVHStartAdj"                "0"     
   Option "TVColorAdj"                 "0"     
   Option "GammaCorrectionI"           "0x00000000"
   Option "GammaCorrectionII"          "0x00000000"
   
   # === OpenGL specific profiles/settings ===
   Option "Capabilities"               "0x00000000"
   Option "CapabilitiesEx"             "0x00000000"
   
   # === Video Overlay for the Xv extension ===
   Option "VideoOverlay"               "on"
   
   # === OpenGL Overlay ===
   # Note: When OpenGL Overlay is enabled, Video Overlay
   #       will be disabled automatically
   Option "OpenGLOverlay"              "off"
   
   # === Center Mode (Laptops only) ===
   Option "CenterMode"                 "off"
   
   # === Pseudo Color Visuals (8-bit visuals) ===
   Option "PseudoColorVisuals"         "off"
   
   # === QBS Management ===
   Option "Stereo"                     "off"
   Option "StereoSyncEnable"           "1"
   
   # === FSAA Management ===
   Option "FSAAEnable"                 "no"
   Option "FSAAScale"                  "1"
   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"
   
   # === Misc Options ===
   Option "UseFastTLS"                 "0"
   Option "BlockSignalsOnLock"         "on"
   Option "UseInternalAGPGART"         "no"
   Option "ForceGenericCPU"            "no"
EndSection

Section "Screen"
   Identifier "Default Screen"
   Device     "aticonfig-Device[0]"
   Monitor    "Color LCD"
   DefaultDepth     24
   SubSection "Display"
      Depth     1
      Modes    "1440x900"
   EndSubSection
   SubSection "Display"
      Depth     4
      Modes    "1440x900"
   EndSubSection
   SubSection "Display"
      Depth     8
      Modes    "1440x900"
   EndSubSection
   SubSection "Display"
      Depth     15
      Modes    "1440x900"
   EndSubSection
   SubSection "Display"
      Depth     16
      Modes    "1440x900"
   EndSubSection
   SubSection "Display"
      Depth     24
      Modes    "1440x900"
   EndSubSection
EndSection

Section "Screen"
   Identifier "aticonfig-Screen[0]"
   Device     "aticonfig-Device[0]"
   Monitor    "aticonfig-Monitor[0]"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "DRI"
   Mode         0666
EndSection

Section "Extensions"
   Option       "Composite" "Disable"
EndSection

Section "ServerFlags"
   Option       "DontZap" "no"
   Option       "AIGLX" "off"
EndSection


I'm using a Macbook Pro (Core Duo) with Debian Etch 4.0 with the 2.6.20.4 kernel from kernel.org. If seeing any parts of the kernel config will help, I'd be glad to post them. The video card is an ATI Mobility X1600 128MB.

I've tried many things before but ended up giving up and lived with 2D accel only. Now I'm missing having 3D acceleration so finally decided to seek help on a forum (usually I end up finding a solution either by Google or on my own). This time I'm stumped. Thanks in advance! Any help will be appreciated :D
russellc
 
Posts: 6
Joined: 2007-04-24 16:10
Location: Markham, Ontario, Canada

Postby rickh » 2007-04-24 16:55

As you might expect, there has been lots of discussion on this topic. Here's a thread that links to some of those discussions

viewtopic.php?t=14166
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3473
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby russellc » 2007-04-24 17:41

I've already looked through previous threads and such. Nothing points to any missing links or anything obvious like that. Otherwise, I would've fixed it already. I've installed these drivers and they worked fine on the 2.6.18 kernel when I was using Ubuntu, but since moving to Debian, they have not worked. Lastly, my installation process is the same as this one.

Also, on modprobe fglrx, I get the following output:
Code: Select all
FATAL: Error inserting fglrx (/lib/modules/2.6.20.4/misc/fglrx.ko): Operation not permitted


LIBGL_DEBUG=verbose glxgears outputs the following:
Code: Select all
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libGL error: XF86DRIQueryDirectRenderingCapable failed

and does not render the gears properly.
russellc
 
Posts: 6
Joined: 2007-04-24 16:10
Location: Markham, Ontario, Canada

Postby rickh » 2007-04-24 18:05

FATAL: Error inserting fglrx (/lib/modules/2.6.20.4/misc/fglrx.ko): Operation not permitted


Maybe you tried to do the modprobe while another video module was active, or maybe you weren't root. If, in fact, the module was correctly built, it would make the most sense to boot to single user mode to modprobe it.

All I know is that I built it in Sid with zero problems. The series of steps I used is in one of those threads from the post linked above.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3473
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby russellc » 2007-04-24 18:13

Output of lsmod shows the following:
Code: Select all
Module                  Size  Used by
snd_hda_intel          21016  1
snd_hda_codec         160640  1 snd_hda_intel
snd_pcm_oss            41184  0
snd_mixer_oss          16896  2 snd_pcm_oss
snd_pcm                72580  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              23172  1 snd_pcm
snd                    53156  6 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               8288  2 snd
snd_page_alloc         10056  2 snd_hda_intel,snd_pcm
hci_usb                17628  2
rfcomm                 39768  0
l2cap                  24448  5 rfcomm
bluetooth              55076  7 hci_usb,rfcomm,l2cap
wlan_wep                6912  1
appletouch              9472  0
sbp2                   23172  0
eth1394                19524  0
wlan_scan_sta          14080  1
ath_rate_sample        13440  1
ohci1394               36016  0
ieee1394               98008  3 sbp2,eth1394,ohci1394
ath_pci                96352  0
wlan                  204784  5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal               191760  3 ath_rate_sample,ath_pci


There are no other video modules loaded, I don't think. I am running modprobe with root. Otherwise modprobe is not even recognized.

I suppose I could try installing it the manual way. I have a feeling that won't work either though..
russellc
 
Posts: 6
Joined: 2007-04-24 16:10
Location: Markham, Ontario, Canada

Postby hash » 2007-04-24 19:56

is this a stock kernel?
I dont see agpgart module ..isnt that required for fglrx to load?
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors
User avatar
hash
 
Posts: 160
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

Postby hash » 2007-04-24 20:06

In order to use the fglrx internal AGP support, you have to make sure that the kernel agpgart support is not active, i.e. it is not compiled into the kernel and the kernel modules are not loaded. If the fglrx kernel module detects that the kernel agpgart support is active, it will automatically use that even if its internal AGP support is requested in order to avoid conflicts that can cause problems under some circumstances.

prolly not ..
but my lsmod gives:
Code: Select all
>lsmod|grep fgl
fglrx                 650588  11
agpgart                30384  1 fglrx

Code: Select all
>fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI FireGL V7100
OpenGL version string: 2.0.6400 (8.35.5)
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors
User avatar
hash
 
Posts: 160
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

Postby russellc » 2007-04-24 20:12

Thanks hash, I will recompile my kernel now and give it a shot :D
(I didn't have the ATI AGPGart kernel module built)
russellc
 
Posts: 6
Joined: 2007-04-24 16:10
Location: Markham, Ontario, Canada

Postby russellc » 2007-04-24 23:38

For a quick update, the problem has been fixed. I was missing the agpgart kernel module. Thanks for all the help :D
russellc
 
Posts: 6
Joined: 2007-04-24 16:10
Location: Markham, Ontario, Canada

Postby hash » 2007-04-25 00:34

great, glad to know.
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors
User avatar
hash
 
Posts: 160
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

apgart, how?

Postby sebbesen » 2007-05-06 20:17

Hi guys! I'm having the same problems with my macbook pro, and I have tried pretty much everything to make my ATI x1600 card work to get right resolution and 3d-acceleration etc. but this apgart thingy I haven't tried yet...

Could any of you explain to me exacty how I activate it (or should it be deactivated?). It would be very helpful if I could get the detailed step-by-step solution as I'm pretty new to Linux and I don't even know how to recompile a kernel for instance.

My computer is a 1st. gen. Macbook Pro Core Duo 1.83GHz

Thanks a million. My ATI card problem is pretty much the only thing that keeps me from using Debian!

Best regards, Søren Ebbesen
sebbesen
 

Postby hash » 2007-05-06 20:25

dont know how things would differ for a macbook...
would help if you could post whatever info you could ..like russellc did.
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors
User avatar
hash
 
Posts: 160
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

Postby rickh » 2007-05-06 20:37

FWIW, my 64-bit system does not show apgart in lsmod, and it works fine ... frglx 8.36-5 ... kernel 2.6.20-1
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3473
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby hash » 2007-05-06 20:45

In order to use the fglrx internal AGP support, you have to make sure that the kernel agpgart support is not active,


as I quoted earlier..

I still cant make sense out of it. Maybe what they are trying to say is you shouldnt build the agp support into the kernel (either have as module/dont include?)

Prolly thats what russellc faced (had it inbuilt first (so it didnt work), but later made it a module (so it did. like it does for me..) as they 'try' to say below?
If the fglrx kernel module detects that the kernel agpgart support is active, it will automatically use that even if its internal AGP support is requested in order to avoid conflicts that can cause problems under some circumstances.
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors
User avatar
hash
 
Posts: 160
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

m'kay

Postby sebbesen » 2007-05-06 21:13

Hi Hash, thanks a lot so far:-) How exacty do I get to change the agpgart from "build-in" to a "module"? I'm afraid I can't supply any detail info about my system because I just reinstalled Mac OS X, but I was running Debian Etch 2.6.18.4 and the ATI 8.36.5 driver I think...

/søren :)
sebbesen
 

Next

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable