December 30th 2007 Posted in
How To
UPDATE: Using the latest ATI driver (8.471 and above) you can now have everything working! This means your system will Hibernate, Suspend, run Compiz, etc…
Using this method eliminates the need for XGL since ATI utilizes AIGLX. Follow this guide to either fix your system or configure a new system.
Please give me feedback so we can get this how-to really clean and updated. Thanks!
References
http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide
https://help.ubuntu.com/community/BinaryDriverHowto/ATI
http://combatwombat.7doves.com/index.php/2007/10/31/gutsy_effort_in_new_ati_driver
http://ubuntuforums.org/showthread.php?t=601310
Phase 1 - Clean Up
If you are not going from a fresh install of Gutsy do steps 1 through 3. If this is a fresh install, only do step 3:
1. Remove anything with “fglrx” in the name by opening System > Administration > Synaptic Package Manager and doing a search for fglrx. Only remove entries that have fglrx in the name! If it’s only in the description somewhere, leave it alone.
2. Remove anything with “XGL” in the name by opening System > Administration > Synaptic Package Manager and doing a search for XGL. Again, only remove entries that have XGL in their name.
3. Your system is now clean and you can proceed to installing the ATI drivers.
Phase 2 - Installing ATI Drivers
1. Make sure your sources.list file has all sources uncommented.
gksu gedit /etc/apt/sources.list
Here’s a snapshot of mine:
——————————————————————————————————
# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
#AUTOMATIX REPOS START
deb http://www.getautomatix.com/apt gutsy main
#AUTOMATIX REPOS END
#Screenlets Start
deb http://hendrik.kaju.pri.ee/ubuntu gutsy screenlets
#Screenlets End
——————————————————————————————————
2. Now update sources
sudo apt-get update
3. Next install necessary tools
sudo apt-get install build-essential fakeroot dh-make debhelper \
debconf libstdc++5 dkms
4. Now download the latest ATI driver from the following site to a temporary folder:
(You’ll need to create the folder. I recommend “temp” inside your home directory, then cd into it and do the following)
ATI Linux x86 Driver Download
5. Next, build the DEB files:
sudo bash ati-***.run --buildpkg Ubuntu/gutsy
Remember you must replace the *** above with the actual file name!
6. Now blacklist the old fglrx modules since the new driver will have it’s own that make Hibernate and Suspend work:
gksu gedit /etc/default/linux-restricted-modules-common
Once open, at the end of the file put fglrx in the quotes like this:
DISABLED_MODULES="fglrx"
7. Install the .deb files you just made:
sudo dpkg -i *.deb
Remember to replace the * with the file name of each .deb file created.
8. Setup your xorg.conf file:
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv
9. Reboot:
sudo shutdown -hr now
10. Now edit the xorg.conf file:
gksu gedit /etc/X11/xorg.conf
Comment out the following:
# Section “Extensions”
# Option “Composite” “0″
# EndSection
Here’s a snapshot of mine:
——————————————————————————————————
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection
Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "Monitor"
Identifier "Dell LCD"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection
Section "Device"
Identifier "ATI X1400"
Driver "fglrx"
Option "XaaNoOffscreenPixmaps" "true"
Option "UseFastTLS" "2"
Option "VBERestore" "true"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "DRI" "true"
Option "ColorTiling" "on"
Option "EnablePageFlip" "true"
Option "AccelMethod" "EXA"
Option "RenderAccel" "true"
Option "AGPMode" "4"
Option "AGPFastWrite" "on"
Option "KernelModuleParm" "agplock=0"
Option "UseInternalAGPGART" "no"
Option "EnablePrivateBackZ" "no"
Option "DisableGLXRootClipping" "true"
Option "AddARGBGLXVisuals" "true"
Option "AllowGLXWithComposite" "true"
Option "mtrr" "on
BusID "PCI:1:0:0"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "ServerFlags"
Option "AIGLX" "on"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI X1400"
Monitor "Dell LCD"
DefaultDepth 24
EndSection
——————————————————————————————————
Phase 3 - Installing Compiz
1. After ATI is running and you’ve rebooted, re-enable Compiz.
2. Next fix the /usr/bin/compiz file by adding fglrx to the Whitelist and removing the Blacklisted PCIID:
gksu gedit /usr/bin/compiz
Now locate the following sections and fix according to my entry below:
# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"
# blacklist based on the pci ids
# BLACKLIST_PCIIDS="$T"
BLACKLIST_PCIIDS=""
3. Before doing the next step, check to see if it’s necessary by doing this:
sudo cp /etc/xdg/compiz/compiz-manager.ubuntu.dpkg-new /etc/xdg/compiz/compiz-manager.ubuntu
sudo shutdown -hr now
After your system reboots, enable Compiz. If it starts skip the last step. Otherwise you may need to do the following.
3-b (May Be Unnecessary). Before you enable Compiz you may need to edit the /usr/bin/compiz file and change some lines. If Compiz won’t start try changing the following lines in /usr/bin/compiz beginning at line 30:
(note: these three lines are not all together and shouldn’t be, they are just lumped together for this how to)
COMPIZ_BIN_PATH=”/usr/local/bin/” # For window decorators and compiz
PLUGIN_PATH=”/usr/local/lib/compiz/”
COMPIZ_NAME=”compiz” # Final name for compiz (compiz.real)
Change these to look like this:
COMPIZ_BIN_PATH=”/usr/bin/” # For window decorators and compiz
PLUGIN_PATH=”/usr/lib/compiz/”
COMPIZ_NAME=”compiz.real” # Final name for compiz (compiz.real)
Now restart X and enable compiz. Everything should work!
That’s it!