You are not logged in.

#1 2008-10-19 14:32:11

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

Hi.

The situation:

[pablo@pablerkas ~]$ pacman -Qs catalyst
local/catalyst 8.8-2
    Proprietary AMD/ATI kernel drivers for Radeon brand cards. Stock kernel.
local/catalyst-utils 8.8-1
    Proprietary AMD/ATI userspace tools and libraries for Radeon brand cards.
[pablo@pablerkas ~]$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Mobility Radeon X1400
OpenGL version string: 1.4 (2.1.7873 Release)
[pablo@pablerkas ~]$ sudo lshwd | grep ATI
01:00.0 Class 0300: ATI Technologies Inc|Radeon Mobility X1400 (vesa)
# /etc/X11/xorg.conf
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/share/X11/rgb"
    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  "GLcore"
    Load  "glx"
    Load  "extmod"
    Load  "xtrap"
    Load  "dbe"
    Load  "record"
    Load  "dri"
    Load  "freetype"
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      "vesa"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon Mobility X1400"
    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

Section "DRI"
    Mode    0666
EndSection
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="es_ES.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Madrid"
KEYMAP="es.map.gz"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(mii iwl3945 fglrx snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc 
snd-pcm snd-timer snd snd-hda-intel soundcore cpufreq_ondemand cpufreq_powersave i8k !pcspkr)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="pablerkas"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="dhcp"
INTERFACES=(!eth0 !wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng hal @iptables @network @wicd @alsa @fam @acpi-cpufreq @netfs @crond)
## ~/.xinitrc
#!/bin/sh
source /etc/profile
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
# exec xterm
exec gnome-session
# exec startkde
# exec startxfce4
# exec icewm
# exec openbox
# exec blackbox
# exec fluxbox
# exec ratpoison
# exec dwm
# ... or any other WM of your choosing ...

The problem:

[pablo@pablerkas ~]$ glxinfo | grep direct
direct rendering: No (LIBGL_ALWAYS_INDIRECT set)
[pablo@pablerkas ~]$ sudo LIBGL_DEBUG=verbose glxinfo > /dev/null
libGL: XF86DRIGetClientDriverName: 8.52.3 fglrx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/fglrx_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/fglrx_dri.so failed (/usr/X11R6/lib/modules/dri/fglrx_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: fglrx_dri.so
Violación de segmento

My tries:
http://bugs.archlinux.org/task/11279 ==> Didn't work and had to reinstall xorg and catalyst.

Any idea? If you need more information just ask.

Last edited by Slurp (2008-10-26 15:16:23)


Stop the world, I get off...

Offline

#2 2008-10-20 09:22:09

Pentadrago
Member
From: Germany
Registered: 2003-11-24
Posts: 16

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

The problem seems to be the path where libGL looks for the dri module. Mine looks like /usr/lib/xorg/modules/extensions/dri and is set by the LIBGL_DRIVERS_PATH environment variable. Catalyst ships with a catalyst.sh that sets this variable. Maybe thats a start.


Before we could talk we were singing,
before we could run we were dancing.
"On Earth" by Samael

Offline

#3 2008-10-20 09:33:34

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

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      "vesa"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon Mobility X1400"
    BusID       "PCI:1:0:0"
EndSection

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



Do you have two cards? Why two device sections? Remove one and make sure to load only the wanted driver wink

Offline

#4 2008-10-20 13:51:24

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

AndyRTR wrote:

Do you have two cards? Why two device sections? Remove one and make sure to load only the wanted driver wink

So long as only one Device is defined in the Screen section, the other will be ignored. A lot of folks keep the 2nd device hanging around as a failsafe (e.g. vesa).


thayer williams ~ cinderwick.ca

Offline

#5 2008-10-20 21:31:21

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

First of all: thanks.

Second, i tried deleting each one of the device sections that result in gdm not able to boot, blue screen and "xorg.conf is not well configured".

I searched a bit for Pentadrago's hint but there's not much information and i'm quite a newbie and don't know what to do.

[pablo@pablerkas ~]$ echo $LIBGL_DRIVERS_PATH
/usr/lib/xorg/modules/dri/
## /etc/profile.d/catalyst.sh
if [ $LIBGL_DRIVERS_PATH ] 
then 
  if ! set | grep LIBGL_DRIVERS_PATH | grep /usr/lib/xorg/modules/dri/ > /dev/null 
  then 
    LIBGL_DRIVERS_PATH=$LIBGL_DRIVERS_PATH:/usr/lib/xorg/modules/dri/ 
    export LIBGL_DRIVERS_PATH 
  fi  
else 
  LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri/ 
  export LIBGL_DRIVERS_PATH 
fi

Should I change "/etc/profile.d/catalyst.sh" for "/usr/X11R6/lib/modules/dri/" in LIBGL_DRIVERS_PATH or/and catalyst.sh?

Last edited by Slurp (2008-10-20 21:32:29)


Stop the world, I get off...

Offline

#6 2008-10-21 22:26:36

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

A bit more...

Finally I decided to create the directory /usr/X11R6/lib/modules/dri/ and there I created a symbolic link to the file /usr/lib/xorg/modules/dri/fglrx_dri.so. Now it ¿complains? like that:

[pablo@pablerkas ~]$ sudo LIBGL_DEBUG=verbose glxinfo > /dev/null
libGL: XF86DRIGetClientDriverName: 8.52.3 fglrx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/fglrx_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: Searching for BusID PCI:1:0:0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: drmOpenMinor returns 5
drmOpenByBusid: drmGetBusid reports PCI:1:0:0

Why does it all happen to me?

Last edited by Slurp (2008-10-21 22:27:05)


Stop the world, I get off...

Offline

#7 2008-10-22 21:27:27

Pentadrago
Member
From: Germany
Registered: 2003-11-24
Posts: 16

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

Just guessing . . . again wink

this hint seems interesting http://wiki.archlinux.org/index.php/ATI Troubleshooting -> Direct Rendering Doesn't Work

I had no problems using kdm as login manager, which one do you use?


Before we could talk we were singing,
before we could run we were dancing.
"On Earth" by Samael

Offline

#8 2008-10-23 10:58:40

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

Yeah, that was the first thing i checked, that's why i have the line "source /etc/profile" in my .xinitrc and i reinstalled catalyst-utils (there's no fglrx-utils, at least in the repos)... but as you can see it doesn't work.

Thanks anyway.

Last edited by Slurp (2008-10-23 10:59:01)


Stop the world, I get off...

Offline

#9 2008-10-26 15:15:15

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

Well, i just discovered by chance that when i don't start compiz fusion i have direct rendering, and as soon i start it direct rendering disappears.. Does anyone know why?


Stop the world, I get off...

Offline

#10 2008-10-26 15:38:18

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

Slurp wrote:

Well, i just discovered by chance that when i don't start compiz fusion i have direct rendering, and as soon i start it direct rendering disappears.. Does anyone know why?

Sure, since it uses aiglx and not direct rendering.

Offline

#11 2008-10-26 15:45:07

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Re: ATI + Catalyst + --> Compiz-Fusion <-- = No direct rendering

So everything is working as it should be?? o_O i feel very stupid right now...


Stop the world, I get off...

Offline

Board footer

Powered by FluxBB