XGL/Compiz on ATI/Gnome

From Knowledge76

Jump to: navigation, search

mummy movie poster michelle pfeiffer movie bare escentuals mineral veil friendship picture frame johnny cash hurt myspace video code knitting machine patterns male smoking picture free online sex stories spanking machine sundresses grand pianos movies critic pirate skeletons home improvement pista 3 lyrics paris-hilton-sex.com l.a.m.b. clothing gwen steffani movie trailors and clips garden tillers ie password recovery master crack cotrocnoacl

Contents

HowTo: XGL/Compiz with Dapper Drake, Gnome, ati

Thanks to quinstorm reggaemanu and cy and lots of other people who made this possible.

--If you want to start XGL when GDM starts , follow the the first section! The downside of this way to start XGL is that you can not start a normal Gnome session (non-XGL), atleast not trough GDM.

--If you still want to be able to start a normal Gnome session , follow the second section! That way you can choose between an XGL Gnome session or a normal Gnome session. The big plus is that if something is wrong with XGL, you still have a desktop available.

--If you used previous howtos , be sure to remove or modify all the changes you have made!

First section

First make sure you have 3d acceleration available in a normal Gnome session. There are lots of howtos for this , Google if you need any help with that. So if glxinfo shows direct rendering: yes , then you are good to go. If not XGL and Compiz wont work!

  • Update your system:
sudo aptitude update && sudo aptitude dist-upgrade
  • Prepare and update repositories:
sudo gedit /etc/apt/sources.list
  • Add quinstorms' and reggaemanus' repositories to /etc/apt/sources.list:
deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main
  • Download and import the gpg key for quinnstorms repository:
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
  • update your sources:
sudo aptitude update
  • Install needed packages:
sudo aptitude install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome
  • Modify /etc/gdm/gdm.conf-custom:
sudo gedit /etc/gdm/gdm.conf-custom
  • Look for [servers] and paste this:
[servers]
# Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX). 
1=Xgl 
[server-Xgl] 
name=Xgl server 
command=/usr/bin/Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
flexible=true
  • Modify /etc/gdm/gdm.conf :
sudo gedit /etc/gdm/gdm.conf
  • And change:
0=Standard
#1=Standard

to

#0=Standard
1=Standard
  • Go to line 198 and change GdmXserverTimeout=10 to (this one is very important!!!):
GdmXserverTimeout=50
  • Make a startup script for compiz:
sudo gedit /usr/bin/startcompiz
  • Paste:
#!/bin/sh 
killall gnome-window-decorator 
wait
gnome-window-decorator & 
compiz --replace gconf &
  • Make the script executable:
sudo chmod 755 /usr/bin/startcompiz
  • Add "/usr/bin/startcompiz" to gnome session startup programs ( go to system , preferences , sessions and select the startup programs tab.)


  • Do another dist-upgrade so you are sure you have all the newest packages:
sudo aptitude update && sudo aptitude dist-upgrade
  • reboot , login and have fun!

If you own an X series Radeon card , scroll down to the end of this howto!

Second Section

First make sure you have 3d acceleration available in a normal Gnome session. There are lots of howtos for this , Google if you need any help with that. So if glxinfo shows direct rendering: yes , then you are good to go. If not XGL and Compiz wont work!

  • Update your system:
sudo aptitude update && sudo aptitude dist-upgrade
  • Prepare and update repositories:
sudo gedit /etc/apt/sources.list
  • Add quinstorms' and reggaemanus' repositories to /etc/apt/sources.list:
deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main
  • Download and import the gpg key for quinnstorms repository:
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
  • update your sources:
sudo aptitude update
  • Install needed packages:
sudo aptitude install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome
  • Make a startup script for XGL:
sudo gedit /usr/bin/startxgl.sh
  • Paste:
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2 && DISPLAY=:1
# Start GNOME
exec gnome-session
  • Make the script executable:
sudo chmod 755 /usr/bin/startxgl.sh
  • Make a startup script for Compiz:
sudo gedit /usr/bin/startcompiz
  • Paste:
#!/bin/sh 
killall gnome-window-decorator 
wait
gnome-window-decorator & 
compiz --replace gconf &
  • Make the script executable:
sudo chmod 755 /usr/bin/startcompiz
  • Make a XGL session for the login manager:
sudo gedit /usr/share/xsessions/xgl.desktop
  • Paste:
[Desktop Entry]
Encoding=UTF-8
Name=XGl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application
  • Add "/usr/bin/startcompiz" to gnome session startup programs. (go to system , preferences , sessions and select the startup programs tab)


  • Do another dist-upgrade so you are sure you have all the newest packages:
sudo aptitude update && sudo aptitude dist-upgrade
  • reboot.

In the login manager you can now choose a session named Xgl. Answer to following question that you want to use XGL for this session only (if something went wrong you are logged in next time using standard session) If everything works fine , you can set it as the default session , remember you can always login a normal gnome session if you want.

Notes

If you own an X series Radeon and have problems with lockups, do this:

sudo gedit /etc/X11/xorg.conf

Find the Driver section for your video card and add this as the option:

Option       "KernelModuleParm" "agplock=0"


Note for all cards: glxinfo will show that direct rendering is not working , don't worry that's normal when you are running XGL.

Theming

There are some really nice themes for Compiz , here is how to install them: You will need the following packages:

cgwd cgwd-themes


After you have installed the packages, edit /usr/bin/startcompiz and change it like this:

#!/bin/sh 
killall gnome-window-decorator 
wait

cgwd & compiz --replace gconf &

Restart compiz or reboot. Go to System, preferences and you will find Compiz Themer there.

Personal tools