blogage.de > Forlong > Forlong's Blog > Entry > 28 April 2008 > Introducing Compiz-Check – a script t...
  De | En | Sign up | Login

Introducing Compiz-Check – a script to test and troubleshoot your Compiz install

I wrote a script called Compiz-Check over the past weeks that will test if Compiz is able to run on your system/setup.
If not, it will (hopefully) tell you the reason why.

Additionally you can use the output of the script to look for support in the Compiz Fusion forums or the mailing list / forum of your distribution, which will make it much easier to locate your problem.

Here's how it looks like:

Gathering information about your system...

 Distribution:          Ubuntu 8.04
 Desktop environment:   GNOME
 Graphics chip:         ATI Technologies Inc RV350 AR [Radeon 9600]
 Driver in use:         radeon
 Rendering method:      AIGLX

Checking if it's possible to run Compiz on your system...

 Checking for texture_from_pixmap...               [ OK ]
 Checking for non power of two support...          [ OK ]
 Checking for composite extension...               [ OK ]
 Checking for FBConfig...                          [ OK ]
 Checking for hardware/setup problems...           [ OK ]

The last check is probably the most interesting one.
The script checks there if

  • there's a driver in use, that is known to work with Compiz
  • an older version of the fglrx driver is in use that needs Xgl
    (and checks for that as well)
  • the resolution in use is not too large
  • Metacity's compositing manager is disabled
  • a possibly blacklisted PCI ID is in use
  • a laptop with the ati/radeon driver is in use (Hardy only)
  • the path to the compiz binary could be detected (Ubuntu only)
  • a Nvidia card is in use and if it has enough memory

To each of those (possible) fails is an error message available that describes the problem as clear and short as possible.

Some setup related problems (like the one with Metacity) will be even offered to fix by the script.


A brief history of Compiz-Check

There were many reasons why I started this project, those are the three main ones:

First of all, there's the constant lack of info given by the people that are looking for support in forums like forum.compiz-fusion.org or ubuntuforums.org

Then there's the output Compiz (or rather compiz-manager) produces when running in the terminal, which tends to confuse people more than it clears things up.
Particularly the recurring confusion whether Xgl is something fundamental important or not – because Compiz seems to "need" it (it looks for it twice, so it has to be important!).

Last but not least, there was the realization Ubuntu won't be doing something about Bug #152271 for Hardy:
desktop-effects-could-net-be-enabled-thumb

"Desktop effects could not be enabled" – that is all you ever get to know, when Compiz fails to run.
No info what went wrong and if there's something you can do about it.
Not even a hint to run Compiz in a terminal.

Anyway... I decided I'm done with complaining and put my money where my mouth is.
So I wrote this script in order to kill two birds with one stone.


Get Compiz-Check at http://forlong.blogage.de/article/pages/Compiz-Check

Please let me know if you encounter any problems.
The script has been tested to work by myself on Ubuntu Hardy, Gutsy and Feisty (all GNOME) and Arch Linux (GNOME and KDE) so far.

Trackbacks



No trackbacks, yet.

Comments Help Feed

Lukas (Anonymous)
3 years ago

Hello,
thanks for this great script.
I'm using fedora. lspci is located in /sbin/lspci, but /sbin isn't in the path for normal users. so it would be great to use the full path, otherwise the script can only be run from root.

3 years ago

Hm... that's kinda weird but OK, I did a workaround for this.

Please check out the new version (I just replaced the "old" one here).

Thanks for the feedback, that's exactly what I need!

Chris Bauer (Anonymous)
3 years ago

Thanks for your hard work!

I decided to try the script on my machine with compiz currently enabled, for the fun of it. It failed!

During the check for hardware / setup problems I got this:

Error: nvidia driver not properly installed. Couldn't run nvidia-settings.

So I installed nvidia-settings and everything worked. I wouldn't want someone who didn't have nvidia-settings installed to think they can't run compiz.

I hope this helps. -Chris

3 years ago

Alright, I knew I would run into problems with Nvidia stuff, because I couldn't test those checks myself.

I assumed nvidia-settings would be like fglrxinfo for the proprietary ATI driver which gets (AFAIK) always installed with the driver by default.

It's too late over here to do something about it now, but I will have a look at this tomorrow.

Thanks again for the feedback.

3 years ago

Chris,

I made the Nvidia check the very last check of the script now and turned it into a warning.

Please download the script again and let me know if that solution seems okay for you.

Thanks again,
Nick

Chris Bauer (Anonymous)
3 years ago

Hey Nick, to re-create the error before, I uninstalled nvidia-settings then downloaded and ran compiz check. I got this error:

Warning: Couldn't check the amount of memory on your Nvidia chip.

Then I typed 'y' and got this:

That does not mean, you won't be able to use Compiz.
If everything else went OK you are most probably fine.

In case you want the script to check this step as well, install the program
nvidia-settings on your system.

Hope it helps.

Thanks for your time and energy.
-Chris

3 years ago

That's exactly what you were supposed to get.
Do you think that's a good solution?

Chris Bauer (Anonymous)
3 years ago

Oh. That does sound like a good solution now that I think about it. It says you are probably fine, which in my case, I am. Nice.

fire_phantom (Anonymous)
3 years ago

Compiz-check says that compiz will work, but when I try to start compiz I get poor performance, everything slows down, and my title bars disappear. There were a few errors, but I lost them when I had to start a new session. Could you throw in a compiz "satisfaction rating" of how well compiz will run on the machine, and not just if it will run?

3 years ago

No, I'm sorry, that is not in the scope of Compiz-Check.
After all, that depends too much on the expectations of the user anyway. Some people think Compiz should run well on a Geforce2 and others are happy if it runs on a Radeon 9800.

As for your problem: that doesn't sound like a usual hardware problem to me.
Sadly, you didn't post your output here, which would help to evaluate your situation.

Robert (Anonymous)
3 years ago

This is the output from my Mandriva 2008.1 64bit system. Note the output for the final test - is this a bug?

[robert@localhost ~]$ '/home/robert/ compiz-check'

Gathering information about your system...

Distribution: MandrivaLinux 2008.1
Desktop environment: KDE
Graphics chip: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
Driver in use: nvidia
Rendering method: Nvidia

Checking if it's possible to run Compiz on your system...

Checking for texture_from_pixmap... [FAIL]
Checking for non power of two support... [FAIL]
Checking for composite extension... [ OK ]
Checking for FBConfig... [FAIL]
Checking for hardware/setup problems.../home/robert/ compiz-check: line 402: [: 900: unary operator expected
/home/robert/ compiz-check: line 402: [: 1440: unary operator expected
[ OK ]

[robert@localhost ~]$

3 years ago

Please post the output of

glxinfo -l 2>/dev/null | grep GL_MAX_TEXTURE_SIZE

and

xdpyinfo | grep -i "dimensions:"

Robert (Anonymous)
3 years ago

As requested:

[robert@localhost ~]$ glxinfo -l 2>/dev/null | grep GL_MAX_TEXTURE_SIZE
[robert@localhost ~]$ xdpyinfo | grep -i "dimensions:"
dimensions: 1440x900 pixels (411x263 millimeters)
[robert@localhost ~]$

The first command did not give any output.

3 years ago

That seems to be exactly your problem (that's why the previous checks fail for you too).
Post the output of

glxinfo

But please use a service like http://pastebin.com

Robert (Anonymous)
3 years ago

http://pastebin.com/m17ff1c16

[robert@localhost ~]$ glxinfo
bash: glxinfo: command not found
[robert@localhost ~]$

3 years ago

I see (you didn't need to use pastebin in that case, of course ).

I did a little research and I think on Mandriva, you need to install mesa-demos.

In any case, thanks for your feedback, I'm going to incorporate that in the script.

Robert (Anonymous)
3 years ago

Thanks, all problems were solved by installing mesa-demos.

3 years ago

I am trying to install compiz on Gentoo. I have spent about three days on this little project because I want to place some of my monitors in Portrate. I was very happy to find your script, however ...

First try, it told me I had too many video 'chips'. So, I removed two video cards, leaving just one. ( I plan to have compiz running 6 monitors eventually )

Second try, it told me that I had more than one x server. Helpful, but WHICH x servers? I am only aware of xorg. Looking at ps tells me nothing. Too many programs I don't recognize.

If the script knows there is more than one x server, then with certainty, it could/should tell us. ;-)

Could you 'fix' that 'bug'? :-)

3 years ago

I put the error message

More than one running X server detected

there to keep things simple.

What it means is there are more than one instance of Xorg's X server running (this is widely referred to as "having more then one X server running" – google for second X server and you'll see what I mean).

Technically speaking, the problem lies in the fact that you have more than one entry for dimensions in xdpyinfo (check xdpyinfo | grep dimensions), which conflicts with certain checks made by the script later on.

Since it rarely ever caused any problems for users, I never worked around this (as a matter of fact, you're the first person to have a problem with it since I implemented the bail out).

I hope I could help you a little bit with the problems you are facing.
Sounds like a cool project you have there. You might wanna start a thread about it in the forums of http://compiz-fusion.org
Just write me a PM if you do. I will be happy to assit you were I can.

2 years ago

Hi;

I have a feeling compiz wont work with the chipset but I have to try! I ran your script and here is the output:

Distribution: Ubuntu 8.10
Desktop environment: GNOME
Graphics chip: Trident Microsystems CyberBlade/i1 (rev 6a)
Driver in use: trident
Rendering method: AIGLX

Checking if it's possible to run Compiz on your system...

Checking for texture_from_pixmap... [ OK ]
Checking for non power of two support... [ OK ]
Checking for composite extension... [ OK ]
Checking for FBConfig... [ OK ]
Checking for hardware/setup problems... [FAIL]

There has been (at least) one error detected with your setup:
Error: Software Rasterizer in use

Thank you!!!

-tree

2 years ago

No, Compiz won't work on Trident hardware. Sorry.

2 years ago

Thank you anyway!

Dominic (Anonymous)
2 years ago

Hi

I'm using ubuntu intrepid on a HP mini note 2133.

After installing the via driver from the source file (I use kernel 2.6.27-12), applying a modified conf file and adding via to the whitelist, compiz is still not able to run.

Compiz-check shows the following output:

Gathering information about your system...

 Distribution:          Ubuntu 8.10
 Desktop environment:   GNOME
 Graphics chip:         VIA Technologies, Inc. CN896/VN896/P4M900 [Chrome 9 HC] (rev 01)
 Driver in use:         via
 Rendering method:      AIGLX

Checking if it's possible to run Compiz on your system...

 Checking for texture_from_pixmap...               [ OK ]
 Checking for non power of two support...          [ OK ]
 Checking for composite extension...               [ OK ]
 Checking for FBConfig...                          [ OK ]
 Checking for hardware/setup problems...           [FAIL]

There has been (at least) one error detected with your setup:
 Error: Software Rasterizer in use

------------------------------

Direct rendering is enabled:

#:~$ glxinfo | grep rendering
direct rendering: Yes

Any suggestions?

2 years ago

Via chips are not able to run Compiz out of the box.
Their Linux support has been very poor in the past but they are now providing beta drivers for some of their hardware.

You might want to check if yours is listed here: http://linux.via.com.tw

Dominic (Anonymous)
2 years ago

Hi Forlong

Many thanks for the prompt response!

That's exactly where I have my driver from (Although I cannot see any driver listed there at the moment ?!?).

Do you have any suggestions what to check next? What does the statement "Software Rasterizer is in use" mean?

Here output from glxinfo:

OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.2
OpenGL shading language version string: 1.10

Many thanks in advance.

lou (Anonymous)
2 years ago

Hi , this is the result of the ./compiz-check .

could you help me? Any suggestion ? Thank you !

 Distribution:          Ubuntu 8.04
 Desktop environment:   GNOME
 Graphics chip:         ATI Technologies Inc Mobility Radeon HD 2400
 Driver in use:         radeon
 Rendering method:      AIGLX

Checking if it's possible to run Compiz on your system...

 Checking for texture_from_pixmap...               [ OK ]
 Checking for non power of two support...          [ OK ]
 Checking for composite extension...               [ OK ]
 Checking for FBConfig...                          [ OK ]
 Checking for hardware/setup problems...           [FAIL]

There has been (at least) one error detected with your setup:
 Error: Laptop using radeon driver.

2 years ago

Didn't Compiz-Check ask to fix this for you?

If not, run this in an terminal:

mkdir -p ~/.config/compiz/ && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
lou (Anonymous)
2 years ago

Thank you for taking time to look at this .

Yes ,it did.

Than i enable  the ATI accelerated graphics driver which i didn't enable before.

It works well .

Thank you anyway .

Damien (Anonymous)
2 years ago
Thanks for this handy util. I got that rasterizer error. I read in other places that Compiz will work with some Intel graphics chips. Will it run on the one I have? Gathering information about your system... Distribution: Gentoo (2.0.0) Desktop environment: KDE Graphics chip: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) Driver in use: i810 Rendering method: AIGLX Checking if it's possible to run Compiz on your system... Checking for texture_from_pixmap... [ OK ] Checking for non power of two support... [ OK ] Checking for composite extension... [ OK ] Checking for FBConfig... [ OK ] Checking for hardware/setup problems... [FAIL] There has been (at least) one error detected with your setup: Error: Software Rasterizer in use
2 years ago

Try resetting your xorg.conf:

sudo dpkg-reconfigure xserver-xorg

You might want to do a backup first:

cp /etc/X11/xorg.conf xorg.conf.bak

Then log out and back in.

Afterwards, try again.

Bokkie (Anonymous)
2 years ago

Hey,

The script seems to "work" with Suse 11.1 as well, apart from the (much quoted)  "Software Rasterizer in use"-error.

I'm using gnome with Suse.

Here's my output:

Gathering information about your system...

 Distribution:          openSUSE 11.1 (x86_64)
 Desktop environment:   GNOME
 Graphics chip:         ATI Technologies Inc Radeon HD 3200 Graphics
 Driver in use:         radeonhd
 Rendering method:      AIGLX

Checking if it's possible to run Compiz on your system...

 Checking for texture_from_pixmap...               [ OK ]
 Checking for non power of two support...          [ OK ]
 Checking for composite extension...               [ OK ]
 Checking for FBConfig...                          [ OK ]
 Checking for hardware/setup problems...           [FAIL]

There has been (at least) one error detected with your setup:
 Error: Software Rasterizer in use

On my Ubuntu Laptop with ATI mobility HD 3470 the script worked like a charm, btw.

Thanks for the cool script.

2 years ago

The software rasterizer is generally a hint that the driver is either not set up correctly or not properly working at all. I'm afraid that's all I can tell you at this point.

stoecki (Anonymous)
2 years ago

Gathering information about your system...

 Distribution:          Ubuntu 9.04
 Desktop environment:   KDE4
 Graphics chip:         ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics]
 Driver in use:         fglrx
 Rendering method:      None

Checking if it's possible to run Compiz on your system...  [SKIP]

 Checking for hardware/setup problems...           [SKIP]

At least one check had to be skipped:
 Error: No rendering method in use (AIGLX, Xgl or Nvidia)

--------------------------------------------------------------------------------

How do i enable a rendering Methode?

as you see i have kubuntu 9.04 and a ati radeon 3200
and i use fglrx

2 years ago

Sorry, I have no experience with Jaunty yet, as I don't have the time right now.

devadas. k (Anonymous)
2 years ago

i got this.

 

please hep me...

 

Gathering information about your system...

 Distribution:          Ubuntu 9.04
 Desktop environment:   GNOME
 Graphics chip:         Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
 Driver in use:         intel
 Rendering method:      AIGLX

Checking if it's possible to run Compiz on your system...

 Checking for texture_from_pixmap...               [ OK ]
 Checking for non power of two support...          [ OK ]
 Checking for composite extension...               [ OK ]
 Checking for FBConfig...                          [ OK ]
 Checking for hardware/setup problems...           [WARN]

Something potential problematic has been detected with your setup:
 Warning: PCI ID 8086:2562 detected.

Would you like to know more? (Y/n)

lauris (Anonymous)
2 years ago

Finaly i fixed the "Software rasterizer" problem! It took like 5h,but now i`m finaly able to run compiz. Seems it was "libgl1-mesa-dri" packages fault.

sudo apt-get remove libgl1-mesa-dri

Worked for me.

Steve (Anonymous)
one year ago

Hi Lauris, could you tell me how you fixed it?

Pneumatic fittings (Anonymous)
one year ago

 Many thanks.Still an additional brilliant article, this is exactly exactly why My spouse and I arrive to the blog page over and over again!



Add comment


(not required)

Please enter the white text to the text field "code" (spam protection).

k l Q d x c k L