xglに挑戦
参考:http://wiki.beryl-project.org/index.php/Install/Ubuntu/Edgy/XGL#Introduction
xglが使えるのか確かめる
$ glxinfo | grep direct libGL warning: 3D driver claims to not support visual 0x4b direct rendering: Yes
direct renderingがYesだったら使えるっぽい。
apt-lineにberyl projectのリポジトリを追加
$ sudo vi /etc/apt/source.list
deb http://ubuntu.beryl-project.org/ edgy main
beryl-projectのGPG鍵をインポート
$ wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
インストール
$ sudo apt-get update $ sudo apt-get install xserver-xgl $ sudo apt-get install beryl emerald-theme
とりあえず立ち上げてみる
$ beryl-manager
ログイン時に起動できるようにする
# vi /usr/local/bin/startxgl.sh
#!/bin/bash
Xgl :1 fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
exec dbus-launch --exit-with-session gnome-session
# mkdir /etc/X11/sessions # vi /etc/X11/sessions/xgl.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
# vi /etc/gdm/gdm.conf-custom
0=Xgl
[server-Xgl]
name=Xgl server
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel sv:fbo
flexible=true