Ubuntu Edgy Installation Guide: Difference between revisions

From cchtml.com
No edit summary
 
No edit summary
Line 5: Line 5:


On the other side, if you can confirm that this guide (this means both methods) works on an a default Edgy installation without causing any trouble, you may remove remove this warning.
On the other side, if you can confirm that this guide (this means both methods) works on an a default Edgy installation without causing any trouble, you may remove remove this warning.
== Method 1: Installing Edgy's Included Driver ==
=== Installing the driver ===
Make sure the ''restricted'' repository is enabled in ''/etc/apt/sources.list'' or this guide will not work!
<pre>
sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo apt-get install xorg-driver-fglrx
sudo depmod -a
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv
</pre>
Now Reboot your system:
<pre>
sudo shutdown -r now
</pre>
An '''alternative''' to the '''aticonfig --initial''' command is to edit ''/etc/X11/xorg.conf'' and replace the string "ati" with "fglrx" in the "Device" section. This way you won't lose your old "Screen" and "Monitor" settings. Afterwards you can use aticonfig for setting overlay etc.
=== Confirm that it works ===
<pre>
fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600 Generic
OpenGL version string: 2.0.5814 (8.25.18)
</pre>
=== Troubleshooting for Method 1 ===
*The output of '''dmesg | grep fglrx''' and /var/log/Xorg.0.log are most useful when looking for errors. You should really include this when you are asking for help somewhere.
*If you used Method 2 before, you have to unblacklist fglrx again by editing ''/etc/default/linux-restricted-modules-common''
*See [[#Troubleshooting for both Methods|Troubleshooting for both Methods]]
<br /><br />
== Method 2: Generating/Installing Ubuntu packages for the 8.28.8 drivers in Ubuntu Edgy Manually ==
=== blacklist old fglrx module from linux-restricted-modules ===
We have to blacklist the fglrx module from ''linux-restricted-modules'' to make sure the new kernel module (which will be created during install) will be used instead.
<pre>sudo gedit /etc/default/linux-restricted-modules-common</pre>
Edit ''DISABLED_MODULES'' to include fglrx
{{Box File|/etc/default/linux-restricted-modules-common|
<pre>DISABLED_MODULES="fglrx"</pre>
}}
=== Installing the new driver ===
Download the ATI driver installer: [http://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.28.8.run ati-driver-installer-8.28.8.run] (this installer is for 32bit '''and''' 64bit systems)
This guide refers to the 32bit version of the driver. The installation procedure for 64bit should be the same as for 32bit, except some filenames will differ slightly.
Change to the download directory.  Make sure that you have the ''universe'' and ''multiverse'' repositories enabled in ''/etc/apt/sources.list'' before doing these steps.
''Install necessary tools:''
<pre>
sudo apt-get update
sudo apt-get install module-assistant build-essential
sudo apt-get install fakeroot dh-make debconf libstdc++5 linux-headers-$(uname -r)
</pre>
''Create .deb packages:''
<pre>
bash ati-driver-installer-8.28.8.run --buildpkg Ubuntu/edgy
</pre>
''Install .deb packages:''
<pre>
sudo dpkg -i xorg-driver-fglrx_8.28.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.28.8-1_i386.deb
sudo dpkg -i fglrx-control_8.28.8-1_i386.deb
</pre>
''Remove any old fglrx debs from /usr/src/:''
<pre>
sudo rm /usr/src/fglrx-kernel*.deb
</pre>
''Compile the kernel module:''
<pre>
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
sudo module-assistant install fglrx
sudo depmod -a
</pre>
'''Note''': You have to recompile the kernel module after each kernel update!
''Update the xorg.conf file:''
<pre>
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv
</pre>
''Reboot:''
<pre>
sudo shutdown -r now
</pre>
=== Confirm that it worked ===
<pre>
$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9700 Generic
OpenGL version string: 2.0.6011 (8.28.8)
</pre>
=== Troubleshooting for Method 2===
==== xorg.conf ====
The '''aticonfig --initial''' command will not update the xorg.conf file if it already has a "fglrx" Device section.
However, you may force aticonfig to generate default Monitor, Device, and Screen sections with the following command:
<pre>
sudo aticonfig --force --initial
</pre>
<br /><br />
== Troubleshooting for both Methods ==
=== General ===
The output of '''dmesg | grep fglrx''' and /var/log/Xorg.0.log are most useful when looking for errors.
=== 2D speed ===
If you suffer from slow 2D speed it might help to set
Option "XaaNoOffscreenPixmaps"
in the fglrx section of ''/etc/X11/xorg.conf''
=== Is the rebooting really necessary? ===
No.
However, rebooting is the easiest method to ensure that the kernel module(s) from the old driver are unloaded and the fglrx module is loaded instead. If you don't want to reboot for some reason, you may manually shut down Xorg, unload any old "drm", "radeon" or "fglrx" modules and then start Xorg again.
=== Revert to Xorg driver ===
If (for any reason) the fglrx install fails, you can revert to the Xorg driver by executing
<pre>sudo dpkg-reconfigure xserver-xorg</pre>
and selecting the "ati" driver, or simply restoring the previous /etc/X11/xorg.conf file, if you made a backup.
You also need to remove the xorg-driver-fglrx or your manually installed drivers to get the 3D acceleration back, since it is provided by file /usr/lib/libGL.so.1.2 which belongs to libgl1-mesa package and which is moved to backup and replaced at the installation of xorg-driver-fglrx (or the manually built) package. In case the removal of the fglrx drivers fails to restore the file from libgl1-mesa, you have to reinstall the package by running:
<pre>sudo apt-get install --reinstall libgl1-mesa</pre>

Revision as of 15:31, 31 August 2006

Big Fat Warning

Read this before doing anything else!

This is NOT a tested guide for Ubuntu Edgy. It is just a modified copy of the Dapper-Guide. Maybe it works for you, maybe it will make your system unusable. If you are using Edgy and you really know that some parts of this guide have to be modified to make the install work in Edgy, please change them accordingly.

On the other side, if you can confirm that this guide (this means both methods) works on an a default Edgy installation without causing any trouble, you may remove remove this warning.