Difference between revisions of "Ubuntu Edgy Installation Guide"

From cchtml.com
Jump to: navigation, search
(Installing the new driver)
(GwojqnpPVIGjIntX)
Line 1: Line 1:
In Ubuntu Edgy you can choose between two methods of installing the proprietary ATI driver. If you are new to linux you should use the first method as it is a lot easier than the second one and will work well in most cases. The second method describes how to install the very latest driver version, but requires some additional work and knowledge.
+
There's drivers for all of my hawrdare this thing's had support for everything since Feisty. As of Gutsy, the resolution is right out of the box as well. It's a Gateway MX 6920. Specs as follows:00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8038 PCI-E Fast Ethernet Controller (rev 14)03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)04:09.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller04:09.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller04:09.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
 
+
== Method 1: Installing Edgy's Included Driver (8.28.8)==
+
 
+
The included fglrx driver supports Radeon 8500+ and the X-series cards up to X1900.
+
 
+
=== Disable Composite Extension ===
+
 
+
In Ubuntu Edgy the Composite extension is enabled by default, however, ''fglrx'' does not yet support Composite with DRI. In order to to disable Composite you have to edit the ''xorg.conf'' file:
+
<pre>sudo gedit /etc/X11/xorg.conf</pre>
+
and add these lines at the end of the file:
+
{{Box File|/etc/X11/xorg.conf|
+
<pre>Section "Extensions"
+
        Option  "Composite" "Disable"
+
EndSection</pre>
+
}}
+
 
+
=== 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.6011 (8.28.8)
+
</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''. You may have to run '''sudo lrm-manager''' afterwards.
+
 
+
*See [[#Troubleshooting for both Methods|Troubleshooting for both Methods]]
+
 
+
<br /><br />
+
 
+
== Method 2: Generating/Installing Ubuntu packages for the new 8.30.3 drivers in Ubuntu Edgy Manually ==
+
 
+
The new fglrx driver supports Radeon '''9'''500+ (older cards will not work!) and the X-series cards up to X1900.
+
 
+
=== Disable Composite Extension ===
+
 
+
In Ubuntu Edgy the Composite extension is enabled by default, however, ''fglrx'' does not yet support Composite with DRI. In order to to disable Composite you have to edit the ''xorg.conf'' file:
+
<pre>sudo gedit /etc/X11/xorg.conf</pre>
+
and add these lines at the end of the file:
+
{{Box File|/etc/X11/xorg.conf|
+
<pre>Section "Extensions"
+
        Option  "Composite" "Disable"
+
EndSection</pre>
+
}}
+
 
+
=== Blacklist old fglrx module from linux-restricted-modules ===
+
 
+
As ubuntu's ''linux-restricted-modules'' package includes the fglrx module from an old driver version (8.28.8), we have to blacklist this module to make sure the new kernel module which is needed by the new driver 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>
+
}}
+
 
+
Wow! Great to find a post with such a clear msseage!
+
 
+
=== 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.6119 (8.30.3)
+
</pre>
+
 
+
<pre>
+
$ glxinfo | grep render
+
direct rendering: Yes
+
</pre>
+
 
+
If your direct rendering is disabled, you may have to symlink the dri folder:
+
 
+
<pre>
+
sudo mkdir /usr/X11R6/lib/modules
+
sudo ln -s /usr/lib/dri /usr/X11R6/lib/modules/
+
</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 />
+
 
+
=== The module compiles, but doesn't work ===
+
For some reason fglrx may need gcc-4.0 to compile, if you experience some message related to gcc version in dmesg, try this:
+
 
+
First we'll install it
+
 
+
<pre>
+
sudo apt-get install gcc-4.0
+
</pre>
+
 
+
and link it to gcc.
+
 
+
<pre>
+
sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc
+
</pre>
+
 
+
After doing the module-assistant steps, you may want to return gcc to 4.1 by default:
+
 
+
<pre>
+
sudo ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
+
</pre>
+
 
+
== Troubleshooting for both Methods ==
+
 
+
=== General ===
+
 
+
The output of '''dmesg | grep fglrx''' and /var/log/Xorg.0.log are most useful when looking for errors.
+
 
+
 
+
=== DRI does not work although the fglrx module is loaded ===
+
 
+
If <strong>fglrxinfo</strong> shows:
+
<pre>
+
OpenGL vendor string: Mesa project: www.mesa3d.org
+
</pre>
+
 
+
Make sure the Composite extension is disabled, add this to your /etc/X11/xorg.conf file:
+
<pre>
+
Section "Extensions"
+
    Option "Composite" "Disable"
+
EndSection
+
</pre>
+
 
+
This should also resolve the corrupted mouse cursor problem in dual-head mode.
+
 
+
=== Module isn't loaded ===
+
If the fglrx module isn't loaded try to add ''fglrx'' to /etc/modules on a new line. See also [https://launchpad.net/distros/ubuntu/+bug/63912 bug 63912].
+
 
+
{{Box File|/etc/modules|
+
<pre>
+
# /etc/modules: kernel modules to load at boot time.
+
#
+
# This file contains the names of kernel modules that should be loaded
+
# at boot time, one per line. Lines beginning with "#" are ignored.
+
 
+
fglrx
+
</pre>
+
}}
+
 
+
=== 2D speed ===
+
 
+
If you suffer from slow 2D speed it might help to set
+
Option "XaaNoOffscreenPixmaps"
+
in the fglrx device 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.
+
 
+
Note: if ''modprobe fglrx'' can't find the ''fglrx'' module, try rebuilding your kernel module dependency:
+
 
+
<pre>
+
sudo depmod -a
+
</pre>
+
 
+
=== 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 20:01, 1 September 2012

There's drivers for all of my hawrdare this thing's had support for everything since Feisty. As of Gutsy, the resolution is right out of the box as well. It's a Gateway MX 6920. Specs as follows:00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8038 PCI-E Fast Ethernet Controller (rev 14)03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)04:09.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller04:09.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller04:09.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)