PDA

View Full Version : Fglrx + AIGLX on Arch


Dinth
03-16-2009, 12:53 PM
Hello. I cannot enable composition effects on my KDE 4.2 on Archlinux x64. It worked on Ubuntu without any problems, but on Arch ive tried with many driver versions (some old from official repository, 9.2 from AUR, 9.4RC1 from TPB), and none of them is working. I have "Direct rendering: Yes" in glxinfo.

Here s my xorg.conf:
# File generated by xorgconfig.
Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

Load "freetype"


Load "glx"
Load "dri"
Load "GLcore"

EndSection


# ************************************************** ********************
# Files section. This allows default font and rgb paths to be set
# ************************************************** ********************

Section "Files"

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

# ************************************************** ********************
# Server flags section.
# ************************************************** ********************

Section "ServerFlags"

EndSection

# ************************************************** ********************
# Input devices
# ************************************************** ********************

# ************************************************** ********************
# Core keyboard's InputDevice section
# ************************************************** ********************

Section "InputDevice"

Identifier "Keyboard1"
Driver "kbd"

Option "AutoRepeat" "500 30"


Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "pl"
Option "XkbVariant" ""
Option "XkbOptions" ""

EndSection


# ************************************************** ********************
# Core Pointer's InputDevice section
# ************************************************** ********************

Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # Auto detect
Option "Device" "/dev/input/mice"


Option "ZAxisMapping" "4 5"

Option "Emulate3Buttons"

EndSection


# ************************************************** ********************
# Monitor section
# ************************************************** ********************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "Compaq P700"


HorizSync 30-92

VertRefresh 50-120

ModeLine "1024x768" 113.3 1024 1096 1208 1392 768 769 772 814 -hsync +vsync

EndSection


# ************************************************** ********************
# Graphics device section
# ************************************************** ********************

# Any number of graphics device sections may be present

# Device configured by xorgconfig:

Section "Device"
Identifier "ATI Radeon HD2600"
Driver "fglrx"
VideoRam 262144
Option "AccelMethod" "XAA"
Option "RenderAccel" "on"

# Insert Clocks lines here if appropriate
EndSection


Section "Screen"
Identifier "Screen 1"
Device "ATI Radeon HD2600"
Monitor "Compaq P700"
DefaultDepth 24

Subsection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubsection
EndSection


# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

Identifier "Simple Layout"


Screen "Screen 1"

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

Option "AIGLX" "true"
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

Section "DRI"
Mode 0666
EndSection



And important things from my Xorg.0.log:

└─[$]> cat /var/log/Xorg.0.log | grep EE
Current Operating System: Linux dinth-archlinux 2.6.28-ARCH #1 SMP PREEMPT Sun Mar 8 10:55:58 CET 2009 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) fglrx(0): Unknown EDID version 0


└─[$]> cat /var/log/Xorg.0.log | grep AIGLX
(**) Option "AIGLX" "true"
(WW) AIGLX: 3D driver claims to not support visual 0x23
(WW) AIGLX: 3D driver claims to not support visual 0x24
(WW) AIGLX: 3D driver claims to not support visual 0x25
(WW) AIGLX: 3D driver claims to not support visual 0x26
(WW) AIGLX: 3D driver claims to not support visual 0x27
(WW) AIGLX: 3D driver claims to not support visual 0x28
(WW) AIGLX: 3D driver claims to not support visual 0x29
(WW) AIGLX: 3D driver claims to not support visual 0x2a
(WW) AIGLX: 3D driver claims to not support visual 0x2b
(WW) AIGLX: 3D driver claims to not support visual 0x2c
(WW) AIGLX: 3D driver claims to not support visual 0x2d
(WW) AIGLX: 3D driver claims to not support visual 0x2e
(WW) AIGLX: 3D driver claims to not support visual 0x2f
(WW) AIGLX: 3D driver claims to not support visual 0x30
(WW) AIGLX: 3D driver claims to not support visual 0x31
(WW) AIGLX: 3D driver claims to not support visual 0x32
(WW) AIGLX: 3D driver claims to not support visual 0x33
(WW) AIGLX: 3D driver claims to not support visual 0x34
(WW) AIGLX: 3D driver claims to not support visual 0x35
(WW) AIGLX: 3D driver claims to not support visual 0x36
(WW) AIGLX: 3D driver claims to not support visual 0x37
(WW) AIGLX: 3D driver claims to not support visual 0x38
(WW) AIGLX: 3D driver claims to not support visual 0x39
(WW) AIGLX: 3D driver claims to not support visual 0x3a
(WW) AIGLX: 3D driver claims to not support visual 0x3b
(WW) AIGLX: 3D driver claims to not support visual 0x3c
(WW) AIGLX: 3D driver claims to not support visual 0x3d
(WW) AIGLX: 3D driver claims to not support visual 0x3e
(WW) AIGLX: 3D driver claims to not support visual 0x3f
(WW) AIGLX: 3D driver claims to not support visual 0x40
(WW) AIGLX: 3D driver claims to not support visual 0x41
(WW) AIGLX: 3D driver claims to not support visual 0x42
(WW) AIGLX: 3D driver claims to not support visual 0x43
(WW) AIGLX: 3D driver claims to not support visual 0x44
(WW) AIGLX: 3D driver claims to not support visual 0x45
(WW) AIGLX: 3D driver claims to not support visual 0x46
(WW) AIGLX: 3D driver claims to not support visual 0x47
(WW) AIGLX: 3D driver claims to not support visual 0x48
(WW) AIGLX: 3D driver claims to not support visual 0x49
(WW) AIGLX: 3D driver claims to not support visual 0x4a
(WW) AIGLX: 3D driver claims to not support visual 0x4b
(WW) AIGLX: 3D driver claims to not support visual 0x4c
(WW) AIGLX: 3D driver claims to not support visual 0x4d
(WW) AIGLX: 3D driver claims to not support visual 0x4e
(WW) AIGLX: 3D driver claims to not support visual 0x4f
(WW) AIGLX: 3D driver claims to not support visual 0x50
(WW) AIGLX: 3D driver claims to not support visual 0x51
(WW) AIGLX: 3D driver claims to not support visual 0x52
(WW) AIGLX: 3D driver claims to not support visual 0x53
(WW) AIGLX: 3D driver claims to not support visual 0x54
(WW) AIGLX: 3D driver claims to not support visual 0x55
(WW) AIGLX: 3D driver claims to not support visual 0x56
(WW) AIGLX: 3D driver claims to not support visual 0x57
(WW) AIGLX: 3D driver claims to not support visual 0x58
(WW) AIGLX: 3D driver claims to not support visual 0x59
(WW) AIGLX: 3D driver claims to not support visual 0x5a
(WW) AIGLX: 3D driver claims to not support visual 0x5b
(WW) AIGLX: 3D driver claims to not support visual 0x5c
(WW) AIGLX: 3D driver claims to not support visual 0x5d
(WW) AIGLX: 3D driver claims to not support visual 0x5e
(WW) AIGLX: 3D driver claims to not support visual 0x5f
(WW) AIGLX: 3D driver claims to not support visual 0x60
(WW) AIGLX: 3D driver claims to not support visual 0x61
(WW) AIGLX: 3D driver claims to not support visual 0x62
(WW) AIGLX: 3D driver claims to not support visual 0x63
(WW) AIGLX: 3D driver claims to not support visual 0x64
(WW) AIGLX: 3D driver claims to not support visual 0x65
(WW) AIGLX: 3D driver claims to not support visual 0x66
(WW) AIGLX: 3D driver claims to not support visual 0x67
(WW) AIGLX: 3D driver claims to not support visual 0x68
(WW) AIGLX: 3D driver claims to not support visual 0x69
(WW) AIGLX: 3D driver claims to not support visual 0x6a
(WW) AIGLX: 3D driver claims to not support visual 0x6b
(WW) AIGLX: 3D driver claims to not support visual 0x6c
(WW) AIGLX: 3D driver claims to not support visual 0x6d
(WW) AIGLX: 3D driver claims to not support visual 0x6e
(WW) AIGLX: 3D driver claims to not support visual 0x6f
(WW) AIGLX: 3D driver claims to not support visual 0x70
(WW) AIGLX: 3D driver claims to not support visual 0x71
(WW) AIGLX: 3D driver claims to not support visual 0x72
(II) AIGLX: Loaded and initialized /usr/lib64/dri/fglrx_dri.so


Compiz-check script says that i havent any render method avalible.

borkdox
03-16-2009, 01:54 PM
I run arch, and composite under kde4 works fine. I don't have access to my xorg.conf right now, but I'll modify yours. Let me know if it works, if it doesn't I'll post mine.

# File generated by xorgconfig.
Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

Load "freetype"

Load "glx"
Load "dri"

EndSection


# ************************************************** ********************
# Files section. This allows default font and rgb paths to be set
# ************************************************** ********************

Section "Files"

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

# ************************************************** ********************
# Server flags section.
# ************************************************** ********************

Section "ServerFlags"

EndSection

# ************************************************** ********************
# Input devices
# ************************************************** ********************

# ************************************************** ********************
# Core keyboard's InputDevice section
# ************************************************** ********************

Section "InputDevice"

Identifier "Keyboard1"
Driver "kbd"

Option "AutoRepeat" "500 30"


Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "pl"
Option "XkbVariant" ""
Option "XkbOptions" ""

EndSection


# ************************************************** ********************
# Core Pointer's InputDevice section
# ************************************************** ********************

Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # Auto detect
Option "Device" "/dev/input/mice"


Option "ZAxisMapping" "4 5"

Option "Emulate3Buttons"

EndSection


# ************************************************** ********************
# Monitor section
# ************************************************** ********************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "Compaq P700"


HorizSync 30-92

VertRefresh 50-120

ModeLine "1024x768" 113.3 1024 1096 1208 1392 768 769 772 814 -hsync +vsync

EndSection


# ************************************************** ********************
# Graphics device section
# ************************************************** ********************

# Any number of graphics device sections may be present

# Device configured by xorgconfig:

Section "Device"
Identifier "ATI Radeon HD2600"


Driver "fglrx"
EndSection


Section "Screen"
Identifier "Screen 1"
Device "ATI Radeon HD2600"
Monitor "Compaq P700"
DefaultDepth 24

Subsection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubsection
EndSection


# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"
Identifier "Simple Layout"

Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
Mode 0666
EndSection

Dinth
03-16-2009, 02:16 PM
Unfortunately it dont work. Ive tryied almost all xorg.conf combinations i could think of, and also tried to use my (working) xorg.conf from Ubuntu, but it does nothing.

borkdox
03-16-2009, 05:48 PM
Unfortunately it dont work. Ive tryied almost all xorg.conf combinations i could think of, and also tried to use my (working) xorg.conf from Ubuntu, but it does nothing.

Do you have testing repository enabled? I think some weeks ago I was getting some error when I enabled composite... I have disabled testing repo and done upgrades with core, extra, and community. I enabled kwin4 composite effects when I upgraded to 9.4 RC1 and its running fine.

EDIT: errr not compiz... KWIN4..

h5n1
03-16-2009, 05:59 PM
try:
LIBGL_ALWAYS_INDIRECT=1 compiz --replace --sm-disable ccp&

best regards,
Patryk

Dinth
03-16-2009, 06:25 PM
Im not using compiz, only KDE4 builtin composition effects. Ive only downloaded compiz-check trying to debug why i cannot enable composition in kwin.
When im trying to enable it in systemsettings, i get:

kwin(32436) KWin::Workspace::slotReconfigure: Workspace::slotReconfigure()
kwin(32436) KWin::Extensions::init: Extensions: shape: 0x "11" composite: 0x "4" render: 0x "a" fixes: 0x "40"
kwin(32436) KWin::CompositingPrefs::detect: glx version is 1 . 2
kwin(32436) KWin::CompositingPrefs::detectDriverAndVersion: GL vendor is "ATI Technologies Inc."
kwin(32436) KWin::CompositingPrefs::detectDriverAndVersion: GL renderer is "ATIRadeon HD 2600 Pro"
kwin(32436) KWin::CompositingPrefs::detectDriverAndVersion: GL version is "1.2 (2.1.8573)"
kwin(32436) KWin::CompositingPrefs::detectDriverAndVersion: XGL: no
kwin(32436) KWin::CompositingPrefs::detectDriverAndVersion: Detected driver "fglrx" , version "1.2"
kwin(32436) KDecorationPlugins::loadPlugin: kwin : path "/usr/lib/kde4/kwin3_ozone.so" for "kwin3_ozone"
kwin(32436)/kdeui (KNotification) KNotification::slotReceivedId: 0
kwin(32436)/kdeui (KNotification) KNotification::close: 0
kwin(32436)/kdeui (KNotification) KNotification::~KNotification: -2
kwin(32436)/kdeui (KNotification) KNotification::slotReceivedId: 0
kwin(32436)/kdeui (KNotification) KNotification::close: 0
kwin(32436)/kdeui (KNotification) KNotification::~KNotification: -2
kwin(32436)/kdeui (KNotification) KNotification::slotReceivedId: 0
kwin(32436)/kdeui (KNotification) KNotification::close: 0
kwin(32436)/kdeui (KNotification) KNotification::~KNotification: -2

borkdox
03-17-2009, 12:07 AM
Kwin with composite works so fine here. That output from kwin doesn't raise any alarms. This is weird indeed, give my Xorg.conf a try, make sure ur user is member of "video" group...


Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 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/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection

Section "Module"
Load "glx"
#Load "drm"
Load "dri"
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 "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "NoDRI" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "Dac6Bit" # [<bool>]
#Option "BusType" # [<str>]
#Option "DRM_nbufs" # <i>
#Option "DRM_bufsize" # <i>
#Option "Capabilities" # <i>
#Option "CapabilitiesEx" # <i>
#Option "ClientDriverName" # [<str>]
#Option "KernelModuleParm" # [<str>]
#Option "AGPMask" # <i>
#Option "AGPv3Mask" # <i>
#Option "BufferTiling" # [<bool>]
#Option "Profile" # <str>
#Option "RingSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
#Option "GammaCorrectionI" # <i>
#Option "GammaCorrectionII" # <i>
#Option "OpenGLOverlay" "off" # [<bool>]
#Option "DefaultVisualTrueColor" # [<bool>]
#Option "VideoOverlay" "off" # [<bool>]
#Option "DesktopSetup" # [<str>]
#Option "MonitorLayout" # [<str>]
#Option "ForceMonitors" # [<str>]
#Option "EnableMonitor" # <str>
#Option "OverlayOnCRTC2" # [<bool>]
#Option "Mode2" # [<str>]
#Option "PairModes" # [<str>]
#Option "HSync2" # [<str>]
#Option "VRefresh2" # [<str>]
#Option "ScreenOverlap" # <i>
#Option "MemClock" # <i>
#Option "ASICClock" # <i>
#Option "UseInternalAGPGART" # [<bool>]
#Option "FastSwap" # [<bool>]
#Option "Stereo" # [<bool>]
#Option "StereoSyncEnable" # <i>
#Option "DisableOvScaler" # [<bool>]
#Option "UseFastTLS" "on" # <i>
#Option "BlockSignalsOnLock" # [<bool>]
#Option "ForceGenericCPU" # [<bool>]
#Option "CenterMode" # [<bool>]
#Option "OffScreenPixmaps" # [<bool>]
#Option "EnableOpaqueOverlayVisual" # [<bool>]
#Option "TMDSCoherentMode" # [<bool>]
#Option "EnablePrivateBackZ" # [<bool>]
#Option "TVFormat" # [<str>]
#Option "TVStandard" # [<str>]
#Option "TVOverscan" # [<bool>]
#Option "TVHSizeAdj" # <i>
#Option "TVVSizeAdj" # <i>
#Option "TVHPosAdj" # <i>
#Option "TVVPosAdj" # <i>
#Option "TVHStartAdj" # <i>
#Option "TVColorAdj" # <i>
#Option "PseudoColorVisuals" # [<bool>]
#Option "PreferredVRefresh" # <i>
#Option "FastStart" # [<bool>]
#Option "ProfileDriver" # [<bool>]
#Option "PPPTforGART" # [<bool>]
#Option "TexturedVideo" "on" # [<bool>]
#Option "TexturedVideoSync" "on" # [<bool>]
#Option "Textured2D" "on" # [<bool>]
#Option "TexturedXrender" "on" # [<bool>]
#Option "DPMS" # [<bool>]
#Option "MaxGARTSize" # <i>
#Option "LogoPosX" # <i>
#Option "LogoPosY" # <i>
#Option "LogoColFG" # <i>
#Option "LogoColBG" # <i>
#Option "SwapScreens" # [<bool>]
#Option "FBC" # [<bool>]
#Option "FrontBufferMode" # <i>
#Option "BackBufferMode" # <i>
#Option "DepthBufferMode" # <i>
#Option "OverlayBufferMode" # <i>
#Option "VideoOverlayBufferMode" # <i>
#Option "EnableIrqMgr" # [<bool>]
#Option "EnableMulticard" # [<bool>]
#Option "EnablePPLIB" # [<bool>]
#Option "DefaultOnDC" # [<bool>]
#Option "EnableRandR12" # [<bool>]
#Option "DisableRotation" # [<bool>]
#Option "EnableCrossFire" # [<bool>]
#Option "DisableDlm" # [<bool>]
#Option "XAANoOffscreenPixmaps" "true"
#Option "AccelMethod" "exa"
#Option "DRI" "on"
Identifier "Card0"
Driver "fglrx"
#Driver "radeon"
#Driver "radeonhd"
VendorName "ATI Technologies Inc"
BoardName "Radeon HD4850"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
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 "DRI"
Group "video"
Mode 0666
EndSection

damentz
03-18-2009, 12:28 PM
Change this:Section "Device"
Identifier "ATI Radeon HD2600"
Driver "fglrx"
VideoRam 262144
Option "AccelMethod" "XAA"
Option "RenderAccel" "on"

# Insert Clocks lines here if appropriate
EndSection

to:Section "Device"
Identifier "ATI Radeon HD2600"
Driver "fglrx"
EndSection

Unless you are truly having issues with your videoram and that has been proven to solve your issues, don't bother. All the other options won't help.

Dinth
03-18-2009, 12:35 PM
Ive tried almost all xorg config changes ive could think of, also any combinations for FGLRX options, and lack of them. "VideoRAM" resolves strange problem with unaccepting modelines with higher vrefreshes, and "AccelMethod" "XAA" speedups KDE4.