PDA

View Full Version : Radeon X1650: How to enable Compiz


phoroni
01-25-2009, 07:34 AM
Hi guys. I wanted Compiz running in my desktop, but I didn't want to use privative drivers. So, after reading these forums a bit, I've got a Radeon X1650.

I've changed the Xorg driver to "ati", and added some other options to xorg.conf file in order to enable diret rendering and friends. Now the desktop seems to be rendered faster, but Compiz doesn't want to work.

I have Fedora 9, so I go to menu > System > Preferences > Visualizacion y comportamiento > Desktop effects, and I click on "Enable Desktop Effects" (that should mean "enable Compiz"). After some seconds of thinking, a response is shown: "Desktop effects could not be enabled" :(

Probably I'm missing some options in xorg.conf file. Do you know which ones?

[Continues in next comment]

phoroni
01-25-2009, 07:37 AM
This is my xorg.conf file:

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
# Option "AIGLX" "True"

EndSection

Section "InputDevice"
# keyboard added by rhpxl
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
EndSection

Section "Monitor"
Identifier "Monitor0"
ModelName "LCD Panel 1280x1024"
Option "DPMS"

HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "ati"
# Option "AccelMethod" "XAA"
Option "AccelMethod" "EXA"

EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection


My lspci for the card:

# lspci | grep -i radeon
03:00.0 VGA compatible controller: ATI Technologies Inc RV535 [Radeon X1650 Series] (rev 9e)
03:00.1 Display controller: ATI Technologies Inc RV535 [Radeon X1650 Series] (rev 9e)


[Continues on next comment]

phoroni
01-25-2009, 07:40 AM
Well, I wanted to post in this comment my last xorg log (Xorg.0.log), but it's too big for the forum engine. If you need some part of the file, please tell me.

Thank you for your help, and for your hard work on free software drivers.

adamk
01-25-2009, 08:15 AM
Never start compiz that way on Fedora :-) It doesn't use the ccp plugin by default, which means that you can't actually use ccsm to configure compiz.

I would recommend installing compiz-manager (available via yum). Then bring up a terminal and run 'compiz-manager &'. Show us the output.

Also, please show us the output of 'glxinfo | grep -i renderer'.

Adam

phoroni
01-25-2009, 08:56 AM
Thank you, adamk.

There are the outputs, run as normal user:

$ compiz-manager
Checking for Xgl: not present.
Detected PCI ID for VGA: 03:00.0 0300: 1002:71c7 (rev 9e) (prog-if 00 [VGA controller])
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1280x1024) to maximum 3D texture size (4096): Passed.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting gtk-window-decorator
/usr/bin/compiz (core) - Error: Could not acquire compositing manager selection on screen 0 display ":0.0"
/usr/bin/compiz (core) - Fatal: No manageable screens found on display :0.0

^C

$ glxinfo | grep -i renderer
OpenGL renderer string: Mesa DRI R300 20060815 x86/MMX+/3DNow!+/SSE2 TCL

After the first one (compiz-manager), no window is openned, so I have to press control-C to recover control.

In the second one (glxinfo), MESA seems to be an old version (1006-08-15 ?), so I've listed the mesa RPMs:

$ rpm -qa | grep -i mesa
mesa-libGLw-6.5.1-5.fc9.i386
mesa-libGLw-devel-6.5.1-5.fc9.i386
mesa-libGLU-7.1-0.37.fc9.i386
mesa-libGL-7.1-0.37.fc9.i386
mesa-dri-drivers-7.1-0.37.fc9.i386
mesa-libGL-devel-7.1-0.37.fc9.i386
mesa-libGLU-devel-7.1-0.37.fc9.i386


Apparently all MESA packages are related to Fedora 9, so I can't understand how the glxinfo says 2006-08-15. Maybe some config file is old?

adamk
01-25-2009, 09:02 AM
Don't worry about the date on the Mesa render string. That's actually normal. The developers are bit lazy about updating that :-)

Your drivers are fine... The real issue is that you have another compositing manager running already, and it's refusing to hand control over to compiz. Make sure that gconf-editor --> apps/metacity/general/compositing_manager is disabled, and that you are not using xcompmgr. Then try starting compiz again with compiz-manager.

Adam

phoroni
01-25-2009, 09:40 AM
adamk, you are greeeeeaaaaaaaaaaat!! ;)

The "compositing_manager" option at gconf-editor was enabled, so disabled it, and X server got frozen, so I rebooted the computer. Then, I tested "compiz-manager" again and... Compiz works!

Now Fedora's "Enable Desktop Effects" tool also works, and makes Compiz permanent (no more "compiz-manager" command required after log-in).

Thank you very much. Now I'm going to explore all infinite Compiz options :rolleyes:

DeepDayze
01-25-2009, 10:20 AM
adamk, you are greeeeeaaaaaaaaaaat!! ;)

The "compositing_manager" option at gconf-editor was enabled, so disabled it, and X server got frozen, so I rebooted the computer. Then, I tested "compiz-manager" again and... Compiz works!

Now Fedora's "Enable Desktop Effects" tool also works, and makes Compiz permanent (no more "compiz-manager" command required after log-in).

Thank you very much. Now I'm going to explore all infinite Compiz options :rolleyes:

Wonder if it is possible for compiz to ask to disable the offending compositing manager if it finds one already enabled? If user chooses Yes, then the compositing manager is disabled to allow compiz-manager to start up. Otherwise why not just exit gracefully?

adamk
01-25-2009, 10:21 AM
It does ask the compositing manager to hand over control. Metacity is stupid, and refuses :-)

Adam

phoroni
02-07-2009, 11:43 AM
Hi guys (again).

Just to tell you that Compiz was ok in Fedora 9, but upgraded to Fedora 10, and I had to disable Compiz, because the desktop got slower (window management, firefox scroll, mplayer, etc). After disabling Compiz, speed is normal again, but I'm missing Compiz effects.

I didn't change any config, I only upgraded Fedora from 9 to 10. Do you know if this version has any problem with Compiz?

bridgman
02-07-2009, 04:31 PM
Are you running with kernel modesetting enabled ?

phoroni
02-13-2009, 04:45 PM
Sorry for the delay, bridgman. I didn't note the second page for the thread until today.

Yes, I think I'm running with kernel modesetting enabled, since boot starts in graphical mode just after grub. Anyway, I've added an option ("radeon.agpmode=-1") to the grub kernel commandline, to be sure:

title Fedora (2.6.27.12-170.2.5.fc10.i686.PAE)
root (hd0,1)
kernel /vmlinuz-2.6.27.12-170.2.5.fc10.i686.PAE ro root=UUID=612800e0-bb0c-4ced-b859-868f6c8c31c1 radeon.agpmode=-1 rhgb quiet
initrd /initrd-2.6.27.12-170.2.5.fc10.i686.PAE.img

I suppose the "-1" is correct for my pci-express card (?).

Anyway, no difference after adding the option: If I enable compiz, the desktop get slower (firefox scroll, mplayer, etc). So I've disabled compiz again. :(

bridgman
02-14-2009, 12:19 AM
I think the boot option is "nomodeset. Nothing to do with agpmode.

I don't actually remember why I asked about kernel modesetting at the time, but I'm sure there was a reason :D

phoroni
02-14-2009, 02:37 PM
Hehe. Thanks for your help anyway ;)

bridgman
02-14-2009, 03:08 PM
ok, now I remember; kemnel modesetting needs memory management but the mesa driver didn't support memory management... so I *think* you had to disable kernel modesetting to get accelerated 3D...

something like that anyways, give it a try; "nomodeset" in your boot string