Ubuntu-10.04 LTS の compiz 復旧

先週 ubuntu を update したら compiz が動かなくなった。その時は忙しかったので compiz off でしばらく放置してたんだけど、ちょっと頑張って解決してみた。

調べてみると compiz-check という tool があるので現状を確かめてみることに

% wget http://blogage.de/files/70708/download -O compiz-check
% chmod +x compiz-check
% ./compiz-check

Gathering information about your system...

 Distribution:          Ubuntu 10.04
 Desktop environment:   GNOME
 Graphics chip:         Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
 Driver in use:         intel
 Rendering method:      None

Checking if it's possible to run Compiz on your system... [SKIP]
Checking for hardware/setup problems... [SKIP]

この出力の意味(Rendering method: None の辺り)を探っていると、同じような人を発見した。
http://ubuntuforums.org/showthread.php?t=825720
Xorg.0.log の出力も同じようだ。僕は nvidia の入っていないマシンで間違えて nvidia driver を install することがよくあるので

% sudo apt-get remove 'nvidia-*'

して、再度 ./compiz-check してみた。

Gathering information about your system...

 Distribution:          Ubuntu 10.04
 Desktop environment:   GNOME
 Graphics chip:         Intel Corporation 4 Series Chipset Integrated Graphics Controller (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...               [SKIP]
 Checking for non power of two support...          [SKIP]
 Checking for composite extension...               [ OK ]
 Checking for FBConfig...                          [SKIP]
 Checking for hardware/setup problems...           [SKIP]

At least one check had to be skipped:
 Error: glxinfo not installed

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

 The program glxinfo is needed to perform a number of crucial tests.

 You need to install the package mesa-utils
 Type e.g. sudo apt-get install mesa-utils to install it.

mesa-utils を install して再チャレンジ

% sudo apt-get install mesa-utils
% ./compiz-check

Gathering information about your system...

 Distribution:          Ubuntu 10.04
 Desktop environment:   GNOME
 Graphics chip:         Intel Corporation 4 Series Chipset Integrated Graphics Controller (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...           [ OK ]

全部オッケーになった。外観の設定で compiz を有効にしてみる。.....無事出来た。

元々 nvidia の driver は入れてなくて、compiz 使えなくなったときに間違えて install したはずなので、mesa-utils がなかったのが問題だったのかな?ではなぜある日突然使えなくなったのか、とか納得感が足りないが、動くようになったのでよしとするか...。