리눅스

[ubuntu] i915칩셋 위에 beryl설치하기

shellbt 2007. 2. 16. 13:32

Install Beryl on Ubuntu Dapper with AIGLX

From Beryl Wiki

Jump to: navigation, search

Contents

[hide]

UNSAFE, may not work for you: beware!

linux-dri-modules-2.6.15-27-386 IS not up, and needs to be fixed.

In the Ubuntu-es forums [1] an anonymous user recomended adding to sources.list the repository:

deb http://gandalfn.club.fr/ubuntu dapper .

And then running the commands:

sudo apt-get update
sudo apt-get dist-upgrade

Now all linux-dri-modules-2.6.XX-27-386 should be avaiable.

    1. note: I have seen echo commands used instead of nano to add beryl.somebody set this up.

How-to install Beryl with AIGLX on Dapper

Add repositories

Edit the sources.list file:

sudo nano /etc/apt/sources.list

Add this line:

deb http://ubuntu.beryl-project.org dapper main

Make sure to get the public key for the repository:

wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

Update the package list and upgrade your system before installing

sudo apt-get update && sudo apt-get upgrade

Install AIGLX

Install the new X server (called xserver-xorg-air):

sudo apt-get install xserver-xorg-air-core linux-dri-modules-common linux-dri-modules-`uname -r`
    1. linux-dri-modules-2.6.15-27-386 IS not up, and needs to be fixed.

There's a small glitch with xserver-xorg-air-core: it doesn't install its own modules for input and video drivers. The workaround is to point to the Xorg modules instead:

sudo ln -s /usr/lib/xorg/modules/drivers/ /usr/lib/xorg-air/modules/
sudo ln -s /usr/lib/xorg/modules/input/ /usr/lib/xorg-air/modules/

Modify /etc/X11/xorg.conf - maybe it is a good advice to make a copy before editing because in any problem, you might not be able to login again in the graphic session! So first, make a backup

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old

In the Screen section:

DefaultDepth 24

Make sure these are all there, and GLcore is commented out:

Section "Module"
# Load "GLcore"
    Load "i2c"
    Load "bitmap"
    Load "ddc"
    Load "dbe"
    Load "dri"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "int10″
    Load "type1″
    Load "vbe"
EndSection

IF there is no Option "XAANoOffscreenPixmaps". Add it:

Section "Device" ## no change
    Identifier ##no change
    Driver ##no change,whatever this reads is fine
    Option "XAANoOffscreenPixmaps" ## add this line!!!!
    BusID "PCI:0:2:0″ ##no chnge
EndSection


In the section: "Extensions"

Section "Extensions"
    Option "Composite" "Enable"
EndSection

and this:

Section "DRI"
    Mode 0666
EndSection

gdm configuration is now deprecated, you can switch between Xorg and Xorg-air with update-alternative :

   sudo update-alternatives --config Xorg

Install Beryl

Simply type

sudo apt-get install beryl emerald-themes

Starting Beryl (and AIGLX)

You need first to start AIGLX. Just close all your windows, logout and press Ctrl + Alt + Backspace. That will stop and restart your X server. If the login screen doesn't show up, try to reboot. If you still have some trouble, restore your backup copy (/etc/X11/xorg.conf.old). If the login screen shows up, cool! AIGLX is working. To start Beryl, type in a user session terminal :

beryl-manager

You'll see an red jewel in your panel which helps you to manage beryl and the decorations. To start beryl at each session, go in Gnome Menu > System > Preferences > Sessions > Startup Programs and add beryl-manager.

Specific instructions for Kubuntu (Dapper)

Changing KDE's x-server

Follow the same instructions until the modification of gdm. To set the x-server that KDE will use with, open up /etc/kde3/kdm/kdmrc in an editor:

sudo vim /etc/kde3/kdm/kdmrc

and change the ServerCmd (somewhere around line #465) to read :

ServerCmd=/usr/bin/Xorg-air :0

KDE start-up script

Create a start-up script named beryl.start in ~/.kde/Autostart :

vim ~/.kde/Autostart/beryl.start

and enter the following contents into it :

[Desktop Entry]
Encoding=UTF-8
Exec=beryl-manager
GenericName[en_US]=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-KDE-autostart-after=kdesktop

save the file and then make it executable :

sudo chmod +x ~/.kde/Autostart/beryl.start

Using Beryl

If you find it too slow then open up Beryl Settings Manager and remove the blur effect -- as of this writing (Sept. 2006) it really slows things down.

See Default Commands for some default commands.