You are not logged in.

#1 2009-06-07 05:10:45

MystX
Member
Registered: 2009-06-04
Posts: 42

[SOLVED] fglrx on Arch64 - Ati 4850

hi everyone,
I have a mess on my hands trying to get my 4850 to function properly on Arch64 so i can run compiz. I got whitescreens using xf86-video-ati, so i tried catalyst from the AUR, only to get errors that the module fglrx didnt exist (even after adding it to rc.conf). I then tried the driver from the ati site with the same issues..

Maybe someone could explain how to get it working from the start and ill uninstall everything i have at the moment? To remember and note every setting ive tried thus far would probably take more effort. Is it possible to get 3d accel etc working with the opensource drivers?

Thanks for ny help

Last edited by MystX (2009-06-15 05:28:09)

Offline

#2 2009-06-07 09:58:48

Perry3D
Member
Registered: 2008-03-20
Posts: 553

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Hi MystX,

at the moment there is no usable 3D - acceleration for your card with the open source drivers. It's marked as experimental. For desktop effects like compiz you have to use the closed driver -> catalyst.

Arch does not officially support the catalyst driver. But you can install it from AUR. And i recommend this and not the ATI installer.

1) Build and install the catalyst-utils package. Maybe you have to uninstall the libgl (OpenGl library) package first. Catalyst-utils provides this.
If you are using sudo and yaourt:

sudo pacman -Rd libgl
yaourt -S catalyst-utils

2) After that, install the catalyst package:

yaourt -S catalyst

3) Add fglrx to the modules array in /etc/rc.conf
4) Generate the /etc/X11/xorg.conf

sudo aticonfig --initial --input=/etc/X11/xorg.conf

5) Simple way: restart

Perry

Offline

#3 2009-06-08 06:49:05

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Thanks Perry,

Whats the best way to completely get rid of the ati sh-installed driver? i used an uninstall script that it installed somewhere.. cant remember now. Ill try your steps out soon.

Offline

#4 2009-06-10 03:52:24

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Hmm.. Here is the resulting xorg.conf i get from that.. Im not sure if its running radeon or fglrx. Im hoping fglrx, as i uninstalled xf86-video-ati before installing fglrx..

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "glx"
    Load  "extmod"
    Load  "record"
    Load  "dri"
    Load  "dbe"
    Load  "dri2"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
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     "ShadowFB"               # [<bool>]
        #Option     "DefaultRefresh"         # [<bool>]
        #Option     "ModeSetClearScreen"     # [<bool>]
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "RV770 [Radeon HD 4850]"
    BusID       "PCI:1:0:0"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

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

EDIT: i have deleted all the double ups and X boots fine. But now when i try to run compiz i get:

 * Detected Session: unknown
 * Searching for installed applications...
 * No GLX_EXT_texture_from_pixmap with direct rendering context
 ... nor with indirect rendering, this isn't going to work!
 * Using the GTK Interface
 * Starting Compiz
 ... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering
compiz (core) - Fatal: glXCreateContext failed
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Last edited by MystX (2009-06-10 08:48:59)

Offline

#5 2009-06-10 09:41:49

Perry3D
Member
Registered: 2008-03-20
Posts: 553

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Ok, i think there are some options missing in the xorg.conf.

Here you can find a Howto: http://forum.compiz-fusion.org/showthread.php?t=6794
It describes more options than you need but at the moment i am not sitting at my desktop pc. In the evening i can send you my xorg.conf.

Offline

#6 2009-06-10 09:44:04

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Thanks Perry.

On a side note, ive just decided to change from xfce to gnome. How do i uninstall xfce cleanly? pacman has a heap of dependancies it cant solve sad

Offline

#7 2009-06-11 08:45:07

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Back again, Ive read the guide and set up my xorg.conf accordingly.. But still the same error: "No GLX_EXT_texture_from_pixmap with direct rendering context"

Here's what i have now:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option        "AIGLX" "on"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "glx"
    Load  "extmod"
    Load  "record"
    Load  "dri"
    Load  "dbe"
    Load  "dri2"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

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

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    Option        "TexturedVideo" "on"
    Option        "Textured2D" "on"
    Option        "UseFastTLS" "1"
    Option        "BackingStore" "on"
    BusID       "PCI:1:0:0"
EndSection

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

Section "DRI"
    Mode         0666
EndSection

Section "Extensions"
    Option        "Composite" "Enable"
    Option        "RENDER" "Enable"
    Option        "DAMAGE" "Enable"
EndSection

Offline

#8 2009-06-13 00:03:03

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Just an update: glxgears and glxinfo BOTH give me this

X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 160 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 19
Current serial number in output stream: 19

Offline

#9 2009-06-15 04:27:06

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Another update -  Attempting to run Xorg -configure gives an error.. I think it might be a problem with the driver. Still no one can help?

The related Xorg log:

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.6.1.901 (1.6.2 RC 1)
Release Date: 2009-5-8
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.29-ARCH x86_64 
Current Operating System: Linux BEAST 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 06:42:43 UTC 2009 x86_64
Build Date: 28 May 2009  08:24:17PM
 
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
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: Sun Feb 27 17:24:16 2005
(II) Loader magic: 0x3540
(II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 5.0
    X.Org XInput driver : 4.0
    X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 7

(--) PCI:*(0@1:0:0) ATI Technologies Inc RV770 [Radeon HD 4850] rev 0, Mem @ 0xd0000000/268435456, 0xfe8e0000/65536, I/O @ 0x0000c000/256, BIOS @ 0x????????/131072
List of video drivers:
    fglrx
    vesa
(II) LoadModule: "fglrx"
(II) Loading /usr/lib/xorg/modules/drivers//fglrx_drv.so
(II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
    compiled for 1.4.99.906, module version = 8.61.2
    Module class: X.Org Video Driver
(II) LoadModule: "vesa"
(II) Loading /usr/lib/xorg/modules/drivers//vesa_drv.so
(II) Module vesa: vendor="X.Org Foundation"
    compiled for 1.6.0, module version = 2.2.0
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 5.0
(II) System resource ranges:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(II) Primary Device is: PCI 01@00:00:0
(WW) Falling back to old probe method for fglrx
(II) ATI Proprietary Linux Driver Version Identifier:8.61.2
(II) ATI Proprietary Linux Driver Release Identifier: 8.612                                
(II) ATI Proprietary Linux Driver Build Date: Apr 28 2009 21:45:06
(II) Loading PCS database from /etc/ati/amdpcsdb
(WW) This ATI Proprietary Linux Driver does not guarantee support of video driver ABI higher than 2.0
(WW) Video driver ABI version of the X server is 5.0
(WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
(**) ChipID override: 0x9442
(**) Chipset Supported AMD Graphics Processor (0x9442) found

Backtrace:
0: Xorg(xorg_backtrace+0x26) [0x4ef7e6]
1: Xorg(xf86SigHandler+0x6f) [0x47b96f]
2: /lib/libc.so.6 [0x7f56270b2350]
3: /usr/lib/xorg/modules/drivers//fglrx_drv.so(atiddxProbeMain+0x34b) [0x7f562687a26b]
4: Xorg(xf86CallDriverProbe+0xd9) [0x46dbd9]
5: Xorg(DoConfigure+0x1ab) [0x48b8ab]
6: Xorg(InitOutput+0x159) [0x46e099]
7: Xorg(main+0x20c) [0x43382c]
8: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f562709e9ed]
9: Xorg [0x432e59]

Fatal server error:
Caught signal 11.  Server aborting


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.

Offline

#10 2009-06-15 05:27:42

MystX
Member
Registered: 2009-06-04
Posts: 42

Re: [SOLVED] fglrx on Arch64 - Ati 4850

Ok, got it fixed. followed these steps from here: http://bbs.archlinux.org/viewtopic.php?id=71062

1. Updated the system completely  (kernel 2.6.29, xorg 1.6 etc.)
2. Uninstalled catalyst and catalyst-utils completely
3. installed OS drivers - xf86-video-ati (which also installs libgl, ati-dri and maybe couple of other packages as dependencies)
4. removed (or backup) xorg.conf so that none was present
5. made sure HAL was installed, loaded and working
6. reboot
7. At this point X worked (with KDE) in 2D without problems. Compiz didnt, but thats ok.
8. generated xorg.conf with X -configure
9. uninstalled OS drivers and libgl (with -Rd when needed)
10. installed catalyst-utils, catalyst and added fglrx to modules in rc.conf
11. reboot, check whether fglrx is loaded ok (dmesg | grep fglrx) and ran aticonfig --initial
12. at this point X, kdm and compiz-fusion worked without any problems

Offline

Board footer

Powered by FluxBB