Ubuntu Breezy Installation Guide: Difference between revisions

From cchtml.com
m (Reverted edits by 67.223.234.160 (Talk); changed back to last version by Mooninite)
 
(24 intermediate revisions by 18 users not shown)
Line 14: Line 14:
''64-bit users:''
''64-bit users:''


You have to downgrade to an older version of libdri.a due to an incompatilbity with the ATI drivers.  [http://mail3.mpr.org/mlomker/libdri.a.gz Download it here]
You have to downgrade to an older version of libdri.a due to an incompatilbity with the ATI drivers.  [http://ati.cchtml.com/attachment.cgi?id=182 Download it here]


Change to download directory:
Change to download directory:
Line 42: Line 42:
The output of '''dmesg | grep fglrx''' and /var/log/Xorg.0.log are most useful when looking for errors.
The output of '''dmesg | grep fglrx''' and /var/log/Xorg.0.log are most useful when looking for errors.


== Method 2: Generating/Installing Ubuntu packages for the newer 8.24.8 drivers in Breezy Badger ==
== Method 2: Generating/Installing Ubuntu packages for the newer 8.28.8 drivers in Breezy Badger ==


'''Important Warning:''' Installation of this driver requires removing the restricted-modules package in order to work.  That package includes drivers for madwifi (Atheros wireless cards), nvidia cards, and a handful of other devices.  I provide a work-around for the madwifi drivers, but you need to perform it before removing the restricted modules (jump to end of this this post).
'''Important Warning:''' Installation of this driver requires removing the restricted-modules package in order to work.  That package includes drivers for madwifi (Atheros wireless cards), nvidia cards, and a handful of other devices.  I provide a work-around for the madwifi drivers, but you need to perform it before removing the restricted modules (jump to end of this this post).
Line 60: Line 60:


Reboot.
Reboot.
*Note 1: If after reboot, your system hangs at a black screen before taking you to a graphical login - reboot to 'recovery mode' and edit /etc/X11/xorg.conf to use 'vesa' instead of 'ati'.  Then continue with the steps below.
*Note 2: You can change your xorg.conf file to Option "vesa" BEFORE rebooting, so after rebooting you can have usable X (and skip Note 1). Remember that you HAVE to reboot (just restarting X will leave you with unusable X).


=== Installing the new driver ===
=== 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.24.8-x86.run 32bit Installer]
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. If you are using a x86_64 System you need the [http://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/64bit/ati-driver-installer-8.24.8-x86_64.run 64bit Installer]. The installation procedure should be the same as for 32bit, except some filenames will differ slightly.
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.  [http://mail3.mpr.org/mlomker/sources.list Sample sources.list].  
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.  [http://mail3.mpr.org/mlomker/sources.list Sample sources.list].  
Line 72: Line 76:


<pre>
<pre>
sudo apt-get install gcc-3.4 module-assistant build-essential  
sudo apt-get install gcc-3.4 module-assistant build-essential fakeroot dh-make debconf libstdc++5 gcc-3.3-base
sudo apt-get install fakeroot dh-make debconf libstdc++5 gcc-3.3-base
</pre>
</pre>


Line 79: Line 82:


<pre>
<pre>
chmod +x ati-driver-installer-8.24.8-x86.run
bash ati-driver-installer-8.28.8.run --buildpkg Ubuntu/breezy
LANG=C LC_ALL=C ./ati-driver-installer-8.24.8-x86.run --buildpkg Ubuntu/breezy
</pre>
</pre>


Line 86: Line 88:


<pre>
<pre>
sudo dpkg -i xorg-driver-fglrx_8.24.8-1_i386.deb
sudo dpkg -i xorg-driver-fglrx_8.28.8-1_i386.deb
sudo dpkg -i fglrx-control_8.24.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.28.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.24.8-1_i386.deb
sudo dpkg -i fglrx-control_8.28.8-1_i386.deb
</pre>
</pre>


Line 121: Line 123:
OpenGL vendor string: ATI Technologies Inc.
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9700 Generic
OpenGL renderer string: RADEON 9700 Generic
OpenGL version string: 2.0.5755 (8.24.8)
OpenGL version string: 2.0.6011 (8.28.8)
</pre>
</pre>


Line 131: Line 133:


Look for error messages in /var/log/Xorg.0.log and kern.log.
Look for error messages in /var/log/Xorg.0.log and kern.log.
If you receive the '''(EE) No devices detected''' error message, it is highly possible that you own a Radeon from the 7000-7500 series with the R100 chip, which the proprietary Linux drivers don't support.


==== Madwifi Drivers in Breezy Badger ====
==== Madwifi Drivers in Breezy Badger ====

Latest revision as of 22:19, 17 December 2008

Method 1: Installing Breezy's Included Driver (8.16.20)

The fglrx driver supports Radeon 8500+ and the X-series cards (see release notes). When running the dpkg-reconfigure commands you can accept the defaults whenever you aren't sure.

Installing the driver

All Platforms:

sudo apt-get install xorg-driver-fglrx
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo dpkg-reconfigure xserver-xorg #Select the fglrx driver and 64-bit users should deselect int10a

64-bit users:

You have to downgrade to an older version of libdri.a due to an incompatilbity with the ATI drivers. Download it here

Change to download directory:

gunzip libdri.a.gz
sudo cp /usr/X11R6/lib/modules/extensions/libdri.a libdri.a.old
sudo cp libdri.a /usr/X11R6/lib/modules/extensions/

If you wish to revert to any non-fglrx driver you will need to copy the libdri.a.old file back over the fglrx version.

All platforms: Ctrl-Alt-Backspace to restart your desktop.

Confirm that it works

$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5272 (X4.3.0-8.16.20)

Troubleshooting

If you have a widescreen LCD display that is stuck at 1024x768 then it is probably the bug in the 8.16.20 driver that was fixed in 8.18.X (see the next section).

The output of dmesg | grep fglrx and /var/log/Xorg.0.log are most useful when looking for errors.

Method 2: Generating/Installing Ubuntu packages for the newer 8.28.8 drivers in Breezy Badger

Important Warning: Installation of this driver requires removing the restricted-modules package in order to work. That package includes drivers for madwifi (Atheros wireless cards), nvidia cards, and a handful of other devices. I provide a work-around for the madwifi drivers, but you need to perform it before removing the restricted modules (jump to end of this this post).

When running the dpkg-reconfigure command you should answer the questions that you know and take the defaults for the rest. You might want to say no to the monitor detection--it has caused X-Windows to crash for some people.

Remove existing fglrx driver

Remove Breezy's included drivers if they are installed:

sudo apt-get remove xorg-driver-fglrx
sudo apt-get remove fglrx-control
sudo apt-get remove linux-restricted-modules-$(uname -r)
sudo dpkg-reconfigure xserver-xorg #select the "ati" module

Reboot.

  • Note 1: If after reboot, your system hangs at a black screen before taking you to a graphical login - reboot to 'recovery mode' and edit /etc/X11/xorg.conf to use 'vesa' instead of 'ati'. Then continue with the steps below.
  • Note 2: You can change your xorg.conf file to Option "vesa" BEFORE rebooting, so after rebooting you can have usable X (and skip Note 1). Remember that you HAVE to reboot (just restarting X will leave you with unusable X).

Installing the new driver

Download the ATI driver installer: 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. Sample sources.list.

Install necessary tools:

sudo apt-get install gcc-3.4 module-assistant build-essential fakeroot dh-make debconf libstdc++5 gcc-3.3-base

Create .deb packages:

bash ati-driver-installer-8.28.8.run --buildpkg Ubuntu/breezy

Install .deb packages:

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

Remove any old fglrx deb's from /usr/src/:

sudo rm /usr/src/fglrx-kernel*.deb

Compile the kernel driver:

sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant a-i fglrx

Update the xorg.conf file:

sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv

Reboot.

Confirm that it worked

$ 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)

(renderer string depends on your hardware and may/will be different)

Troubleshooting

General

Look for error messages in /var/log/Xorg.0.log and kern.log. If you receive the (EE) No devices detected error message, it is highly possible that you own a Radeon from the 7000-7500 series with the R100 chip, which the proprietary Linux drivers don't support.

Madwifi Drivers in Breezy Badger

In order to continue using the madwifi driver you can do the following before removing the linux-restricted-modules package and rebooting.

sudo cp /lib/modules/$(uname -r)/volatile/ath_hal.ko /lib/modules/$(uname -r)/kernel/
sudo depmod -a $(uname -r)