LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-10-2006, 07:45 AM   #16
ganooch
Member
 
Registered: Aug 2006
Location: Dallas, TX
Distribution: Slackware 11.0
Posts: 39

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by Eternal_Newbie
Do you have tmpfs (POSIX Shared Memory (/dev/shm) to quote installation instruction at www.atitech.com) enabled? It's required for the ATI fglrx driver to function properly.

Add this line to your /etc/fstab file as root

Code:
tmpfs        /dev/shm        tmpfs        defaults    0   0
remember to leave a blank line at the end of the /etc/fstab

then as root
Code:
mount tmpfs
PS: Is it just me or has the ATI site gotten worse since the AMD takeover?
This was one of the first things that I did. Thanks for the info, but I have followed Old Fogie's post to a T, then made minor alterations as a desperate attempt to get this thing working.
 
Old 11-10-2006, 08:54 AM   #17
kairen
Member
 
Registered: Oct 2006
Location: Bulgaria
Distribution: Slackware64 14.1
Posts: 88

Rep: Reputation: 15
ganooch,
Where did you get ATI drivers from? I checked ATI's webside a minute ago and there was the driver for Xorg 6.8. In Slack11 it is 6.9 and the driver seem to be incompatible with it. Is there other places for ATI's drivers?
 
Old 11-10-2006, 09:11 AM   #18
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,248

Rep: Reputation: 46
Quote:
Originally Posted by kairen
ganooch,
Where did you get ATI drivers from? I checked ATI's webside a minute ago and there was the driver for Xorg 6.8. In Slack11 it is 6.9 and the driver seem to be incompatible with it. Is there other places for ATI's drivers?
The one from the ATI site works fine with Slack 11.
 
Old 11-10-2006, 09:20 AM   #19
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 59
If you keep at it long enough you'll get the ATI drivers working. It took me 2 years, maybe the emu will speed thing up .
 
Old 11-11-2006, 11:30 AM   #20
kairen
Member
 
Registered: Oct 2006
Location: Bulgaria
Distribution: Slackware64 14.1
Posts: 88

Rep: Reputation: 15
Hi masonm,
so may be I am not doing things right. Will you please help me solve this?
I downloaded driver from ATI site -> rpm2tgz -> installpkg -> /.make.sh in /lib/modules/fglrx/build_mod -> ./make_install.sh in /lib/modules/fglrx -> add the "tmpfs /dev/shm tmpfs defaults 0 0" line to fstab (but not sure what for?) -> aticonfig --initial (everything in xorg.conf seem fine). When I restart X I get that error:

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: Linux 2.4.33.3 i686 [ELF]
Current Operating System: Linux anelia 2.6.17.13-smp #1 SMP Sat Sep 30 17:13:16 CDT 2006
i686
Build Date: 16 September 2006
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 11 17:34:29 2006
(==) Using config file: "/etc/X11/xorg.conf"
[R200Setup] X version mismatch - detected X.org 7.0.0.0, required X.org 6.8.0.0
(EE) Failed to load module "fglrx" (module requirement mismatch, 0)
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

What is wrong? It seem to me driver is incompatible with 6.9. I used 2.6.13 source to build fglrx because in 2.6.17.13 there was no .configure file - I don't know why.
 
Old 11-11-2006, 11:39 AM   #21
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,384

Rep: Reputation: Disabled
I think you need the 55MB large .run file ("ATI driver installer"), not the .rpm file. I never had any luck with the RPM releases.

Eric
 
Old 11-13-2006, 04:18 AM   #22
kairen
Member
 
Registered: Oct 2006
Location: Bulgaria
Distribution: Slackware64 14.1
Posts: 88

Rep: Reputation: 15
Now all seem to work fine.

fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON X600 PRO Generic
OpenGL version string: 2.0.6119 (8.30.3)

Is that meens DRI is enabled?
If so here is how I did it ( in case someone needs it )
I downloaded driver & installer from ATI site. I checked my kernel source - it had no .config file so I copied the one from /boot and run make oldconfig. That was I am running 2.6.17.13 kernel with "smp" support and the source was not configured with it.

I run installer (very dull program for me - but necessary ) and started reading the log file. It said .../include/version.h not correct. In that file I add "-smp" at the end of kernel version.

Then there were no problems. Add /sbin/modprobe fglrx to modules and reboot.
dmesg said:

fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' tain
[fglrx] Maximum main memory to use for locked dma buffers: 431 MBytes.
[fglrx] module loaded - fglrx 8.30.3 [Oct 26 2006] on minor 0
Capability LSM initialized

The odd thing is I have to use previously generated xorg.conf and modified with aticonfig because now xorgsetup breaks. So actually I used rpm2tgz first and installed driver and generate xorg.conf with xorgsetup and aticonfig --initial. Then remove driver and use installer to make the real module and driver.
to use dri as user add this to xorg,conf:

Section "dri"
# Access to OpenGL ICD is allowed for all users:
Mode 0666
EndSection


then you add The Line in fstab and that is all.

Some of my problems were because of gcc version. If the kernel is compiled with older version then the one you use to compile fglrx the kernel will not load the module. The past few days I tried to use 2.6.13 from slack10.2 compiled with gcc 3.3 on Slack11 box running gcc 3.4.

I could not find fglrxconf- thing. What is that?
 
Old 11-14-2006, 01:55 AM   #23
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Using the smp kernel is the actual culprit here, and affects Nvidia too, not just ATI.

The actual issue with the gcc thing is going to be explained a bit better in my DRI thread in the next few days or so. It has nothing to do with compiler versions or anythiung like that, it has to do with kernel names between the kernel version and the smp version.

You fixed it, kinda, with the 'make oldconfig' command.

As I said, more to be posted later. I'm in San Antonio TX at the moment, and should be home within the week to make edits on the main post.

Until then, glad you got it up/running...
 
Old 11-14-2006, 05:36 PM   #24
dcabro
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
I've spent several hours trying to get 3d on my ati radeon 9600xt and still no luck. I've been recompiling the kernel for about 10 times misled by lots of different howtos ..
Anyways, I have the latest 8.30.3 drivers from ati's (amd's) site, but still no luck with dri.
I have glx and dri modules enabled in xorg.conf, device section is using fglrx module, with or without dri/internal agp, still can't get direct rendering.

Here is the relevant output form Xorg.0.log :
Code:
II) fglrx(0): [drm] DRM interface version 1.0
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:2:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0x5000
(II) fglrx(0): [drm] mapped SAREA 0x5000 to 0xb6f6f000
(II) fglrx(0): [drm] framebuffer handle = 0x6000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0):     Name: fglrx
(II) fglrx(0):     Version: 8.30.3
(II) fglrx(0):     Date: Oct 26 2006
(II) fglrx(0):     Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0):     Build-Kernel UTS_RELEASE:        2.6.18
(II) fglrx(0):     Build-Kernel MODVERSIONS:        yes
(II) fglrx(0):     Build-Kernel __SMP__:            yes
(II) fglrx(0):     Build-Kernel PAGE_SIZE:          0x1000
(II) fglrx(0): [drm] register handle = 0x00007000
(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0x5000 at 0xb6f6f000
(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
(==) fglrx(0): Write-combining range (0xc0000000,0x8000000)
(II) fglrx(0): FBMM initialized for area (0,0)-(2048,8191)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(2048,1536) (front color buffer - assumption)
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(**) fglrx(0): DPMS enabled
(WW) fglrx(0): Option "VendorName" is not used
(WW) fglrx(0): Option "ModelName" is not used
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
	Screen to screen bit blits
	Solid filled rectangles
	Solid Horizontal and Vertical Lines
	Offscreen Pixmaps
	Setting up tile and stipple cache:
		32 128x128 slots
		32 256x256 slots
		16 512x512 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): Direct rendering disabled
(==) fglrx(0): Using hardware cursor
Mount: tmpfs /dev/shm tmpfs defaults 0 0

dmesg:
[fglrx] Internal AGP is not supported in 2.6 kernel.
[fglrx:firegl_unlock] *ERROR* Process 6070 using kernel context 0

lsmod:

Module Size Used by
fglrx 402252 0
agpgart 33608 1 fglrx
usbhid 39136 0
i2c_nforce2 7936 0
i2c_core 21376 1 i2c_nforce2
ehci_hcd 29064 0
ohci_hcd 20228 0
usbcore 118020 4 usbhid,ehci_hcd,ohci_hcd
ne2k_pci 11616 0
8390 10240 1 ne2k_pci

I've tried with dri enabled/disabled in kernel (according to some, it should be enabled/disabled) and still no luck.
Kernel is 2.6.18 (i didn't have luck with 2.6.17.13 neither), and Xorg is 6.9
Any help on this will be much appreciated.
 
Old 11-15-2006, 02:52 AM   #25
glussier
Member
 
Registered: Jul 2005
Location: Montreal, Qc, Canada
Distribution: Fedora Core 5/6 Slackware 10.1/11
Posts: 120

Rep: Reputation: 15
Quote:
dmesg:
[fglrx] Internal AGP is not supported in 2.6 kernel.
[fglrx:firegl_unlock] *ERROR* Process 6070 using kernel context 0
Add

Code:
      Option	    "UseInternalAGPGART" "no"
to the Section "Device" of the /etc/X11/xorg.conf file.

Last edited by glussier; 11-15-2006 at 02:54 AM.
 
Old 11-15-2006, 01:09 PM   #26
ganooch
Member
 
Registered: Aug 2006
Location: Dallas, TX
Distribution: Slackware 11.0
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kairen
Now all seem to work fine.



Is that meens DRI is enabled?
Use glxinfo and you should be able to see if DRI is actually enabled.
 
Old 11-15-2006, 02:09 PM   #27
dcabro
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
@glussier

Already tried that, with or without "UseInternalAgp", I get the same. No direct rendering.
 
Old 11-17-2006, 11:31 AM   #28
ganooch
Member
 
Registered: Aug 2006
Location: Dallas, TX
Distribution: Slackware 11.0
Posts: 39

Original Poster
Rep: Reputation: 15
DRI is still not working. I changed my xorg.conf file because the original one I posted is created by fglrxconfig and has tons of unneeded stuff in it. My current xorg.conf file is below:

Code:
bash-3.1$ cat xorg.conf
#le 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 commands as root:
#
#   cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
#   md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum
#   dpkg-reconfigure xserver-xorg

Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
        # paths to defoma fonts, need packages msttcorefonts & x-ttcidfont-conf
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "evdev"
        Load    "extmod"
        Load    "freetype"
        Load    "int10"
        Load    "record"
        Load    "type1"
        Load    "vbe"
        # These modules are required for 3D acceleration
        Load    "GLcore"
        Load    "glx"
        Load    "dri"
        # Load "extmod" but omit DGA extension
        # (the DGA extension is broken in the fglrx driver)
        SubSection "extmod"
                Option "omit xfree86-dga"
        EndSubSection
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "rapidaccess2"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Resolution"            "800"
        Option          "Buttons"               "10"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7"
EndSection

Section "Device"
        Identifier      "ATI Technologies, Inc. RV350 AS [Radeon 9600 AS]"
        Driver          "fglrx"
        BusID           "PCI:1:0:0"
        Option          "RenderAccel"           "true"
        # If X refuses to use the screen resolution you asked for,
        # uncomment this; see "Bugs and Workarounds" for details.
                #Option "NoDDC"
        # === 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"
        # === Use internal AGP GART support? ===
        # If OpenGL acceleration doesn't work, try using "yes" here
        # and disable the kernel agpgart driver.
                Option "UseInternalAGPGART" "no"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        HorizSync       30-69
        VertRefresh     50-120
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "ATI Technologies, Inc. RV350 AS [Radeon 9600 AS]"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection
bash-3.1$
Also fgl_glxgears is giving me the following error:

bash-3.1$ fgl_glxgears
Using GLX_SGIX_pbuffer
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 131 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 32
Current serial number in output stream: 32
bash-3.1$

Also, my lspci is below:

Code:
root@chris:~# lspci
00:00.0 Host bridge: Intel Corporation 915G/P/GV/GL/PL/910GL Express Memory Controller Hub (rev 0e)
00:01.0 PCI bridge: Intel Corporation 915G/P/GV/GL/PL/910GL Express PCI Express Root Port (rev 0e)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc M24 1P [Radeon Mobility X600]
0b:00.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
0b:00.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
0b:00.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
0b:00.4 Class 0805: Texas Instruments PCI6411, PCI6421, PCI6611, PCI6621, PCI7411, PCI7421, PCI7611, PCI7621 Secure Digital (SD) Controller
0b:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0b:03.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
root@chris:~#
If anyone has any suggestions, I am open to input. I have been at this for over a month now. Thanks in advance.

Last edited by ganooch; 11-17-2006 at 11:35 AM.
 
Old 11-19-2006, 12:54 PM   #29
dcabro
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
I finally got it working. You can see the results here img390.imageshack.us/img390/7624/atifn2.png

@ganooch
Can you give the output of "lsmod" and "dmesg | grep fglrx"
 
Old 12-18-2006, 11:21 AM   #30
ganooch
Member
 
Registered: Aug 2006
Location: Dallas, TX
Distribution: Slackware 11.0
Posts: 39

Original Poster
Rep: Reputation: 15
Well, I finally got DRI enabled. I found that there is a newer version of the ATI driver available on the ATI site. I had an older one. Now glxinfo shows Direct rendering: Yes.

Here is the problem. glxgears only gives me ~250fps. I would like to use xgl, so glxgears needs to be 700 - 1000fps. I have an ATI Radeon Mobility X600 card in my laptop. Is this 250fps a limitation of the card, or is there something else that I need to do to achieve 3D acceleration?

Thanks in advance for any help!


--ganooch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI and DRI drivers help please Digitalsoldier Linux - Newbie 4 08-04-2005 11:18 PM
cannot get DRI to work with ATI fglrx drivers under X alesz Fedora 2 06-09-2005 08:39 AM
ATI 9600se running slower than older ATI card w/ DRI on euth665667 Linux - Hardware 0 07-03-2004 07:10 AM
ati problem..(DRI + tv out mix) NoirX252 Linux - Software 1 05-09-2004 02:04 PM
ATI radeon, no DRI breakerfall Linux - Hardware 3 11-11-2003 08:42 PM


All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration