<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.cchtml.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=37.233.27.142</id>
	<title>cchtml.com - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cchtml.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=37.233.27.142"/>
	<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Special:Contributions/37.233.27.142"/>
	<updated>2026-04-30T00:58:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10395</id>
		<title>Gentoo Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10395"/>
		<updated>2014-01-16T08:18:18Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: DKfvD1 Thank you for your post.Thanks Again. Want more.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Orginally found on the [http://gentoo-wiki.com/HOWTO_ATI_Drivers Gentoo Wiki], the GNU Free Documentation license allows me to copy/paste it here.&lt;br /&gt;
&lt;br /&gt;
IxV6Yf Im thankful for the blog post.Much thanks again. Great.&lt;br /&gt;
&lt;br /&gt;
HZcKQK Thank you ever so for you post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
ZhZr19 Thanks so much for the blog post.&lt;br /&gt;
&lt;br /&gt;
DKfvD1 Thank you for your post.Thanks Again. Want more.&lt;br /&gt;
&lt;br /&gt;
==Some differences to open source driver &amp;quot;radeon&amp;quot;==&lt;br /&gt;
This information&#039;s was extracted from the file /var/log/Xorg.0.log.&lt;br /&gt;
&lt;br /&gt;
===Detected outputs===&lt;br /&gt;
The naming looks better at &#039;&#039;radeon&#039;&#039;. See example for HD5770 (1xHDMI, 2xDVI, 1x DisplayPort):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;fglrx&#039;&#039;: DFP1 (physical HDMI-0 on radeon?), DFP2 (physical DVI-0 on radeon?), DFP3 (physical DVI-1 on radeon!), DFP4 (physical DisplayPort-0 on radeon?), CRT1, CRT2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;radeon&#039;&#039;: HDMI-0, DVI-0, DVI-1, DisplayPort-0&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[http://ati.cchtml.com/ ATi Unofficial Bugzilla (occasionally monitored by ATi personnel)]&lt;br /&gt;
*Check out user Wedge_&#039;s excellent ATI Radeon [http://odin.prohosting.com/wedge01/gentoo-radeon-faq.html FAQ here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10393</id>
		<title>Ubuntu Precise Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10393"/>
		<updated>2014-01-16T02:13:02Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: 2eZ0Hy A round of applause for your blog post.Really thank you! Want more.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
k8EgXE I appreciate you sharing this blog article.Really looking forward to read more. Much obliged.&lt;br /&gt;
&lt;br /&gt;
C74Djm Enjoyed every bit of your blog.Thanks Again. Awesome.&lt;br /&gt;
&lt;br /&gt;
2eZ0Hy A round of applause for your blog post.Really thank you! Want more.&lt;br /&gt;
&lt;br /&gt;
= Alternative Manual Installation =&lt;br /&gt;
WARNING: This method is incompatible with Debian/Ubuntu Filesystem Hierarchy and may cause issues, especially when trying to remove or upgrade Catalyst. It is highly recommended to build .deb pakages. USE AT OWN RISK.&lt;br /&gt;
&lt;br /&gt;
This is another method of manual installation that may work best for laptop users who have a hybrid setup (i.e. Intel HD onboard graphics with an AMD discrete GPU).&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
 ./amd-driver-installer-{{Catalystdashversion}}-x86/x86_64.run&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Install Driver on X.Org&amp;quot; rather than &amp;quot;Generate distribution specific driver package&amp;quot;. Select the &amp;quot;Automatic&amp;quot; install option.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for xvba is VLC. You can enable xvba in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though I don&#039;t know if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
Follow GUI Installation and choose the basic one &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot;. Let the install finish and it will ask you to reboot. Do not REBOOT.&lt;br /&gt;
&lt;br /&gt;
Make a backup of your xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
&lt;br /&gt;
Generate a new config:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
Force use of the new xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --input=/etc/X11/xorg.conf --tls=1&lt;br /&gt;
&lt;br /&gt;
Run the following commands to confim your new settings:&lt;br /&gt;
&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
&lt;br /&gt;
Once all done, Reboot. &lt;br /&gt;
&lt;br /&gt;
Relogin and try the following command to see your Graphics card status:&lt;br /&gt;
&lt;br /&gt;
 sudo lshw -C display&lt;br /&gt;
&lt;br /&gt;
Re-open &amp;quot;Additional Drivers&amp;quot; settings and you will see &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot; status as &amp;quot;This driver is activated and currently in use&amp;quot;. Open &amp;quot;AMD Catalyst Control Center&amp;quot; to see more options. &lt;br /&gt;
&lt;br /&gt;
Tested on my Intel Gen 2/RadeonHD7550 gfx cards on a Samsung NP530U4B-S01AU Laptop. This solved a general overheating and crashing of AMD Catalyst Control Center issues.&lt;br /&gt;
&lt;br /&gt;
Extra: I completely solved overheating issue with Jupiter Applet. (http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html) on the same laptop. More comments on this would be appreciated.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it may be possible to work around the issue by using a control file from a older version of Catalyst than the one you&#039;re running.&lt;br /&gt;
 cd ~/; mkdir catalyst12.4; cd catalyst12.4/&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://www2.ati.com/drivers/linux/amd-driver-installer-&amp;lt;/nowiki&amp;gt;12-4-x86.x86_64.run&lt;br /&gt;
 chmod +x amd-driver-installer-12-4-x86.x86_64.run&lt;br /&gt;
 sh amd-driver-installer-12-4-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/lucid/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10392</id>
		<title>Slackware: ATI SlackBuild (ENG)</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10392"/>
		<updated>2014-01-16T00:52:58Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: PtOJBh I truly appreciate this post.Thanks Again. Fantastic.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Per http://wiki.cchtml.com/index.php/Slackware:_ATI_SlackBuild_(ENG) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2KjaBI I really like and appreciate your blog post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
TGnBU6 I loved your article. Keep writing.&lt;br /&gt;
&lt;br /&gt;
BVDVcH I appreciate you sharing this blog. Great.&lt;br /&gt;
&lt;br /&gt;
PtOJBh I truly appreciate this post.Thanks Again. Fantastic.&lt;br /&gt;
&lt;br /&gt;
= Minimal X.Org server configuration =&lt;br /&gt;
Once installed the two indicated packages, you must tell to the X.Org server to use ATI proprietary drivers, to do this we must check if the xorg.conf file, which is usually located in the &#039;&#039;/etc/X11/&#039;&#039; directory, contains the following items:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Load    &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load    &amp;quot;glx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Driver  &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;DRI&amp;quot;&lt;br /&gt;
        Group   0&lt;br /&gt;
        Mode    0666&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
{{Useful Information|Note|The command:&lt;br /&gt;
 #&amp;gt; aticonfig --initial&lt;br /&gt;
can help you. Do &#039;&#039;&#039;aticonfig&#039;&#039;&#039; without options for more infos.}}&lt;br /&gt;
&lt;br /&gt;
= Installation checking =&lt;br /&gt;
To see if proprietary ATI drivers are properly installed run the command:&lt;br /&gt;
 $&amp;gt; fglrxinfo&lt;br /&gt;
On my computer the output is:&lt;br /&gt;
 display::0.0  screen: 0&lt;br /&gt;
 OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
 OpenGL renderer string: ATI Mobility Radeon X1400&lt;br /&gt;
 OpenGL version string: 2.0.6650 (8.39.4)&lt;br /&gt;
&lt;br /&gt;
= Remove installed packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
To remove installed packages you can use the &#039;&#039;&#039;removepkg&#039;&#039;&#039; utility. However, there are aspects that should be considered:&lt;br /&gt;
* The packages&#039; removing don&#039;t delete fglrx&#039;s driver configuration files, these files are located in &#039;&#039;/etc/ati&#039;&#039; directory&lt;br /&gt;
{{Be Careful|Be Careful|The /etc/ati/custom-package directory, if exists, contains the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; and therefore should not be deleted.}}&lt;br /&gt;
* The fglrx-x package contains ATI&#039;s OpenGL libraries, and these libraries are located in the same directory of the Mesa libraries, so when you install the fglrx-x package Mesa OpenGL libraries are overridden. To restore the situation you should simply reinstall the package containing these libraries, like:&lt;br /&gt;
::x11&lt;br /&gt;
:for Slackware 11, or:&lt;br /&gt;
::mesa&lt;br /&gt;
:for Slackware 12.&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
During installation of the package &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039; some libraries that would be overwritten are renamed as FGL.renamed.library_name. Due to remove this package &amp;amp;ldquo;cleanly&amp;amp;rdquo; you should do:&lt;br /&gt;
 #&amp;gt; aticonfig --uninstall&lt;br /&gt;
or, directly with the script:&lt;br /&gt;
 #&amp;gt; /usr/share/ati/amd-uninstall.sh&lt;br /&gt;
or, also with any installer &amp;gt;= 11.3, with:&lt;br /&gt;
 #&amp;gt; ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --uninstall&lt;br /&gt;
Will remain only the directory &#039;&#039;/etc/ati&#039;&#039; with the configuration files.&lt;br /&gt;
&lt;br /&gt;
= Patching the drivers =&lt;br /&gt;
Ati drivers are usually not compatible with brand new version of kernel linux. You often need to patch the driver so that you can create the kernel module successfully. Since Ati Catalyst &amp;gt; 8.11 you can patch Ati drivers within the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; before that same SlackBuild compiles the kernel module.&lt;br /&gt;
&lt;br /&gt;
In order to do that, you just have to create (or download from the Internet) a patch and rename it like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/ati/patch/patch-ATI_DRIVER_VERSION-KERNEL_VERSION&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
ATI_DRIVER_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -i | head -n1 | cut -d&#039;-&#039; -f2&lt;br /&gt;
KERNEL_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; uname -r&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;/etc/ati/patch&#039;&#039; doesn&#039;t exist, it must be made.&lt;br /&gt;
&lt;br /&gt;
For example, if the former command outputs &amp;quot;8.55&amp;quot; and the latter &amp;quot;2.6.27.6&amp;quot;, you need to name the patch &#039;&#039;/etc/ati/patch/patch-8.56-2.6.27.6&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; will find the patch automatically and, if the command &#039;&#039;&#039;patch&#039;&#039;&#039; is installed, it will run:&lt;br /&gt;
 #&amp;gt; patch -p0 &amp;lt; /etc/ati/patch/patch-8.56-2.6.27.6&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
Here some patches and how to use there:&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.3, 10.4 and kernel == 2.6.33.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.3-4_with_2.6.33.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.3&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.712-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-3-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.4, 10.5 and kernel == 2.6.34 ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.4-5_with_2.6.34.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.5&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.732-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.9 and Slackware64 13.1 or current ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.9_with_Slackware64-13.1.diff patch] into &#039;&#039;/tmp&#039;&#039;, so to do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.9_with_Slackware64-13.1.diff /etc/ati/patch/patch-8.771-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-9-x86.x86_64.run --buildpkg&lt;br /&gt;
at one point the installer asks:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
can&#039;t find file to patch at input line 4&lt;br /&gt;
Perhaps you should have used the -p or --strip option?&lt;br /&gt;
The text leading up to this was:&lt;br /&gt;
--------------------------&lt;br /&gt;
|diff -ru ./2.6.x/Makefile ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile&lt;br /&gt;
|--- ./2.6.x/Makefile   2010-09-01 16:05:31.000000000 +0200&lt;br /&gt;
|+++ ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile  2010-09-23 08:47:24.000000000 +0200&lt;br /&gt;
--------------------------&lt;br /&gt;
File to patch:&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
insert:&lt;br /&gt;
 ./2.6.x/Makefile&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 and kernel == 2.6.36.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-11_with_2.6.36.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 e 10.12 e kernel == 2.6.37.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-12_with_2.6.37.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.12&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.801-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-12-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
= Known problems =&lt;br /&gt;
== error: implicit declaration of function &#039;lock_kernel&#039; and error: implicit declaration of function &#039;unlock_kernel&#039; ==&lt;br /&gt;
You need to enable the &#039;&#039;&#039;Big Kernel Lock&#039;&#039;&#039; in your kernel configuration. You find it under the &#039;&#039;&#039;Kernel hacking&#039;&#039;&#039; menu. You can check if this option is enable with:&lt;br /&gt;
 $&amp;gt; zcat /proc/config.gz | grep BKL&lt;br /&gt;
 CONFIG_BKL=y&lt;br /&gt;
&lt;br /&gt;
== FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol &#039;paravirt_ops&#039; ==&lt;br /&gt;
The error occurs during module compilation and It&#039;s due to the fact that the kernel was compiled with the option of paravirtualization active. This option among other things, prevents to load, and then to compile, modules that do not have the GPL license. Since that ATI drivers don&#039;t have this type of license, they aren&#039;t compiled.&lt;br /&gt;
&lt;br /&gt;
To work around this problem you can:&lt;br /&gt;
==== Disable kernel paravirtualization option ====&lt;br /&gt;
The paravirtualization option is called &#039;&#039;&#039;CONFIG_PARAVIRT&#039;&#039;&#039; and generally is in the &#039;&#039;&#039;Processor type and features&#039;&#039;&#039; kernel submenu.&lt;br /&gt;
==== Patch ATI drivers ====&lt;br /&gt;
This operation is illegal because It changes the type of license issued by ATI in a GPL license. I wrote the patch:&lt;br /&gt;
&lt;br /&gt;
[http://www.slacky.eu/~spina/fglrx/patch/ati_to_gpl.patch ati_to_gpl.patch] (md5sum: 4207f41a71035dc2eed3ea9346b881bb)&lt;br /&gt;
&lt;br /&gt;
but I do not take any responsibility, I do not use It and I discourage the use in order to prefer the alternative to disable the paravirtualization kernel option. To use this patch You need to:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;External SlackBuild&#039;&#039;&#039;&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Internal SlackBuild&#039;&#039;&#039; (only with Ati Catalyst &amp;gt; 8.11):&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/patch&#039;&#039; directory (if it doesn&#039;t exist you must create it)&lt;br /&gt;
&lt;br /&gt;
The SlackBuild will find and apply the patch automatically. In order to uninstall it you simply need to delete it. In order to uninstall the patch simply delete It from &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory.&lt;br /&gt;
&lt;br /&gt;
== Using GLX_SGIX_pbuffer FGLTexMgr: open of shared memory object failed (Permission denied) __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!! ==&lt;br /&gt;
This problem is due to the lack of SHM filesystem (now called tmpfs), that is virtual memory filesystem. To work around this problem you must:&lt;br /&gt;
* Add into &#039;&#039;/etc/fstab&#039;&#039; file the following line:&lt;br /&gt;
 shm		/dev/shm		tmpfs		defaults	0	0&lt;br /&gt;
* Then mount the filesystem through:&lt;br /&gt;
 #&amp;gt; mount /dev/shm&lt;br /&gt;
Obviously the kernel must be predisposed for the &amp;quot;mounting&amp;quot; of this filesystem, in particular the kernel option that must be enabled is &#039;&#039;&#039;CONFIG_TMPFS&#039;&#039;&#039; that is generally placed in &#039;&#039;&#039;File system --&amp;gt; Pseudo filesystems&#039;&#039;&#039; submenu. However all the compiled kernel generally have this option enabled.&lt;br /&gt;
&lt;br /&gt;
== kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel ==&lt;br /&gt;
The complete mistake is something like this:&lt;br /&gt;
&lt;br /&gt;
 Error:&lt;br /&gt;
 kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel.&lt;br /&gt;
 they are versioned as &amp;quot;&amp;quot;&lt;br /&gt;
 instead of &amp;quot;`uname -r`&amp;quot;.&lt;br /&gt;
 you might need to adjust your symlinks:&lt;br /&gt;
 - /usr/include&lt;br /&gt;
 - /usr/src/linux&lt;br /&gt;
&lt;br /&gt;
The error, also if explained, could be not clear. In practice It results from the fact that the symbolic link:&lt;br /&gt;
 /lib/modules/`uname -r`/source&lt;br /&gt;
 /lib/modules/`uname -r`/build&lt;br /&gt;
don&#039;t point to the directory where are inserted the current kernel sources (which is generally &#039;&#039;/usr/src/linux- &#039;uname-r&#039;&#039;&#039;). It happens to those who use a kernel contained in Slackware, so I will try to explain It in terms of Slackware &amp;quot;packages&amp;quot;. This can happen:&lt;br /&gt;
* because the kernel source were not installed. In this case should be enough to install the source package which can be found in Slackware k/ directory. However, It is not granted that the problem will be solved, You&#039;ll need to see the second reason why there is an error.&lt;br /&gt;
* because sources (also if installed) do not reflect the settings of the current kernel. The new Slackware 12 has some precompiled kernels (which means different settings), while just a single package for the sources (unless seeing the branch extra/). In particular, the sources are for the SMP kernel and so if you use a non-SMP kernel can appear this error. To avoid this, after making sure that the package source has been installed, do simply the following:&lt;br /&gt;
 #&amp;gt; cd /usr/src/linux&lt;br /&gt;
 #&amp;gt; cp /boot/config .config&lt;br /&gt;
 #&amp;gt; make&lt;br /&gt;
:running make, in addition to compiling the kernel modules (which we will not use), some header files are regenerated, and they will reflect the kernel configuration (as it&#039;s set in the .config file).&lt;br /&gt;
&lt;br /&gt;
== Driver 8.39.4 logo ==&lt;br /&gt;
This &amp;quot;bug&amp;quot; in 8.39.4 drivers results from the fact that ATI developers don&#039;t update the packager maintainers before the official releases. It should be nice first if they did test us official releases in order to certify the proper functioning of the scripts for creating packages. To solve the problem it&#039;s necessary to use the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; as described here.&lt;br /&gt;
&lt;br /&gt;
== amdcccle don&#039;t start on Slackware 12 ==&lt;br /&gt;
Many users of the X.Org 7.2 (or 1.3) server version fail to start properly the Catalyst. The command to run the Catalyst is:&lt;br /&gt;
 #&amp;gt; amdcccle&lt;br /&gt;
For this problem it seems there is no solution yet, but we are working on to solve it.&lt;br /&gt;
&lt;br /&gt;
= Useful links =&lt;br /&gt;
The discussion thread from which it was derived this article:&lt;br /&gt;
http://www.slacky.eu/forum/viewtopic.php?t=18134&amp;amp;highlight=&lt;br /&gt;
&lt;br /&gt;
An alternative to official ATI drivers:&lt;br /&gt;
http://www.x.org/wiki/radeon&lt;br /&gt;
&lt;br /&gt;
A wiki in italian about installing and configuring ATI drivers (open source and proprietary):&lt;br /&gt;
http://www.slacky.eu/wikislack/index.php?title=Installazione_driver_ATI_su_Slackware_GNU/Linux&lt;br /&gt;
&lt;br /&gt;
= Acknowledgement =&lt;br /&gt;
Thank you at Ezio Ghibaudo and Federico Rota who have started this wiki and for help with the SlackBuild. Thanks also at all the [http://www.slacky.eu/ Italian Slackware Community] users for their feedback and support.&lt;br /&gt;
&lt;br /&gt;
[[User:Spina|Spina]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10390</id>
		<title>Ubuntu Quantal Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10390"/>
		<updated>2014-01-15T23:02:27Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: eJRGmV Thank you ever so for you article. Really Cool.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
yLmxHv Muchos Gracias for your blog article. Awesome.&lt;br /&gt;
&lt;br /&gt;
rv75R9 Thanks so much for the blog post.Much thanks again. Keep writing.&lt;br /&gt;
&lt;br /&gt;
s5GETQ I truly appreciate this blog article. Great.&lt;br /&gt;
&lt;br /&gt;
eJRGmV Thank you ever so for you article. Really Cool.&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though it&#039;s not clear if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
By using the officially provided drivers, there are two problems ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1068404 #1068404]):&lt;br /&gt;
: An incompatibility problem between intel and fglrx drivers (This gives segmentation fault at X server)&lt;br /&gt;
: Some paths missing for openGL operation of the fglrx driver (This prevents applications that require direct rendering, e.g. Unity/games/etc, from loading correctly)&lt;br /&gt;
&lt;br /&gt;
If you follow the instructions described in the [https://help.ubuntu.com/community/BinaryDriverHowto/ATI#WORKAROUND Binary Driver HOWTO], you should get functional configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is still another bug if you use the integrated GPU (Intel), making the X server crashing ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1088220 #1088220] )&lt;br /&gt;
&lt;br /&gt;
A workaround for now is to use the discrete GPU (ATI)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information you may want to follow this [http://ubuntuforums.org/showthread.php?p=12324761#post12324761 forum topic]&lt;br /&gt;
&lt;br /&gt;
==== Script solution ====&lt;br /&gt;
&lt;br /&gt;
:Script by anion155, http://pastebin.com/1ALmnqx5.&lt;br /&gt;
:It can help you install &amp;amp; uninstall fglrx drivers for this configuration.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it is possible to work around the issue. First check if AMD&#039;s signature file has a proper signature:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/ati/signature&lt;br /&gt;
&lt;br /&gt;
If the file only contains the word &#039;&#039;UNSIGNED&#039;&#039;, replace the line with:&lt;br /&gt;
 9777c589791007f4aeef06c922ad54a2:ae59f5b9572136d99fdd36f0109d358fa643f2bd4a2644d9efbb4fe91a9f6590a145:f612f0b01f2565cd9bd834f8119b309bae11a1ed4a2661c49fdf3fad11986cc4f641f1ba1f2265909a8e34ff1699309bf211a7eb4d7662cd9f8e3faf14986d92f646f1bc&lt;br /&gt;
&lt;br /&gt;
Reboot and see if the watermark is gone. If not, try using a control file from a older version of Catalyst than the one you&#039;re running:&lt;br /&gt;
&lt;br /&gt;
 cd ~/; mkdir catalyst12.10; cd catalyst12.10/&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-12.10-x86.x86_64.run&lt;br /&gt;
 ./amd-driver-installer-catalyst-12.10-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/quantal/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
 &lt;br /&gt;
or specify all the correct parameters. For example:&lt;br /&gt;
 sudo dkms build -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
 sudo dkms install -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10351</id>
		<title>Gentoo Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10351"/>
		<updated>2013-12-15T19:07:01Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: ZhZr19 Thanks so much for the blog post.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Orginally found on the [http://gentoo-wiki.com/HOWTO_ATI_Drivers Gentoo Wiki], the GNU Free Documentation license allows me to copy/paste it here.&lt;br /&gt;
&lt;br /&gt;
IxV6Yf Im thankful for the blog post.Much thanks again. Great.&lt;br /&gt;
&lt;br /&gt;
HZcKQK Thank you ever so for you post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
ZhZr19 Thanks so much for the blog post.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
===Wrong resolution===&lt;br /&gt;
Often the EDID information can&#039;t read correctly from monitor. Therefore first remove all kvm switches, hdmi switches or hdmi matrices between your monitor and output of your graphics card. At the moment (ati-drivers-10.12) the options &amp;quot;NoDDC&amp;quot;, &amp;quot;UseEdidFreqs&amp;quot; &amp;quot;0&amp;quot;, &amp;quot;IgnoreEDID&amp;quot; &amp;quot;on&amp;quot; seems to be not working. Also Option &amp;quot;CustomEDID&amp;quot; do not work with fglrx driver.&lt;br /&gt;
&lt;br /&gt;
=== Config Files ===&lt;br /&gt;
By default, the driver uses the Internal AGPGART. Sometimes the internal one doesn&#039;t work, and you will have to use the one provided with the kernel. Search your xorg.conf for the line that has the option &amp;quot;UseInternalAGPGART.&amp;quot; Simply change the &amp;quot;yes&amp;quot; to &amp;quot;no.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
 Option &amp;quot;UseInternalAGPGART&amp;quot; &amp;quot;no&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now simply add the modules to {{Filename|/etc/modules.autoload.d/kernel-2.x}} where x is your kernel version. &lt;br /&gt;
&lt;br /&gt;
Add the following (ORDER IS VERY IMPORTANT);&lt;br /&gt;
{{Box File|/etc/modules.autoload.d/kernel-2.x|&lt;br /&gt;
 agpgart&lt;br /&gt;
 intel-agp # change intel-agp to your chipset. eg: via-agp, nvidia-agp sis-agp.&lt;br /&gt;
 fglrx&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally, run&lt;br /&gt;
&lt;br /&gt;
 modules-update&lt;br /&gt;
&lt;br /&gt;
Then you can reboot and everything should work. If you have are having problems, check dmesg and /var/log/Xorg.0.log for more info.&lt;br /&gt;
&lt;br /&gt;
=== Blank screen or monitor turning off after startx ===&lt;br /&gt;
&lt;br /&gt;
Versions of ati-drivers &amp;gt;= 8.16.20 (and probably &amp;lt;= 8.20.8) have an issue with this that&#039;s easily corrected by inserting:&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
     Option &amp;quot;ForceMonitors&amp;quot; &amp;quot;notv&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
in the device section of xorg.conf (discussed here: http://bugs.gentoo.org/show_bug.cgi?id=103028)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check if you have a non-DDC monitor connected via VGA/HD15 connector. If so change your xorg.conf:&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
 #   Option &amp;quot;DesktopSetup&amp;quot;               &amp;quot;0x00000000&amp;quot;&lt;br /&gt;
     Option &amp;quot;MonitorLayout&amp;quot;              &amp;quot;NONE, CRT&amp;quot;&lt;br /&gt;
     Option &amp;quot;IgnoreEDID&amp;quot;                 &amp;quot;off&amp;quot;&lt;br /&gt;
     Option &amp;quot;HSync2&amp;quot;                     &amp;quot;30-85&amp;quot;&lt;br /&gt;
     Option &amp;quot;VRefresh2&amp;quot;                  &amp;quot;50-160&amp;quot;&lt;br /&gt;
 #   Option &amp;quot;ScreenOverlap&amp;quot;              &amp;quot;0&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
where HSync2 and VRefresh2 are your monitor parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, try changing the MonitorLayout option. The default is &amp;quot;AUTO, AUTO&amp;quot;, which is to say X will attempt to autodetect what kind of monitor you&#039;ve got on the first and second display heads. This can theoretically fail (though I have never observed it). Try changing it around a bit. For example, if you have an LCD and no secondary monitor, change the line to read:&lt;br /&gt;
&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
     Option &amp;quot;MonitorLayout&amp;quot;              &amp;quot;TMDS, NONE&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
if you have a CRT, simply replace &amp;quot;TMDS&amp;quot; with &amp;quot;CRT&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Crashes on startup ===&lt;br /&gt;
&#039;&#039;&#039;If you are unable to use any 3d applications and get this error instead:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
 fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
 fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Then you do not have tmpfs mounted on /dev/shm, which the driver requires.&#039;&#039;&#039; Make yourself sure you have tmpfs support compiled into kernel. It&#039;s under&lt;br /&gt;
&lt;br /&gt;
    File systems --&amp;gt;&lt;br /&gt;
        Pseudo filesystems --&amp;gt;&lt;br /&gt;
            [*] Virtual memory file system support (former shm fs)&lt;br /&gt;
&lt;br /&gt;
To mount this, add to following line to {{filename|/etc/fstab}} (if it isn&#039;t there already):&lt;br /&gt;
&lt;br /&gt;
{{Box File|/etc/fstab|&lt;br /&gt;
 tmpfs     /dev/shm           tmpfs        defaults            0 0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then just do a:&lt;br /&gt;
 mount /dev/shm&lt;br /&gt;
&lt;br /&gt;
If the drivers still crap out on you, or for example you get a black screen on X init, try going into your system BIOS and change graphics-related stuff around. Believe it or not, for me my 9800 gives a black screen on X init if I have the AGP Aperture set at anything other than 128MB. I don&#039;t know what causes this, and I don&#039;t care; I&#039;m just relating to you how I overcame &#039;&#039;my&#039;&#039; problem ;)&lt;br /&gt;
&lt;br /&gt;
Also, &#039;&#039;&#039;whenever you update your compiler&#039;&#039;&#039;, you &#039;&#039;&#039;must&#039;&#039;&#039; recompile your kernel otherwise you won&#039;t be able to insert the fglrx module. Note that recompiling your kernel means you must also unmerge/emerge ati-drivers!&lt;br /&gt;
&lt;br /&gt;
=== Duplicate symbol errors in X log ===&lt;br /&gt;
If you are unable to start X or X fails to load the fglrx driver and you have multiple symbol errors in your Xorg log, chances are that you have compiled X with the &#039;&#039;dlloader&#039;&#039; flag.  This flag can not be used with the fglrx driver.  To fix this problem, remove the dlloader flag by editing your /etc/portage/package.use file as follows:&lt;br /&gt;
{{Box File|/etc/portage/package.use|&lt;br /&gt;
 x11-base/xorg-x11 -dlloader&lt;br /&gt;
}}&lt;br /&gt;
Now re-emerge the &#039;&#039;xorg-x11&#039;&#039; package and reinstall the fglrx driver.&lt;br /&gt;
&lt;br /&gt;
=== Crashes on the exit of X.org / X won&#039;t shutdown ===&lt;br /&gt;
Perform the following if you can get the fglrx drivers working with hardware acceleration, but are suffering from a complete system crash when trying to quit X. You should boot into your system, login, then start on this. You don&#039;t need to boot into X, and shouldn&#039;t need to edit your xorg.conf file (as fglrx is already setup as the driver and working)&lt;br /&gt;
&lt;br /&gt;
You&#039;ve emerged the &amp;quot;stable&amp;quot; version of the ati-drivers, these are out of date -- remove them (emerge --unmerge ati-drivers), to add the most recent you should either add them to the keywords file (/etc/portage/package.keywords) or emerge your local ebuild (emerge /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.22.5.ebuild) if you&#039;re told it requires a dependency, emerge the local e-build for that, then try again. (usually eselect-opengl is required.)&lt;br /&gt;
Once you have the most recent ati-drivers emerged, run (eselect opengl set ati). Now you can (startx) and hopefully quit without any problems. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== glxinfo says &amp;quot;error: failed to open DRM: Operation not permitted&amp;quot;  ===&lt;br /&gt;
If a check with the glxinfo fails for ordinary users though works fine for root it might be related to filepermissions of the device-file.&lt;br /&gt;
Here is how to solve it:&lt;br /&gt;
&lt;br /&gt;
Make sure that the filepermissions on the card-device allows the video-group to read and write. The common group in gentoo with X is &amp;quot;video&amp;quot;. All normal users should be part of this group. Also, the device must have permissions for this group to read and write the card-device.&lt;br /&gt;
&lt;br /&gt;
Check the permissions on the card-device:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:/#ls -lcF /dev/dri/card0&lt;br /&gt;
crw-rw---- 1 root root 226, 0 Oct  5 16:19 /dev/dri/card0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can be changed with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:/dev/dri#chgrp video card0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if user is part of video:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paddlaren:~&amp;gt;id paddlaren&lt;br /&gt;
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),80(cdrw),85(usb),100(users),35(games)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a user to the video-group:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:~#gpasswd -a my_user video&lt;br /&gt;
&lt;br /&gt;
paddlaren:~&amp;gt;id paddlaren&lt;br /&gt;
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),27(video),80(cdrw),85(usb),100(users),35(games)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Logoff and on to ensure that the membership of the group is known to the system.&lt;br /&gt;
&lt;br /&gt;
==Some differences to open source driver &amp;quot;radeon&amp;quot;==&lt;br /&gt;
This information&#039;s was extracted from the file /var/log/Xorg.0.log.&lt;br /&gt;
&lt;br /&gt;
===Detected outputs===&lt;br /&gt;
The naming looks better at &#039;&#039;radeon&#039;&#039;. See example for HD5770 (1xHDMI, 2xDVI, 1x DisplayPort):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;fglrx&#039;&#039;: DFP1 (physical HDMI-0 on radeon?), DFP2 (physical DVI-0 on radeon?), DFP3 (physical DVI-1 on radeon!), DFP4 (physical DisplayPort-0 on radeon?), CRT1, CRT2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;radeon&#039;&#039;: HDMI-0, DVI-0, DVI-1, DisplayPort-0&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[http://ati.cchtml.com/ ATi Unofficial Bugzilla (occasionally monitored by ATi personnel)]&lt;br /&gt;
*Check out user Wedge_&#039;s excellent ATI Radeon [http://odin.prohosting.com/wedge01/gentoo-radeon-faq.html FAQ here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10350</id>
		<title>Ubuntu Quantal Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10350"/>
		<updated>2013-12-15T19:06:15Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: s5GETQ I truly appreciate this blog article. Great.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
yLmxHv Muchos Gracias for your blog article. Awesome.&lt;br /&gt;
&lt;br /&gt;
rv75R9 Thanks so much for the blog post.Much thanks again. Keep writing.&lt;br /&gt;
&lt;br /&gt;
s5GETQ I truly appreciate this blog article. Great.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
NOTE: The VA-API wrapper for XvBA has been dead code for a while now. It will probably give you some acceleration of HD formats, but using the previously mentioned xbmc PPA is a better solution.&lt;br /&gt;
&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for va-api is VLC. You can enable va-api in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
There is possibility to enable &amp;gt; H.264 Level 5.1 decoding in the driver which &amp;quot;has been in the driver for some time but not enabled by default&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 sudo service lightdm stop&lt;br /&gt;
 sudo cp -p  /etc/ati/amdpcsdb  /etc/ati/amdpcsdb.bak&lt;br /&gt;
 sudo sed -i &#039;/UvdEnabled=V1/ a HWUVD_H264Level51Support=V1&#039; /etc/ati/amdpcsdb&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though it&#039;s not clear if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
By using the officially provided drivers, there are two problems ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1068404 #1068404]):&lt;br /&gt;
: An incompatibility problem between intel and fglrx drivers (This gives segmentation fault at X server)&lt;br /&gt;
: Some paths missing for openGL operation of the fglrx driver (This prevents applications that require direct rendering, e.g. Unity/games/etc, from loading correctly)&lt;br /&gt;
&lt;br /&gt;
If you follow the instructions described in the [https://help.ubuntu.com/community/BinaryDriverHowto/ATI#WORKAROUND Binary Driver HOWTO], you should get functional configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is still another bug if you use the integrated GPU (Intel), making the X server crashing ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1088220 #1088220] )&lt;br /&gt;
&lt;br /&gt;
A workaround for now is to use the discrete GPU (ATI)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information you may want to follow this [http://ubuntuforums.org/showthread.php?p=12324761#post12324761 forum topic]&lt;br /&gt;
&lt;br /&gt;
==== Script solution ====&lt;br /&gt;
&lt;br /&gt;
:Script by anion155, http://pastebin.com/1ALmnqx5.&lt;br /&gt;
:It can help you install &amp;amp; uninstall fglrx drivers for this configuration.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it is possible to work around the issue. First check if AMD&#039;s signature file has a proper signature:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/ati/signature&lt;br /&gt;
&lt;br /&gt;
If the file only contains the word &#039;&#039;UNSIGNED&#039;&#039;, replace the line with:&lt;br /&gt;
 9777c589791007f4aeef06c922ad54a2:ae59f5b9572136d99fdd36f0109d358fa643f2bd4a2644d9efbb4fe91a9f6590a145:f612f0b01f2565cd9bd834f8119b309bae11a1ed4a2661c49fdf3fad11986cc4f641f1ba1f2265909a8e34ff1699309bf211a7eb4d7662cd9f8e3faf14986d92f646f1bc&lt;br /&gt;
&lt;br /&gt;
Reboot and see if the watermark is gone. If not, try using a control file from a older version of Catalyst than the one you&#039;re running:&lt;br /&gt;
&lt;br /&gt;
 cd ~/; mkdir catalyst12.10; cd catalyst12.10/&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-12.10-x86.x86_64.run&lt;br /&gt;
 ./amd-driver-installer-catalyst-12.10-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/quantal/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
 &lt;br /&gt;
or specify all the correct parameters. For example:&lt;br /&gt;
 sudo dkms build -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
 sudo dkms install -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10349</id>
		<title>Slackware: ATI SlackBuild (ENG)</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10349"/>
		<updated>2013-12-15T18:13:43Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: BVDVcH I appreciate you sharing this blog. Great.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Per http://wiki.cchtml.com/index.php/Slackware:_ATI_SlackBuild_(ENG) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2KjaBI I really like and appreciate your blog post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
TGnBU6 I loved your article. Keep writing.&lt;br /&gt;
&lt;br /&gt;
BVDVcH I appreciate you sharing this blog. Great.&lt;br /&gt;
&lt;br /&gt;
= How to create Slackware packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
For these drivers will be produced two packages (see [[#What do created packages contain?]]).&lt;br /&gt;
=== Drivers version &amp;lt; 8.37.6 (external SlackBuild) ===&lt;br /&gt;
For these types of drivers I&#039;ve created an &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; for Slackware and I made [http://www.slacky.eu/~spina/fglrx/ati-slack-packager-1.1.9-noarch-1.tgz this package].&lt;br /&gt;
&lt;br /&gt;
To create Slackware packages simply run:&lt;br /&gt;
 #&amp;gt; installpkg ati-slack-packager-1.1.9-noarch-1.tgz&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -- buildpkg custom-package/Slackware&lt;br /&gt;
&lt;br /&gt;
=== Drivers version &amp;gt;= 8.37.6 or new ATI Catalyst (internal SlackBuild) ===&lt;br /&gt;
For these drivers I&#039;ve sent the SlackBuild directly to ATI which inserted it into the installer, then simply run:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/All&lt;br /&gt;
or, if drivers are quite recent, it suffices:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg&lt;br /&gt;
Otherwise, in order to create and install directly the packages you can use (always with recent versions of the driver):&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildandinstallpkg&lt;br /&gt;
&lt;br /&gt;
此处的意思是：如果是新装的系统，直接运行本处的最后一个命令即可同时完成创建包和安装包的过程。&lt;br /&gt;
&lt;br /&gt;
=== What do created packages contain? ===&lt;br /&gt;
The two packages created by SlackBuild, that we&#039;ll call &#039;&#039;fglrx-module&#039;&#039; and &#039;&#039;fglrx-x&#039;&#039; contain, respectively, the kernel module and the X.Org server driver currently installed in the system. In this way, if you upgrade the kernel or the X.Org server, you can create only one package.&lt;br /&gt;
&lt;br /&gt;
==== Creating only fglrx-module package ====&lt;br /&gt;
To create just the package containing the kernel module for the currently installed kernel, simply run the installer with the &#039;&#039;Only_Module&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
So with &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg custom-package/Only_Module&lt;br /&gt;
With &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/Only_Module&lt;br /&gt;
&lt;br /&gt;
==== Creating only fglrx-x package ====&lt;br /&gt;
To create just the package containing the X.Org driver currently installed in your system, simply run installer with &#039;&#039;Only_X&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg custom-package/Only_X&lt;br /&gt;
With &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/Only_X&lt;br /&gt;
&lt;br /&gt;
（如果进行了上一小节的 --buildandinstallpkg则本小节的命令可不必再执行）&lt;br /&gt;
&lt;br /&gt;
接下来，执行&lt;br /&gt;
&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
即可进入ATI配置的界面，完成显卡的简单配置。&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
Since these drivers the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; make only one package, named &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039;, that you can create with:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg&lt;br /&gt;
You can also make and install the package directly with:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --buildandinstallpkg&lt;br /&gt;
&lt;br /&gt;
= Minimal X.Org server configuration =&lt;br /&gt;
Once installed the two indicated packages, you must tell to the X.Org server to use ATI proprietary drivers, to do this we must check if the xorg.conf file, which is usually located in the &#039;&#039;/etc/X11/&#039;&#039; directory, contains the following items:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Load    &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load    &amp;quot;glx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Driver  &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;DRI&amp;quot;&lt;br /&gt;
        Group   0&lt;br /&gt;
        Mode    0666&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
{{Useful Information|Note|The command:&lt;br /&gt;
 #&amp;gt; aticonfig --initial&lt;br /&gt;
can help you. Do &#039;&#039;&#039;aticonfig&#039;&#039;&#039; without options for more infos.}}&lt;br /&gt;
&lt;br /&gt;
= Installation checking =&lt;br /&gt;
To see if proprietary ATI drivers are properly installed run the command:&lt;br /&gt;
 $&amp;gt; fglrxinfo&lt;br /&gt;
On my computer the output is:&lt;br /&gt;
 display::0.0  screen: 0&lt;br /&gt;
 OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
 OpenGL renderer string: ATI Mobility Radeon X1400&lt;br /&gt;
 OpenGL version string: 2.0.6650 (8.39.4)&lt;br /&gt;
&lt;br /&gt;
= Remove installed packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
To remove installed packages you can use the &#039;&#039;&#039;removepkg&#039;&#039;&#039; utility. However, there are aspects that should be considered:&lt;br /&gt;
* The packages&#039; removing don&#039;t delete fglrx&#039;s driver configuration files, these files are located in &#039;&#039;/etc/ati&#039;&#039; directory&lt;br /&gt;
{{Be Careful|Be Careful|The /etc/ati/custom-package directory, if exists, contains the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; and therefore should not be deleted.}}&lt;br /&gt;
* The fglrx-x package contains ATI&#039;s OpenGL libraries, and these libraries are located in the same directory of the Mesa libraries, so when you install the fglrx-x package Mesa OpenGL libraries are overridden. To restore the situation you should simply reinstall the package containing these libraries, like:&lt;br /&gt;
::x11&lt;br /&gt;
:for Slackware 11, or:&lt;br /&gt;
::mesa&lt;br /&gt;
:for Slackware 12.&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
During installation of the package &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039; some libraries that would be overwritten are renamed as FGL.renamed.library_name. Due to remove this package &amp;amp;ldquo;cleanly&amp;amp;rdquo; you should do:&lt;br /&gt;
 #&amp;gt; aticonfig --uninstall&lt;br /&gt;
or, directly with the script:&lt;br /&gt;
 #&amp;gt; /usr/share/ati/amd-uninstall.sh&lt;br /&gt;
or, also with any installer &amp;gt;= 11.3, with:&lt;br /&gt;
 #&amp;gt; ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --uninstall&lt;br /&gt;
Will remain only the directory &#039;&#039;/etc/ati&#039;&#039; with the configuration files.&lt;br /&gt;
&lt;br /&gt;
= Patching the drivers =&lt;br /&gt;
Ati drivers are usually not compatible with brand new version of kernel linux. You often need to patch the driver so that you can create the kernel module successfully. Since Ati Catalyst &amp;gt; 8.11 you can patch Ati drivers within the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; before that same SlackBuild compiles the kernel module.&lt;br /&gt;
&lt;br /&gt;
In order to do that, you just have to create (or download from the Internet) a patch and rename it like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/ati/patch/patch-ATI_DRIVER_VERSION-KERNEL_VERSION&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
ATI_DRIVER_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -i | head -n1 | cut -d&#039;-&#039; -f2&lt;br /&gt;
KERNEL_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; uname -r&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;/etc/ati/patch&#039;&#039; doesn&#039;t exist, it must be made.&lt;br /&gt;
&lt;br /&gt;
For example, if the former command outputs &amp;quot;8.55&amp;quot; and the latter &amp;quot;2.6.27.6&amp;quot;, you need to name the patch &#039;&#039;/etc/ati/patch/patch-8.56-2.6.27.6&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; will find the patch automatically and, if the command &#039;&#039;&#039;patch&#039;&#039;&#039; is installed, it will run:&lt;br /&gt;
 #&amp;gt; patch -p0 &amp;lt; /etc/ati/patch/patch-8.56-2.6.27.6&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
Here some patches and how to use there:&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.3, 10.4 and kernel == 2.6.33.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.3-4_with_2.6.33.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.3&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.712-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-3-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.4, 10.5 and kernel == 2.6.34 ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.4-5_with_2.6.34.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.5&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.732-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.9 and Slackware64 13.1 or current ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.9_with_Slackware64-13.1.diff patch] into &#039;&#039;/tmp&#039;&#039;, so to do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.9_with_Slackware64-13.1.diff /etc/ati/patch/patch-8.771-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-9-x86.x86_64.run --buildpkg&lt;br /&gt;
at one point the installer asks:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
can&#039;t find file to patch at input line 4&lt;br /&gt;
Perhaps you should have used the -p or --strip option?&lt;br /&gt;
The text leading up to this was:&lt;br /&gt;
--------------------------&lt;br /&gt;
|diff -ru ./2.6.x/Makefile ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile&lt;br /&gt;
|--- ./2.6.x/Makefile   2010-09-01 16:05:31.000000000 +0200&lt;br /&gt;
|+++ ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile  2010-09-23 08:47:24.000000000 +0200&lt;br /&gt;
--------------------------&lt;br /&gt;
File to patch:&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
insert:&lt;br /&gt;
 ./2.6.x/Makefile&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 and kernel == 2.6.36.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-11_with_2.6.36.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 e 10.12 e kernel == 2.6.37.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-12_with_2.6.37.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.12&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.801-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-12-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
= Known problems =&lt;br /&gt;
== error: implicit declaration of function &#039;lock_kernel&#039; and error: implicit declaration of function &#039;unlock_kernel&#039; ==&lt;br /&gt;
You need to enable the &#039;&#039;&#039;Big Kernel Lock&#039;&#039;&#039; in your kernel configuration. You find it under the &#039;&#039;&#039;Kernel hacking&#039;&#039;&#039; menu. You can check if this option is enable with:&lt;br /&gt;
 $&amp;gt; zcat /proc/config.gz | grep BKL&lt;br /&gt;
 CONFIG_BKL=y&lt;br /&gt;
&lt;br /&gt;
== FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol &#039;paravirt_ops&#039; ==&lt;br /&gt;
The error occurs during module compilation and It&#039;s due to the fact that the kernel was compiled with the option of paravirtualization active. This option among other things, prevents to load, and then to compile, modules that do not have the GPL license. Since that ATI drivers don&#039;t have this type of license, they aren&#039;t compiled.&lt;br /&gt;
&lt;br /&gt;
To work around this problem you can:&lt;br /&gt;
==== Disable kernel paravirtualization option ====&lt;br /&gt;
The paravirtualization option is called &#039;&#039;&#039;CONFIG_PARAVIRT&#039;&#039;&#039; and generally is in the &#039;&#039;&#039;Processor type and features&#039;&#039;&#039; kernel submenu.&lt;br /&gt;
==== Patch ATI drivers ====&lt;br /&gt;
This operation is illegal because It changes the type of license issued by ATI in a GPL license. I wrote the patch:&lt;br /&gt;
&lt;br /&gt;
[http://www.slacky.eu/~spina/fglrx/patch/ati_to_gpl.patch ati_to_gpl.patch] (md5sum: 4207f41a71035dc2eed3ea9346b881bb)&lt;br /&gt;
&lt;br /&gt;
but I do not take any responsibility, I do not use It and I discourage the use in order to prefer the alternative to disable the paravirtualization kernel option. To use this patch You need to:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;External SlackBuild&#039;&#039;&#039;&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Internal SlackBuild&#039;&#039;&#039; (only with Ati Catalyst &amp;gt; 8.11):&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/patch&#039;&#039; directory (if it doesn&#039;t exist you must create it)&lt;br /&gt;
&lt;br /&gt;
The SlackBuild will find and apply the patch automatically. In order to uninstall it you simply need to delete it. In order to uninstall the patch simply delete It from &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory.&lt;br /&gt;
&lt;br /&gt;
== Using GLX_SGIX_pbuffer FGLTexMgr: open of shared memory object failed (Permission denied) __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!! ==&lt;br /&gt;
This problem is due to the lack of SHM filesystem (now called tmpfs), that is virtual memory filesystem. To work around this problem you must:&lt;br /&gt;
* Add into &#039;&#039;/etc/fstab&#039;&#039; file the following line:&lt;br /&gt;
 shm		/dev/shm		tmpfs		defaults	0	0&lt;br /&gt;
* Then mount the filesystem through:&lt;br /&gt;
 #&amp;gt; mount /dev/shm&lt;br /&gt;
Obviously the kernel must be predisposed for the &amp;quot;mounting&amp;quot; of this filesystem, in particular the kernel option that must be enabled is &#039;&#039;&#039;CONFIG_TMPFS&#039;&#039;&#039; that is generally placed in &#039;&#039;&#039;File system --&amp;gt; Pseudo filesystems&#039;&#039;&#039; submenu. However all the compiled kernel generally have this option enabled.&lt;br /&gt;
&lt;br /&gt;
== kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel ==&lt;br /&gt;
The complete mistake is something like this:&lt;br /&gt;
&lt;br /&gt;
 Error:&lt;br /&gt;
 kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel.&lt;br /&gt;
 they are versioned as &amp;quot;&amp;quot;&lt;br /&gt;
 instead of &amp;quot;`uname -r`&amp;quot;.&lt;br /&gt;
 you might need to adjust your symlinks:&lt;br /&gt;
 - /usr/include&lt;br /&gt;
 - /usr/src/linux&lt;br /&gt;
&lt;br /&gt;
The error, also if explained, could be not clear. In practice It results from the fact that the symbolic link:&lt;br /&gt;
 /lib/modules/`uname -r`/source&lt;br /&gt;
 /lib/modules/`uname -r`/build&lt;br /&gt;
don&#039;t point to the directory where are inserted the current kernel sources (which is generally &#039;&#039;/usr/src/linux- &#039;uname-r&#039;&#039;&#039;). It happens to those who use a kernel contained in Slackware, so I will try to explain It in terms of Slackware &amp;quot;packages&amp;quot;. This can happen:&lt;br /&gt;
* because the kernel source were not installed. In this case should be enough to install the source package which can be found in Slackware k/ directory. However, It is not granted that the problem will be solved, You&#039;ll need to see the second reason why there is an error.&lt;br /&gt;
* because sources (also if installed) do not reflect the settings of the current kernel. The new Slackware 12 has some precompiled kernels (which means different settings), while just a single package for the sources (unless seeing the branch extra/). In particular, the sources are for the SMP kernel and so if you use a non-SMP kernel can appear this error. To avoid this, after making sure that the package source has been installed, do simply the following:&lt;br /&gt;
 #&amp;gt; cd /usr/src/linux&lt;br /&gt;
 #&amp;gt; cp /boot/config .config&lt;br /&gt;
 #&amp;gt; make&lt;br /&gt;
:running make, in addition to compiling the kernel modules (which we will not use), some header files are regenerated, and they will reflect the kernel configuration (as it&#039;s set in the .config file).&lt;br /&gt;
&lt;br /&gt;
== Driver 8.39.4 logo ==&lt;br /&gt;
This &amp;quot;bug&amp;quot; in 8.39.4 drivers results from the fact that ATI developers don&#039;t update the packager maintainers before the official releases. It should be nice first if they did test us official releases in order to certify the proper functioning of the scripts for creating packages. To solve the problem it&#039;s necessary to use the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; as described here.&lt;br /&gt;
&lt;br /&gt;
== amdcccle don&#039;t start on Slackware 12 ==&lt;br /&gt;
Many users of the X.Org 7.2 (or 1.3) server version fail to start properly the Catalyst. The command to run the Catalyst is:&lt;br /&gt;
 #&amp;gt; amdcccle&lt;br /&gt;
For this problem it seems there is no solution yet, but we are working on to solve it.&lt;br /&gt;
&lt;br /&gt;
= Useful links =&lt;br /&gt;
The discussion thread from which it was derived this article:&lt;br /&gt;
http://www.slacky.eu/forum/viewtopic.php?t=18134&amp;amp;highlight=&lt;br /&gt;
&lt;br /&gt;
An alternative to official ATI drivers:&lt;br /&gt;
http://www.x.org/wiki/radeon&lt;br /&gt;
&lt;br /&gt;
A wiki in italian about installing and configuring ATI drivers (open source and proprietary):&lt;br /&gt;
http://www.slacky.eu/wikislack/index.php?title=Installazione_driver_ATI_su_Slackware_GNU/Linux&lt;br /&gt;
&lt;br /&gt;
= Acknowledgement =&lt;br /&gt;
Thank you at Ezio Ghibaudo and Federico Rota who have started this wiki and for help with the SlackBuild. Thanks also at all the [http://www.slacky.eu/ Italian Slackware Community] users for their feedback and support.&lt;br /&gt;
&lt;br /&gt;
[[User:Spina|Spina]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10348</id>
		<title>Ubuntu Precise Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10348"/>
		<updated>2013-12-15T12:16:04Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: tLwEke Thanks-a-mundo for the article. Cool.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
k8EgXE I appreciate you sharing this blog article.Really looking forward to read more. Much obliged.&lt;br /&gt;
&lt;br /&gt;
C74Djm Enjoyed every bit of your blog.Thanks Again. Awesome.&lt;br /&gt;
&lt;br /&gt;
tLwEke Thanks-a-mundo for the article. Cool.&lt;br /&gt;
&lt;br /&gt;
= Alternative Manual Installation =&lt;br /&gt;
WARNING: This method is incompatible with Debian/Ubuntu Filesystem Hierarchy and may cause issues, especially when trying to remove or upgrade Catalyst. It is highly recommended to build .deb pakages. USE AT OWN RISK.&lt;br /&gt;
&lt;br /&gt;
This is another method of manual installation that may work best for laptop users who have a hybrid setup (i.e. Intel HD onboard graphics with an AMD discrete GPU).&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
 ./amd-driver-installer-{{Catalystdashversion}}-x86/x86_64.run&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Install Driver on X.Org&amp;quot; rather than &amp;quot;Generate distribution specific driver package&amp;quot;. Select the &amp;quot;Automatic&amp;quot; install option.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for xvba is VLC. You can enable xvba in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though I don&#039;t know if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
Follow GUI Installation and choose the basic one &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot;. Let the install finish and it will ask you to reboot. Do not REBOOT.&lt;br /&gt;
&lt;br /&gt;
Make a backup of your xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
&lt;br /&gt;
Generate a new config:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
Force use of the new xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --input=/etc/X11/xorg.conf --tls=1&lt;br /&gt;
&lt;br /&gt;
Run the following commands to confim your new settings:&lt;br /&gt;
&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
&lt;br /&gt;
Once all done, Reboot. &lt;br /&gt;
&lt;br /&gt;
Relogin and try the following command to see your Graphics card status:&lt;br /&gt;
&lt;br /&gt;
 sudo lshw -C display&lt;br /&gt;
&lt;br /&gt;
Re-open &amp;quot;Additional Drivers&amp;quot; settings and you will see &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot; status as &amp;quot;This driver is activated and currently in use&amp;quot;. Open &amp;quot;AMD Catalyst Control Center&amp;quot; to see more options. &lt;br /&gt;
&lt;br /&gt;
Tested on my Intel Gen 2/RadeonHD7550 gfx cards on a Samsung NP530U4B-S01AU Laptop. This solved a general overheating and crashing of AMD Catalyst Control Center issues.&lt;br /&gt;
&lt;br /&gt;
Extra: I completely solved overheating issue with Jupiter Applet. (http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html) on the same laptop. More comments on this would be appreciated.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it may be possible to work around the issue by using a control file from a older version of Catalyst than the one you&#039;re running.&lt;br /&gt;
 cd ~/; mkdir catalyst12.4; cd catalyst12.4/&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://www2.ati.com/drivers/linux/amd-driver-installer-&amp;lt;/nowiki&amp;gt;12-4-x86.x86_64.run&lt;br /&gt;
 chmod +x amd-driver-installer-12-4-x86.x86_64.run&lt;br /&gt;
 sh amd-driver-installer-12-4-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/lucid/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10320</id>
		<title>Ubuntu Quantal Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10320"/>
		<updated>2013-11-15T22:08:29Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: rv75R9 Thanks so much for the blog post.Much thanks again. Keep writing.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
yLmxHv Muchos Gracias for your blog article. Awesome.&lt;br /&gt;
&lt;br /&gt;
rv75R9 Thanks so much for the blog post.Much thanks again. Keep writing.&lt;br /&gt;
&lt;br /&gt;
= Installing Proprietary Drivers a.k.a. Catalyst/fglrx =&lt;br /&gt;
&lt;br /&gt;
{| WIDTH=&amp;quot;650&amp;quot; cellpadding=0 cellspacing=0 style=&amp;quot;background-color: red; border: solid 1px #666666; color: #ffffff; text-align: center;&amp;quot; &lt;br /&gt;
| style=&amp;quot;background-color: #666666; border: solid 1px #666666; border-bottom: 1px solid #888;&amp;quot; | &amp;lt;font size=&amp;quot;-1&amp;quot;&amp;gt;&#039;&#039;&#039;ATTENTION RADEON USERS&#039;&#039;&#039;&amp;lt;/font&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;br /&amp;gt;*PLEASE READ FIRST!&lt;br /&gt;
&#039;&#039;&#039;Which Radeon cards are no longer supported by ATI&#039;s Catalyst?&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ATI Radeon 9500-9800, Xpress200-1250, 690G, 740G, X300-X2500, Mobility RadeonHD 2300&#039;&#039;&#039;&lt;br /&gt;
If your card is on that list, you are limited to open-source drivers on Ubuntu Lucid/10.04 (and later). If you really need the proprietary Catalyst/fglrx driver, you will have to use an older Linux distribution, such as Debian Lenny/5.0.x or Ubuntu Hardy/8.04.x.&lt;br /&gt;
NOTE: If you enter your card information on AMD/ATI&#039;s driver page, it will offer you the Catalyst 9-3 driver to download. However, the Catalyst 9-3 driver doesn&#039;t support X servers past 1.5, and it will not work with Precise (or anything later than Lucid/10,04)! !!!SO BE CAREFUL!!! If you tried to install Catalyst on a system with one of these cards, see the &#039;Removing the Driver&#039; section to restore the default/pre-installed drivers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ATI RadeonHD 2x00 - 4xx0 cards&#039;&#039;&#039;&lt;br /&gt;
If you have one of these cards, you do have the option of using the Catalyst Legacy driver, but only if you downgrade your Xserver version (the Catalyst Legacy driver does not support the kernel version (3.5) or the Xserver version (1.13) that Ubuntu Quantal/12.10 uses).&lt;br /&gt;
This can be done really easily by following the instructions given at [[https://launchpad.net/~makson96/+archive/fglrx]]. This PPA downgrades the Xserver and install a patched version of fglrx that supports kernel version 3.5 of Ubuntu Quantal.&lt;br /&gt;
&lt;br /&gt;
== Using Ubuntu-supplied fglrx/Catalyst ==&lt;br /&gt;
&lt;br /&gt;
On Ubuntu Quantal, this will install fglrx/Catalyst 9.000, which is roughly equivalent to Catalyst 12-9. NOTE: You must have the restricted repository enabled in Applications -&amp;gt; Software Sources... for this to work. After you complete the install, skip to [[Ubuntu_Quantal_Installation_Guide#Generate_a_new_.2Fetc.2FX11.2Fxorg.conf_file|Generate a new /etc/X11/xorg.conf file]].&lt;br /&gt;
&lt;br /&gt;
=== Command line ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install linux-source fglrx fglrx-amdcccle&lt;br /&gt;
&lt;br /&gt;
=== GUI ===&lt;br /&gt;
&lt;br /&gt;
Jockey was removed in 12.10. You now need to go to Software Sources and go to the Additional Hardware tab. You will need to install linux-headers-generic beforehand, or the Panel won&#039;t show up after the restart.&lt;br /&gt;
&lt;br /&gt;
== Installing Catalyst Manually (from AMD/ATI&#039;s site) ==&lt;br /&gt;
&lt;br /&gt;
I recommend copying and pasting the commands to ensure there are no typing mistakes and speed up the install process. Remember to use Ctrl &#039;&#039;&#039;+ Shift&#039;&#039;&#039; + V or Shift + Insert to paste into the terminal (or go to the terminals menu, select edit and click paste).&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Before you start&#039;&#039;===&lt;br /&gt;
If you have previously attempted installing Catalyst, remove any leftover files by following the [[#Removing_Catalyst.2Ffglrx| Removing the Driver]] section. Make sure &#039;&#039;universe&#039;&#039; and &#039;&#039;multiverse&#039;&#039; are enabled in your repository sources (System -&amp;gt; Administration -&amp;gt; Software Sources).&lt;br /&gt;
or Applications-&amp;gt;Ubuntu Software Center-&amp;gt;Edit-&amp;gt;Software sources-&amp;gt;Other software: check canonical partners.&lt;br /&gt;
&lt;br /&gt;
Install the prerequisite packages:&lt;br /&gt;
 sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases linux-headers-generic fakeroot&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If you are using the x86_64 architecture (64 bit)&#039;&#039;:&lt;br /&gt;
 sudo apt-get install lib32gcc1&lt;br /&gt;
&lt;br /&gt;
Create a directory for the build environment and move to that directory&lt;br /&gt;
 mkdir catalyst13.4 &amp;amp;&amp;amp; cd catalyst13.4&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Download the latest Catalyst package.&#039;&#039;===&lt;br /&gt;
This package contains both the 32-bit and 64-bit driver.&lt;br /&gt;
&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-13-4-linux-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Create and install .deb packages.&#039;&#039; ===&lt;br /&gt;
 sudo ./amd-driver-installer-catalyst-13-4-linux-x86.x86_64.run --buildpkg Ubuntu/quantal&lt;br /&gt;
 sudo dpkg -i fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;In case of failure:&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Remember these steps before you reboot your computer.&lt;br /&gt;
&lt;br /&gt;
If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.&lt;br /&gt;
&lt;br /&gt;
 sudo start lightdm&lt;br /&gt;
&lt;br /&gt;
If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of &amp;quot;Could not stat /usr/lib64/fglrx/switchlibGL&amp;quot; which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/. &lt;br /&gt;
&lt;br /&gt;
If all else fails, revert your xorg.conf and reboot.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
This should return your original display.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Generate a new /etc/X11/xorg.conf file&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file.  It is entirely dependent on your configuration.  The following subsections will attempt to address possible (and tested) variations for their respective configurations.&lt;br /&gt;
&lt;br /&gt;
=== Generic Config ===&lt;br /&gt;
This will work for most people:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
=== Minimal Config ===&lt;br /&gt;
A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that&#039;s not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;ATI radeon 6870&amp;quot;&lt;br /&gt;
  Driver &amp;quot;fglrx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
=== X2/Dual GPU Cards ===&lt;br /&gt;
If you have an X2 card (e.g. 5970), use... &#039;&#039;&#039;!!Do not use for two separate cards in crossfire!!&#039;&#039;&#039;&lt;br /&gt;
 sudo amdconfig --initial -f --adapter&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;all&lt;br /&gt;
&lt;br /&gt;
=== Dual/Multi Monitors ===&lt;br /&gt;
If you have a dual monitor display (also known as &amp;quot;Big Desktop&amp;quot;), use:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
 sudo amdconfig --set-pcs-str&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;DDX,EnableRandR12,FALSE&amp;quot;&lt;br /&gt;
This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Force use of the new xorg.conf (if necessary)&#039;&#039;==&lt;br /&gt;
Some people find that changes to xorg.conf don&#039;t get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig &amp;lt;nowiki&amp;gt;--input=/etc/X11/xorg.conf --tls=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Test your installation&#039;&#039;==&lt;br /&gt;
NOTE: if you don&#039;t reboot first, fglrxinfo gives an error message.&lt;br /&gt;
Reboot the computer and type&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
display: :0.0  screen: 0&lt;br /&gt;
OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)&lt;br /&gt;
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and &lt;br /&gt;
Catalyst version you are using.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, try:&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
If you experience issues or a hang, you may need to disable fast TLS.&lt;br /&gt;
 sudo amdconfig --tls=0&lt;br /&gt;
&lt;br /&gt;
== Installing Catalyst Manually (from AMD/ATI&#039;s site) BETA/EXPERIMENTAL ==&lt;br /&gt;
&lt;br /&gt;
I recommend copying and pasting the commands to ensure there are no typing mistakes and speed up the install process. Remember to use Ctrl &#039;&#039;&#039;+ Shift&#039;&#039;&#039; + V or Shift + Insert to paste into the terminal (or go to the terminals menu, select edit and click paste).&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Before you start&#039;&#039;===&lt;br /&gt;
If you have previously attempted installing Catalyst, remove any leftover files by following the [[#Removing_Catalyst.2Ffglrx| Removing the Driver]] section. Make sure &#039;&#039;universe&#039;&#039; and &#039;&#039;multiverse&#039;&#039; are enabled in your repository sources (System -&amp;gt; Administration -&amp;gt; Software Sources).&lt;br /&gt;
or Applications-&amp;gt;Ubuntu Software Center-&amp;gt;Edit-&amp;gt;Software sources-&amp;gt;Other software: check canonical partners.&lt;br /&gt;
&lt;br /&gt;
Install the prerequisite packages:&lt;br /&gt;
 sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases linux-headers-generic fakeroot&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If you are using the x86_64 architecture (64 bit)&#039;&#039;:&lt;br /&gt;
 sudo apt-get install lib32gcc1&lt;br /&gt;
&lt;br /&gt;
Create a directory for the build environment and move to that directory&lt;br /&gt;
 mkdir catalyst13.3beta3 &amp;amp;&amp;amp; cd catalyst13.3beta3&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Download the latest Catalyst package.&#039;&#039;===&lt;br /&gt;
This package contains both the 32-bit and 64-bit driver.&lt;br /&gt;
&lt;br /&gt;
 wget http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Create and install .deb packages.&#039;&#039; ===&lt;br /&gt;
 sudo sh ./amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.run --buildpkg Ubuntu/quantal&lt;br /&gt;
 sudo dpkg -i fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
If building .deb packages fails, there is also an [http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide#Alternative_Manual_Installation Alternative Manual Installation]&lt;br /&gt;
&lt;br /&gt;
When running the dpkg line, you may receive an error like:&lt;br /&gt;
 Errors were encountered while processing:&lt;br /&gt;
   fglrx&lt;br /&gt;
   fglrx-amdcccle&lt;br /&gt;
   fglrx-dev&lt;br /&gt;
&lt;br /&gt;
They may have attempted to install out of order.  Install them individually as:&lt;br /&gt;
&lt;br /&gt;
  sudo dpkg -i fglrx_*.deb&lt;br /&gt;
  sudo dpkg -i fglrx-amdcccle*.deb &lt;br /&gt;
  sudo dpkg -i fglrx-dev*.deb&lt;br /&gt;
&lt;br /&gt;
You should see a successful result similar to:&lt;br /&gt;
&lt;br /&gt;
 user@user-ubuntu:~# sudo dpkg -i fglrx_9.010-0ubuntu1_amd64.deb &lt;br /&gt;
 (Reading database ... 168748 files and directories currently installed.)&lt;br /&gt;
 Preparing to replace fglrx 2:9.010-0ubuntu1 (using fglrx_9.010-0ubuntu1_amd64.deb) ...&lt;br /&gt;
 Removing all DKMS Modules&lt;br /&gt;
 Error! There are no instances of module: fglrx&lt;br /&gt;
 9.010 located in the DKMS tree.&lt;br /&gt;
 Done.&lt;br /&gt;
 Unpacking replacement fglrx ...&lt;br /&gt;
 Setting up fglrx (2:9.010-0ubuntu1) ...&lt;br /&gt;
 update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode&lt;br /&gt;
 update-alternatives: using /usr/lib/fglrx/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode&lt;br /&gt;
 update-initramfs: deferring update (trigger activated)&lt;br /&gt;
 Loading new fglrx-9.010 DKMS files...&lt;br /&gt;
 First Installation: checking all kernels...&lt;br /&gt;
 Building only for 3.5.0-17-generic&lt;br /&gt;
 Building for architecture x86_64&lt;br /&gt;
 Module build for the currently running kernel was skipped since the&lt;br /&gt;
 kernel source for this kernel does not seem to be installed.&lt;br /&gt;
 update-initramfs: deferring update (trigger activated)&lt;br /&gt;
 Processing triggers for ureadahead ...&lt;br /&gt;
 Processing triggers for bamfdaemon ...&lt;br /&gt;
 Rebuilding /usr/share/applications/bamf.index...&lt;br /&gt;
 Processing triggers for initramfs-tools ...&lt;br /&gt;
 update-initramfs: Generating /boot/initrd.img-3.5.0-17-generic&lt;br /&gt;
 Processing triggers for libc-bin ...&lt;br /&gt;
 ldconfig deferred processing now taking place&lt;br /&gt;
&lt;br /&gt;
 user@user-ubuntu:~# sudo dpkg -i fglrx-amdcccle_9.010-0ubuntu1_amd64.deb &lt;br /&gt;
 (Reading database ... 168748 files and directories currently installed.)&lt;br /&gt;
 Preparing to replace fglrx-amdcccle 2:9.010-0ubuntu1 (using fglrx-amdcccle_9.010-0ubuntu1_amd64.deb)  ...&lt;br /&gt;
 Unpacking replacement fglrx-amdcccle ...&lt;br /&gt;
 Setting up fglrx-amdcccle (2:9.010-0ubuntu1) ...&lt;br /&gt;
&lt;br /&gt;
 user@user-ubuntu:~# sudo dpkg -i fglrx-dev_9.010-0ubuntu1_amd64.deb &lt;br /&gt;
 (Reading database ... 168748 files and directories currently installed.)&lt;br /&gt;
 Preparing to replace fglrx-dev 2:9.010-0ubuntu1 (using fglrx-dev_9.010-0ubuntu1_amd64.deb) ...&lt;br /&gt;
 Unpacking replacement fglrx-dev ...&lt;br /&gt;
 Setting up fglrx-dev (2:9.010-0ubuntu1) ...&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;In case of failure:&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Remember these steps before you reboot your computer.&lt;br /&gt;
&lt;br /&gt;
If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.&lt;br /&gt;
&lt;br /&gt;
 sudo startx&lt;br /&gt;
&lt;br /&gt;
If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of &amp;quot;Could not stat /usr/lib64/fglrx/switchlibGL&amp;quot; which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/. &lt;br /&gt;
&lt;br /&gt;
If all else fails, revert your xorg.conf and reboot.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
This should return your original display.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Generate a new /etc/X11/xorg.conf file&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file.  It is entirely dependent on your configuration.  The following subsections will attempt to address possible (and tested) variations for their respective configurations.&lt;br /&gt;
&lt;br /&gt;
=== Generic Config ===&lt;br /&gt;
This will work for most people:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
=== Minimal Config ===&lt;br /&gt;
A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that&#039;s not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;ATI radeon 6870&amp;quot;&lt;br /&gt;
  Driver &amp;quot;fglrx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
=== X2/Dual GPU Cards ===&lt;br /&gt;
If you have an X2 card (e.g. 5970), use... &#039;&#039;&#039;!!Do not use for two separate cards in crossfire!!&#039;&#039;&#039;&lt;br /&gt;
 sudo amdconfig --initial -f --adapter&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;all&lt;br /&gt;
&lt;br /&gt;
=== Dual/Multi Monitors ===&lt;br /&gt;
If you have a dual monitor display (also known as &amp;quot;Big Desktop&amp;quot;), use:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
 sudo amdconfig --set-pcs-str&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;DDX,EnableRandR12,FALSE&amp;quot;&lt;br /&gt;
This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Force use of the new xorg.conf (if necessary)&#039;&#039;==&lt;br /&gt;
Some people find that changes to xorg.conf don&#039;t get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig &amp;lt;nowiki&amp;gt;--input=/etc/X11/xorg.conf --tls=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Test your installation&#039;&#039;==&lt;br /&gt;
NOTE: if you don&#039;t reboot first, fglrxinfo gives an error message.&lt;br /&gt;
Reboot the computer and type&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
display: :0.0  screen: 0&lt;br /&gt;
OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)&lt;br /&gt;
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and &lt;br /&gt;
Catalyst version you are using.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, try:&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
If you experience issues or a hang, you may need to disable fast TLS.&lt;br /&gt;
 sudo amdconfig --tls=0&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Just in case&#039;&#039;===&lt;br /&gt;
Write down or remember this series of Alt+PrntScr key combinations, just in case your screen should go black and Ctrl+Alt+F1 and Ctrl+Alt+Backspace doesn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
Alt+PrntScr+r, Alt+PrntScr+s, Alt+PrntScr+e, Alt+PrntScr+i, Alt+PrntScr+n, Alt+PrntScr+u, Alt+PrntScr+b&lt;br /&gt;
&lt;br /&gt;
These key-presses will reboot the system safely. To remember the key-presses, remember this nonsensical phrase: &amp;quot;Raising Skinny Elephants Is Never Utterly Boring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An alternative would be to hold down Ctrl+Alt+SysRq (SysRq is usually the same key as PrintScreen) and type very slowly R E I S U B. A way to remember this is by inverting the word: &amp;quot;BUSIER&amp;quot; or remembering a phrase: &amp;quot;Restart Even If System Utterly Broken&amp;quot;. This would also safely shutdown the system.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
NOTE: The VA-API wrapper for XvBA has been dead code for a while now. It will probably give you some acceleration of HD formats, but using the previously mentioned xbmc PPA is a better solution.&lt;br /&gt;
&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for va-api is VLC. You can enable va-api in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
There is possibility to enable &amp;gt; H.264 Level 5.1 decoding in the driver which &amp;quot;has been in the driver for some time but not enabled by default&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 sudo service lightdm stop&lt;br /&gt;
 sudo cp -p  /etc/ati/amdpcsdb  /etc/ati/amdpcsdb.bak&lt;br /&gt;
 sudo sed -i &#039;/UvdEnabled=V1/ a HWUVD_H264Level51Support=V1&#039; /etc/ati/amdpcsdb&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though it&#039;s not clear if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
By using the officially provided drivers, there are two problems ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1068404 #1068404]):&lt;br /&gt;
: An incompatibility problem between intel and fglrx drivers (This gives segmentation fault at X server)&lt;br /&gt;
: Some paths missing for openGL operation of the fglrx driver (This prevents applications that require direct rendering, e.g. Unity/games/etc, from loading correctly)&lt;br /&gt;
&lt;br /&gt;
If you follow the instructions described in the [https://help.ubuntu.com/community/BinaryDriverHowto/ATI#WORKAROUND Binary Driver HOWTO], you should get functional configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is still another bug if you use the integrated GPU (Intel), making the X server crashing ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1088220 #1088220] )&lt;br /&gt;
&lt;br /&gt;
A workaround for now is to use the discrete GPU (ATI)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information you may want to follow this [http://ubuntuforums.org/showthread.php?p=12324761#post12324761 forum topic]&lt;br /&gt;
&lt;br /&gt;
==== Script solution ====&lt;br /&gt;
&lt;br /&gt;
:Script by anion155, http://pastebin.com/1ALmnqx5.&lt;br /&gt;
:It can help you install &amp;amp; uninstall fglrx drivers for this configuration.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it is possible to work around the issue. First check if AMD&#039;s signature file has a proper signature:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/ati/signature&lt;br /&gt;
&lt;br /&gt;
If the file only contains the word &#039;&#039;UNSIGNED&#039;&#039;, replace the line with:&lt;br /&gt;
 9777c589791007f4aeef06c922ad54a2:ae59f5b9572136d99fdd36f0109d358fa643f2bd4a2644d9efbb4fe91a9f6590a145:f612f0b01f2565cd9bd834f8119b309bae11a1ed4a2661c49fdf3fad11986cc4f641f1ba1f2265909a8e34ff1699309bf211a7eb4d7662cd9f8e3faf14986d92f646f1bc&lt;br /&gt;
&lt;br /&gt;
Reboot and see if the watermark is gone. If not, try using a control file from a older version of Catalyst than the one you&#039;re running:&lt;br /&gt;
&lt;br /&gt;
 cd ~/; mkdir catalyst12.10; cd catalyst12.10/&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-12.10-x86.x86_64.run&lt;br /&gt;
 ./amd-driver-installer-catalyst-12.10-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/quantal/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
 &lt;br /&gt;
or specify all the correct parameters. For example:&lt;br /&gt;
 sudo dkms build -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
 sudo dkms install -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10319</id>
		<title>Ubuntu Precise Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10319"/>
		<updated>2013-11-15T18:24:26Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: C74Djm Enjoyed every bit of your blog.Thanks Again. Awesome.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
k8EgXE I appreciate you sharing this blog article.Really looking forward to read more. Much obliged.&lt;br /&gt;
&lt;br /&gt;
C74Djm Enjoyed every bit of your blog.Thanks Again. Awesome.&lt;br /&gt;
&lt;br /&gt;
= Installing Proprietary Drivers a.k.a. Catalyst/fglrx =&lt;br /&gt;
*PLEASE READ FIRST!&lt;br /&gt;
&#039;&#039;&#039;Which cards are no longer supported by ATI?&#039;&#039;&#039;&lt;br /&gt;
The ATI Radeon 9500-9800, Xpress200-1250, 690G, 740G, X300-X2500 (including Mobility RadeonHD 2300, since it is really a DirectX 9 part).  See the complete list [[9.4|here.]]&lt;br /&gt;
If your card is on that list, you are limited to open-source drivers on Ubuntu Lucid/10.04 (and later). If you really need the proprietary Catalyst/fglrx driver, you will have to use an older Linux distribution, such as Debian Lenny/5.0.x or Ubuntu Hardy/8.04.x.&lt;br /&gt;
{| WIDTH=&amp;quot;650&amp;quot; cellpadding=0 cellspacing=0 style=&amp;quot;background-color: red; border: solid 1px #666666; color: #ffffff; text-align: center;&amp;quot; &lt;br /&gt;
| style=&amp;quot;background-color: #666666; border: solid 1px #666666; border-bottom: 1px solid #888;&amp;quot; | &amp;lt;font size=&amp;quot;-1&amp;quot;&amp;gt;&#039;&#039;&#039;ATTENTION RADEON USERS&#039;&#039;&#039;&amp;lt;/font&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;br /&amp;gt;NOTE: If you enter your card information on AMD/ATI&#039;s driver page, it will offer you the Catalyst 9-3 driver to download. However, the Catalyst 9-3 driver doesn&#039;t support X servers past 1.5, and it will not work with Precise (or anything later than Lucid/10,04)! !!!SO BE CAREFUL!!! If you tried to install Catalyst on a system with one of these cards, see the &#039;Removing the Driver&#039; section to restore the default/pre-installed drivers.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| WIDTH=&amp;quot;650&amp;quot; cellpadding=0 cellspacing=0 style=&amp;quot;background-color: red; border: solid 1px #666666; color: #ffffff; text-align: center;&amp;quot; &lt;br /&gt;
| style=&amp;quot;background-color: #666666; border: solid 1px #666666; border-bottom: 1px solid #888;&amp;quot; | &amp;lt;font size=&amp;quot;-1&amp;quot;&amp;gt;&#039;&#039;&#039;ATTENTION RADEONHD 2x00-4xx0 series USERS&#039;&#039;&#039;&amp;lt;/font&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;br /&amp;gt;NOTE: The last Catalyst release to support your card is the 12-6 Legacy release:&lt;br /&gt;
|  wget http://www2.ati.com/drivers/legacy/12-6/amd-driver-installer-12.6-legacy-x86.x86_64.zip.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Using Ubuntu-supplied fglrx/Catalyst ==&lt;br /&gt;
&lt;br /&gt;
This may not give you the latest drivers, but should be safest. On Ubuntu Precise, this will install Catalyst 8.960, which is roughly equivalent to Catalyst 12-4. NOTE: You must have the restricted repository enabled in Applications -&amp;gt; Ubuntu Software Center -&amp;gt; Edit -&amp;gt; Software Sources... for this to work. After you complete the install, skip to [[Ubuntu_Precise_Installation_Guide#Generate_a_new_.2Fetc.2FX11.2Fxorg.conf_file|Generate a new /etc/X11/xorg.conf file]].&lt;br /&gt;
&lt;br /&gt;
=== Command line ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install fglrx fglrx-amdcccle&lt;br /&gt;
&lt;br /&gt;
=== GUI ===&lt;br /&gt;
&lt;br /&gt;
You must have jockey-common and jockey-gtk (or jockey-kde for Kubuntu) packages installed. For the default Ubuntu desktop (Unity), go to the dashboard home and search for &amp;quot;Additional Drivers&amp;quot; in the applications search field (or double-click the &amp;quot;available driver&amp;quot; notification icon) and activate the &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Installing Catalyst Manually (from AMD/ATI&#039;s site) ==&lt;br /&gt;
&lt;br /&gt;
I recommend copying and pasting the commands to ensure there are no typing mistakes and speed up the install process. Remember to use Ctrl &#039;&#039;&#039;+ Shift&#039;&#039;&#039; + V or Shift + Insert to paste into the terminal (or go to the terminals menu, select edit and click paste).&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Before you start&#039;&#039;===&lt;br /&gt;
If you have previously attempted installing Catalyst, remove any leftover files by following the [[#Removing_Catalyst.2Ffglrx| Removing the Driver]] section. Make sure &#039;&#039;universe&#039;&#039; and &#039;&#039;multiverse&#039;&#039; are enabled in your repository sources (System -&amp;gt; Administration -&amp;gt; Software Sources).&lt;br /&gt;
or Applications-&amp;gt;Ubuntu Software Center-&amp;gt;Edit-&amp;gt;Software sources-&amp;gt;Other software: check canonical partners.&lt;br /&gt;
&lt;br /&gt;
Install the prerequisite packages:&lt;br /&gt;
 sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot libqtgui4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If you are using the x86_64 architecture (64 bit)&#039;&#039;:&lt;br /&gt;
 sudo apt-get install lib32gcc1 &lt;br /&gt;
&lt;br /&gt;
If your &#039;&#039;/etc/modprobe.d/blacklist-local.conf&#039;&#039; contains &#039;&#039;blacklist fglrx&#039;&#039; make sure you comment out this line by adding a &#039;&#039;#&#039;&#039; in front of it.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Download the latest Catalyst package.&#039;&#039;===&lt;br /&gt;
This package contains both the 32-bit and 64-bit driver.&lt;br /&gt;
&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-catalyst-13.9-linux-x86.x86_64.zip&lt;br /&gt;
 unzip amd-catalyst-13.9-linux-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-catalyst-13.9-linux-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Create and install .deb packages.&#039;&#039; ===&lt;br /&gt;
 sudo sh ./amd-catalyst-13.9-linux-x86.x86_64.run  --buildpkg Ubuntu/precise&lt;br /&gt;
 sudo dpkg -i fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
If building .deb packages fails, there is also an [http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide#Alternative_Manual_Installation Alternative Manual Installation]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;In case of failure:&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Remember these steps before you reboot your computer.&lt;br /&gt;
&lt;br /&gt;
If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.&lt;br /&gt;
&lt;br /&gt;
 sudo startx&lt;br /&gt;
&lt;br /&gt;
If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of &amp;quot;Could not stat /usr/lib64/fglrx/switchlibGL&amp;quot; which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/. &lt;br /&gt;
&lt;br /&gt;
If all else fails, revert your xorg.conf and reboot.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf.original-0 /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
This should return your original display.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Generate a new /etc/X11/xorg.conf file&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file.  It is entirely dependent on your configuration.  The following subsections will attempt to address possible (and tested) variations for their respective configurations.&lt;br /&gt;
&lt;br /&gt;
=== Generic Config ===&lt;br /&gt;
This will work for most people:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
=== Minimal Config ===&lt;br /&gt;
A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that&#039;s not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;ATI radeon 6870&amp;quot;&lt;br /&gt;
  Driver &amp;quot;fglrx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
=== X2/Dual GPU Cards ===&lt;br /&gt;
If you have an X2 card (e.g. 4870X2 or 5970), use... &#039;&#039;&#039;!!Do not use for two separate cards in crossfire!!&#039;&#039;&#039;&lt;br /&gt;
 sudo amdconfig --initial -f --adapter&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;all&lt;br /&gt;
&lt;br /&gt;
=== Dual/Multi Monitors ===&lt;br /&gt;
If you have a dual monitor display (also known as &amp;quot;Big Desktop&amp;quot;), use:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
 sudo amdconfig --set-pcs-str&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;DDX,EnableRandR12,FALSE&amp;quot;&lt;br /&gt;
This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Force use of the new xorg.conf (if necessary)&#039;&#039;==&lt;br /&gt;
Some people find that changes to xorg.conf don&#039;t get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig &amp;lt;nowiki&amp;gt;--input=/etc/X11/xorg.conf --tls=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Test your installation&#039;&#039;==&lt;br /&gt;
&#039;&#039;&#039;NOTE: if you don&#039;t reboot first, fglrxinfo gives an error message.&#039;&#039;&#039;&lt;br /&gt;
Reboot the computer and type&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
display: :0.0  screen: 0&lt;br /&gt;
OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)&lt;br /&gt;
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and &lt;br /&gt;
Catalyst version you are using.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, try:&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
If you experience issues or a hang, you may need to disable fast TLS.&lt;br /&gt;
 sudo amdconfig --tls=0&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Just in case&#039;&#039;===&lt;br /&gt;
Write down or remember this series of Alt+PrntScr key combinations, just in case your screen should go black and Ctrl+Alt+F1 and Ctrl+Alt+Backspace doesn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
Alt+PrntScr+r, Alt+PrntScr+s, Alt+PrntScr+e, Alt+PrntScr+i, Alt+PrntScr+n, Alt+PrntScr+u, Alt+PrntScr+b&lt;br /&gt;
&lt;br /&gt;
These key-presses will reboot the system safely. To remember the key-presses, remember this nonsensical phrase: &amp;quot;Raising Skinny Elephants Is Never Utterly Boring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An alternative would be to hold down Ctrl+Alt+SysRq (SysRq is usually the same key as PrintScreen) and type very slowly R E I S U B. A way to remember this is by inverting the word: &amp;quot;BUSIER&amp;quot; or remembering a phrase: &amp;quot;Restart Even If System Utterly Broken&amp;quot;. This would also safely shutdown the system.&lt;br /&gt;
&lt;br /&gt;
= Alternative Manual Installation =&lt;br /&gt;
WARNING: This method is incompatible with Debian/Ubuntu Filesystem Hierarchy and may cause issues, especially when trying to remove or upgrade Catalyst. It is highly recommended to build .deb pakages. USE AT OWN RISK.&lt;br /&gt;
&lt;br /&gt;
This is another method of manual installation that may work best for laptop users who have a hybrid setup (i.e. Intel HD onboard graphics with an AMD discrete GPU).&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
 ./amd-driver-installer-{{Catalystdashversion}}-x86/x86_64.run&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Install Driver on X.Org&amp;quot; rather than &amp;quot;Generate distribution specific driver package&amp;quot;. Select the &amp;quot;Automatic&amp;quot; install option.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for xvba is VLC. You can enable xvba in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though I don&#039;t know if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
Follow GUI Installation and choose the basic one &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot;. Let the install finish and it will ask you to reboot. Do not REBOOT.&lt;br /&gt;
&lt;br /&gt;
Make a backup of your xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
&lt;br /&gt;
Generate a new config:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
Force use of the new xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --input=/etc/X11/xorg.conf --tls=1&lt;br /&gt;
&lt;br /&gt;
Run the following commands to confim your new settings:&lt;br /&gt;
&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
&lt;br /&gt;
Once all done, Reboot. &lt;br /&gt;
&lt;br /&gt;
Relogin and try the following command to see your Graphics card status:&lt;br /&gt;
&lt;br /&gt;
 sudo lshw -C display&lt;br /&gt;
&lt;br /&gt;
Re-open &amp;quot;Additional Drivers&amp;quot; settings and you will see &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot; status as &amp;quot;This driver is activated and currently in use&amp;quot;. Open &amp;quot;AMD Catalyst Control Center&amp;quot; to see more options. &lt;br /&gt;
&lt;br /&gt;
Tested on my Intel Gen 2/RadeonHD7550 gfx cards on a Samsung NP530U4B-S01AU Laptop. This solved a general overheating and crashing of AMD Catalyst Control Center issues.&lt;br /&gt;
&lt;br /&gt;
Extra: I completely solved overheating issue with Jupiter Applet. (http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html) on the same laptop. More comments on this would be appreciated.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it may be possible to work around the issue by using a control file from a older version of Catalyst than the one you&#039;re running.&lt;br /&gt;
 cd ~/; mkdir catalyst12.4; cd catalyst12.4/&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://www2.ati.com/drivers/linux/amd-driver-installer-&amp;lt;/nowiki&amp;gt;12-4-x86.x86_64.run&lt;br /&gt;
 chmod +x amd-driver-installer-12-4-x86.x86_64.run&lt;br /&gt;
 sh amd-driver-installer-12-4-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/lucid/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10318</id>
		<title>Gentoo Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10318"/>
		<updated>2013-11-15T17:59:35Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: HZcKQK Thank you ever so for you post.Thanks Again. Much obliged.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Orginally found on the [http://gentoo-wiki.com/HOWTO_ATI_Drivers Gentoo Wiki], the GNU Free Documentation license allows me to copy/paste it here.&lt;br /&gt;
&lt;br /&gt;
IxV6Yf Im thankful for the blog post.Much thanks again. Great.&lt;br /&gt;
&lt;br /&gt;
HZcKQK Thank you ever so for you post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
== Grabbing a Driver Set ==&lt;br /&gt;
===Preparation===&lt;br /&gt;
Note: All next commands at a shell must execute as root!&lt;br /&gt;
&lt;br /&gt;
For installation it will be easier to drop out of X to a command prompt. Do this using whatever command your Window Manager uses. &lt;br /&gt;
I use fluxbox so it&#039;s just rightclick -&amp;gt; fluxbox menu -&amp;gt; exit. For KDE or GNOME it&#039;s probably just a matter of logging out. When all else fails, hit CTL+ALT+BACKSPACE to kill the X server ungracefully. &lt;br /&gt;
&lt;br /&gt;
If the X server only reboots or for some reason you&#039;ve disabled this hotkey bring the system run level down with:&lt;br /&gt;
 init 3&lt;br /&gt;
&lt;br /&gt;
There is also the possibility to stop the xdm service:&lt;br /&gt;
 /etc/init.d/xdm stop&lt;br /&gt;
&lt;br /&gt;
To prevent start at next reboot prevent the run script from execution with:&lt;br /&gt;
 rc-update del xdm&lt;br /&gt;
&lt;br /&gt;
If you have not already done it recently, start by synchronizing your portage tree:&lt;br /&gt;
&lt;br /&gt;
 emerge --sync&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
Now let&#039;s install the drivers. Note: ati-drivers-extra is not available anymore.&lt;br /&gt;
&lt;br /&gt;
 emerge -av ati-drivers&lt;br /&gt;
&lt;br /&gt;
The next step is switch to the ATi OpenGL subsytem:&lt;br /&gt;
&lt;br /&gt;
 eselect opengl set ati&lt;br /&gt;
&lt;br /&gt;
===Configuration of X===&lt;br /&gt;
First, move your old configuration file (or delete it).&lt;br /&gt;
 cd /etc/X11&lt;br /&gt;
 mv xorg.conf xorg.conf.old&lt;br /&gt;
&lt;br /&gt;
This point was not necessary at my last tests, but do this if something failed. Make a standard config file:&lt;br /&gt;
 cd /etc/X11&lt;br /&gt;
 Xorg -configure&lt;br /&gt;
 cp xorg.conf.new xorg.conf&lt;br /&gt;
&lt;br /&gt;
Now lets make &#039;&#039;aticonfig&#039;&#039; the rest of configuration.&lt;br /&gt;
&lt;br /&gt;
For a single screen:&lt;br /&gt;
&lt;br /&gt;
 aticonfig --initial --input=/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
For a dual head, second screen is {left|right|above|below}&lt;br /&gt;
&lt;br /&gt;
 aticonfig --initial=dual-head --input=/etc/X11/xorg.conf --screen-layout={left|right|above|below}&lt;br /&gt;
&lt;br /&gt;
Adapt input with your path to xorg&#039;s conf file&lt;br /&gt;
&lt;br /&gt;
If for some reason this command doesn&#039;t work, then try manually executing from its default location:&lt;br /&gt;
&lt;br /&gt;
 /opt/ati/bin/aticonfig [...]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Test your graphics card===&lt;br /&gt;
Now, let&#039;s get back into X.&lt;br /&gt;
&lt;br /&gt;
 startx&lt;br /&gt;
&lt;br /&gt;
Or start with init script and login:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/xdm start&lt;br /&gt;
&lt;br /&gt;
Open up a command prompt and run:&lt;br /&gt;
&lt;br /&gt;
 glxinfo&lt;br /&gt;
&lt;br /&gt;
If the OpenGL vendor string says &amp;quot;ATI Technologies,&amp;quot; then congrats! You&#039;ve got the drivers working and hardware acceleration going great. If not...read on...&lt;br /&gt;
&lt;br /&gt;
===Test latest drivers===&lt;br /&gt;
Getting the latest drivers will probably mean unmasking them before emerging.&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;x11-drivers/ati-drivers ~arch&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
Replace {{Codeline|&amp;lt;~arch&amp;gt;}} with your system architecture; it&#039;s going to be either {{Codeline|~x86}} or {{Codeline|~amd64}}, the only two CPU architectures supported by the ATI driver.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
===Wrong resolution===&lt;br /&gt;
Often the EDID information can&#039;t read correctly from monitor. Therefore first remove all kvm switches, hdmi switches or hdmi matrices between your monitor and output of your graphics card. At the moment (ati-drivers-10.12) the options &amp;quot;NoDDC&amp;quot;, &amp;quot;UseEdidFreqs&amp;quot; &amp;quot;0&amp;quot;, &amp;quot;IgnoreEDID&amp;quot; &amp;quot;on&amp;quot; seems to be not working. Also Option &amp;quot;CustomEDID&amp;quot; do not work with fglrx driver.&lt;br /&gt;
&lt;br /&gt;
=== Config Files ===&lt;br /&gt;
By default, the driver uses the Internal AGPGART. Sometimes the internal one doesn&#039;t work, and you will have to use the one provided with the kernel. Search your xorg.conf for the line that has the option &amp;quot;UseInternalAGPGART.&amp;quot; Simply change the &amp;quot;yes&amp;quot; to &amp;quot;no.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
 Option &amp;quot;UseInternalAGPGART&amp;quot; &amp;quot;no&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now simply add the modules to {{Filename|/etc/modules.autoload.d/kernel-2.x}} where x is your kernel version. &lt;br /&gt;
&lt;br /&gt;
Add the following (ORDER IS VERY IMPORTANT);&lt;br /&gt;
{{Box File|/etc/modules.autoload.d/kernel-2.x|&lt;br /&gt;
 agpgart&lt;br /&gt;
 intel-agp # change intel-agp to your chipset. eg: via-agp, nvidia-agp sis-agp.&lt;br /&gt;
 fglrx&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally, run&lt;br /&gt;
&lt;br /&gt;
 modules-update&lt;br /&gt;
&lt;br /&gt;
Then you can reboot and everything should work. If you have are having problems, check dmesg and /var/log/Xorg.0.log for more info.&lt;br /&gt;
&lt;br /&gt;
=== Blank screen or monitor turning off after startx ===&lt;br /&gt;
&lt;br /&gt;
Versions of ati-drivers &amp;gt;= 8.16.20 (and probably &amp;lt;= 8.20.8) have an issue with this that&#039;s easily corrected by inserting:&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
     Option &amp;quot;ForceMonitors&amp;quot; &amp;quot;notv&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
in the device section of xorg.conf (discussed here: http://bugs.gentoo.org/show_bug.cgi?id=103028)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check if you have a non-DDC monitor connected via VGA/HD15 connector. If so change your xorg.conf:&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
 #   Option &amp;quot;DesktopSetup&amp;quot;               &amp;quot;0x00000000&amp;quot;&lt;br /&gt;
     Option &amp;quot;MonitorLayout&amp;quot;              &amp;quot;NONE, CRT&amp;quot;&lt;br /&gt;
     Option &amp;quot;IgnoreEDID&amp;quot;                 &amp;quot;off&amp;quot;&lt;br /&gt;
     Option &amp;quot;HSync2&amp;quot;                     &amp;quot;30-85&amp;quot;&lt;br /&gt;
     Option &amp;quot;VRefresh2&amp;quot;                  &amp;quot;50-160&amp;quot;&lt;br /&gt;
 #   Option &amp;quot;ScreenOverlap&amp;quot;              &amp;quot;0&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
where HSync2 and VRefresh2 are your monitor parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, try changing the MonitorLayout option. The default is &amp;quot;AUTO, AUTO&amp;quot;, which is to say X will attempt to autodetect what kind of monitor you&#039;ve got on the first and second display heads. This can theoretically fail (though I have never observed it). Try changing it around a bit. For example, if you have an LCD and no secondary monitor, change the line to read:&lt;br /&gt;
&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
     Option &amp;quot;MonitorLayout&amp;quot;              &amp;quot;TMDS, NONE&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
if you have a CRT, simply replace &amp;quot;TMDS&amp;quot; with &amp;quot;CRT&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Crashes on startup ===&lt;br /&gt;
&#039;&#039;&#039;If you are unable to use any 3d applications and get this error instead:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
 fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
 fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Then you do not have tmpfs mounted on /dev/shm, which the driver requires.&#039;&#039;&#039; Make yourself sure you have tmpfs support compiled into kernel. It&#039;s under&lt;br /&gt;
&lt;br /&gt;
    File systems --&amp;gt;&lt;br /&gt;
        Pseudo filesystems --&amp;gt;&lt;br /&gt;
            [*] Virtual memory file system support (former shm fs)&lt;br /&gt;
&lt;br /&gt;
To mount this, add to following line to {{filename|/etc/fstab}} (if it isn&#039;t there already):&lt;br /&gt;
&lt;br /&gt;
{{Box File|/etc/fstab|&lt;br /&gt;
 tmpfs     /dev/shm           tmpfs        defaults            0 0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then just do a:&lt;br /&gt;
 mount /dev/shm&lt;br /&gt;
&lt;br /&gt;
If the drivers still crap out on you, or for example you get a black screen on X init, try going into your system BIOS and change graphics-related stuff around. Believe it or not, for me my 9800 gives a black screen on X init if I have the AGP Aperture set at anything other than 128MB. I don&#039;t know what causes this, and I don&#039;t care; I&#039;m just relating to you how I overcame &#039;&#039;my&#039;&#039; problem ;)&lt;br /&gt;
&lt;br /&gt;
Also, &#039;&#039;&#039;whenever you update your compiler&#039;&#039;&#039;, you &#039;&#039;&#039;must&#039;&#039;&#039; recompile your kernel otherwise you won&#039;t be able to insert the fglrx module. Note that recompiling your kernel means you must also unmerge/emerge ati-drivers!&lt;br /&gt;
&lt;br /&gt;
=== Duplicate symbol errors in X log ===&lt;br /&gt;
If you are unable to start X or X fails to load the fglrx driver and you have multiple symbol errors in your Xorg log, chances are that you have compiled X with the &#039;&#039;dlloader&#039;&#039; flag.  This flag can not be used with the fglrx driver.  To fix this problem, remove the dlloader flag by editing your /etc/portage/package.use file as follows:&lt;br /&gt;
{{Box File|/etc/portage/package.use|&lt;br /&gt;
 x11-base/xorg-x11 -dlloader&lt;br /&gt;
}}&lt;br /&gt;
Now re-emerge the &#039;&#039;xorg-x11&#039;&#039; package and reinstall the fglrx driver.&lt;br /&gt;
&lt;br /&gt;
=== Crashes on the exit of X.org / X won&#039;t shutdown ===&lt;br /&gt;
Perform the following if you can get the fglrx drivers working with hardware acceleration, but are suffering from a complete system crash when trying to quit X. You should boot into your system, login, then start on this. You don&#039;t need to boot into X, and shouldn&#039;t need to edit your xorg.conf file (as fglrx is already setup as the driver and working)&lt;br /&gt;
&lt;br /&gt;
You&#039;ve emerged the &amp;quot;stable&amp;quot; version of the ati-drivers, these are out of date -- remove them (emerge --unmerge ati-drivers), to add the most recent you should either add them to the keywords file (/etc/portage/package.keywords) or emerge your local ebuild (emerge /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.22.5.ebuild) if you&#039;re told it requires a dependency, emerge the local e-build for that, then try again. (usually eselect-opengl is required.)&lt;br /&gt;
Once you have the most recent ati-drivers emerged, run (eselect opengl set ati). Now you can (startx) and hopefully quit without any problems. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== glxinfo says &amp;quot;error: failed to open DRM: Operation not permitted&amp;quot;  ===&lt;br /&gt;
If a check with the glxinfo fails for ordinary users though works fine for root it might be related to filepermissions of the device-file.&lt;br /&gt;
Here is how to solve it:&lt;br /&gt;
&lt;br /&gt;
Make sure that the filepermissions on the card-device allows the video-group to read and write. The common group in gentoo with X is &amp;quot;video&amp;quot;. All normal users should be part of this group. Also, the device must have permissions for this group to read and write the card-device.&lt;br /&gt;
&lt;br /&gt;
Check the permissions on the card-device:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:/#ls -lcF /dev/dri/card0&lt;br /&gt;
crw-rw---- 1 root root 226, 0 Oct  5 16:19 /dev/dri/card0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can be changed with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:/dev/dri#chgrp video card0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if user is part of video:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paddlaren:~&amp;gt;id paddlaren&lt;br /&gt;
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),80(cdrw),85(usb),100(users),35(games)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a user to the video-group:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:~#gpasswd -a my_user video&lt;br /&gt;
&lt;br /&gt;
paddlaren:~&amp;gt;id paddlaren&lt;br /&gt;
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),27(video),80(cdrw),85(usb),100(users),35(games)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Logoff and on to ensure that the membership of the group is known to the system.&lt;br /&gt;
&lt;br /&gt;
==Some differences to open source driver &amp;quot;radeon&amp;quot;==&lt;br /&gt;
This information&#039;s was extracted from the file /var/log/Xorg.0.log.&lt;br /&gt;
&lt;br /&gt;
===Detected outputs===&lt;br /&gt;
The naming looks better at &#039;&#039;radeon&#039;&#039;. See example for HD5770 (1xHDMI, 2xDVI, 1x DisplayPort):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;fglrx&#039;&#039;: DFP1 (physical HDMI-0 on radeon?), DFP2 (physical DVI-0 on radeon?), DFP3 (physical DVI-1 on radeon!), DFP4 (physical DisplayPort-0 on radeon?), CRT1, CRT2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;radeon&#039;&#039;: HDMI-0, DVI-0, DVI-1, DisplayPort-0&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[http://ati.cchtml.com/ ATi Unofficial Bugzilla (occasionally monitored by ATi personnel)]&lt;br /&gt;
*Check out user Wedge_&#039;s excellent ATI Radeon [http://odin.prohosting.com/wedge01/gentoo-radeon-faq.html FAQ here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10315</id>
		<title>Slackware: ATI SlackBuild (ENG)</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10315"/>
		<updated>2013-11-15T15:02:24Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: TGnBU6 I loved your article. Keep writing.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Per http://wiki.cchtml.com/index.php/Slackware:_ATI_SlackBuild_(ENG) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2KjaBI I really like and appreciate your blog post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
TGnBU6 I loved your article. Keep writing.&lt;br /&gt;
&lt;br /&gt;
= Getting all the necessary =&lt;br /&gt;
The installer can be downloaded from the [http://ati.amd.com/support/driver.html official web site] directly.&lt;br /&gt;
{{Warning|Warning|If the downloaded driver version is less than 8.37.6, then you need to know from now that it will not work onto X.Org 7.2 server (or 1.3) or later.}}&lt;br /&gt;
{{Helpful Hint|Note|Drivers for x86 and x86_64 architectures are equivalent. The installer contains files for both architectures, then It will be the compilation process and the package creation process to choose the appropriate files.&lt;br /&gt;
This means that the SlackBuild will be good for Slackware, Slackware64 and for Slackware 64-bit portings (Slamd64, Bluewhite64, etc. ...).}}&lt;br /&gt;
&lt;br /&gt;
Since drivers also contain a kernel module which will be compiled directly on your system, you&#039;ll need the kernel source in use.&lt;br /&gt;
&lt;br /&gt;
= How to create Slackware packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
For these drivers will be produced two packages (see [[#What do created packages contain?]]).&lt;br /&gt;
=== Drivers version &amp;lt; 8.37.6 (external SlackBuild) ===&lt;br /&gt;
For these types of drivers I&#039;ve created an &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; for Slackware and I made [http://www.slacky.eu/~spina/fglrx/ati-slack-packager-1.1.9-noarch-1.tgz this package].&lt;br /&gt;
&lt;br /&gt;
To create Slackware packages simply run:&lt;br /&gt;
 #&amp;gt; installpkg ati-slack-packager-1.1.9-noarch-1.tgz&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -- buildpkg custom-package/Slackware&lt;br /&gt;
&lt;br /&gt;
=== Drivers version &amp;gt;= 8.37.6 or new ATI Catalyst (internal SlackBuild) ===&lt;br /&gt;
For these drivers I&#039;ve sent the SlackBuild directly to ATI which inserted it into the installer, then simply run:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/All&lt;br /&gt;
or, if drivers are quite recent, it suffices:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg&lt;br /&gt;
Otherwise, in order to create and install directly the packages you can use (always with recent versions of the driver):&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildandinstallpkg&lt;br /&gt;
&lt;br /&gt;
此处的意思是：如果是新装的系统，直接运行本处的最后一个命令即可同时完成创建包和安装包的过程。&lt;br /&gt;
&lt;br /&gt;
=== What do created packages contain? ===&lt;br /&gt;
The two packages created by SlackBuild, that we&#039;ll call &#039;&#039;fglrx-module&#039;&#039; and &#039;&#039;fglrx-x&#039;&#039; contain, respectively, the kernel module and the X.Org server driver currently installed in the system. In this way, if you upgrade the kernel or the X.Org server, you can create only one package.&lt;br /&gt;
&lt;br /&gt;
==== Creating only fglrx-module package ====&lt;br /&gt;
To create just the package containing the kernel module for the currently installed kernel, simply run the installer with the &#039;&#039;Only_Module&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
So with &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg custom-package/Only_Module&lt;br /&gt;
With &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/Only_Module&lt;br /&gt;
&lt;br /&gt;
==== Creating only fglrx-x package ====&lt;br /&gt;
To create just the package containing the X.Org driver currently installed in your system, simply run installer with &#039;&#039;Only_X&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg custom-package/Only_X&lt;br /&gt;
With &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/Only_X&lt;br /&gt;
&lt;br /&gt;
（如果进行了上一小节的 --buildandinstallpkg则本小节的命令可不必再执行）&lt;br /&gt;
&lt;br /&gt;
接下来，执行&lt;br /&gt;
&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
即可进入ATI配置的界面，完成显卡的简单配置。&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
Since these drivers the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; make only one package, named &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039;, that you can create with:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg&lt;br /&gt;
You can also make and install the package directly with:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --buildandinstallpkg&lt;br /&gt;
&lt;br /&gt;
= Minimal X.Org server configuration =&lt;br /&gt;
Once installed the two indicated packages, you must tell to the X.Org server to use ATI proprietary drivers, to do this we must check if the xorg.conf file, which is usually located in the &#039;&#039;/etc/X11/&#039;&#039; directory, contains the following items:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Load    &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load    &amp;quot;glx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Driver  &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;DRI&amp;quot;&lt;br /&gt;
        Group   0&lt;br /&gt;
        Mode    0666&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
{{Useful Information|Note|The command:&lt;br /&gt;
 #&amp;gt; aticonfig --initial&lt;br /&gt;
can help you. Do &#039;&#039;&#039;aticonfig&#039;&#039;&#039; without options for more infos.}}&lt;br /&gt;
&lt;br /&gt;
= Installation checking =&lt;br /&gt;
To see if proprietary ATI drivers are properly installed run the command:&lt;br /&gt;
 $&amp;gt; fglrxinfo&lt;br /&gt;
On my computer the output is:&lt;br /&gt;
 display::0.0  screen: 0&lt;br /&gt;
 OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
 OpenGL renderer string: ATI Mobility Radeon X1400&lt;br /&gt;
 OpenGL version string: 2.0.6650 (8.39.4)&lt;br /&gt;
&lt;br /&gt;
= Remove installed packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
To remove installed packages you can use the &#039;&#039;&#039;removepkg&#039;&#039;&#039; utility. However, there are aspects that should be considered:&lt;br /&gt;
* The packages&#039; removing don&#039;t delete fglrx&#039;s driver configuration files, these files are located in &#039;&#039;/etc/ati&#039;&#039; directory&lt;br /&gt;
{{Be Careful|Be Careful|The /etc/ati/custom-package directory, if exists, contains the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; and therefore should not be deleted.}}&lt;br /&gt;
* The fglrx-x package contains ATI&#039;s OpenGL libraries, and these libraries are located in the same directory of the Mesa libraries, so when you install the fglrx-x package Mesa OpenGL libraries are overridden. To restore the situation you should simply reinstall the package containing these libraries, like:&lt;br /&gt;
::x11&lt;br /&gt;
:for Slackware 11, or:&lt;br /&gt;
::mesa&lt;br /&gt;
:for Slackware 12.&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
During installation of the package &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039; some libraries that would be overwritten are renamed as FGL.renamed.library_name. Due to remove this package &amp;amp;ldquo;cleanly&amp;amp;rdquo; you should do:&lt;br /&gt;
 #&amp;gt; aticonfig --uninstall&lt;br /&gt;
or, directly with the script:&lt;br /&gt;
 #&amp;gt; /usr/share/ati/amd-uninstall.sh&lt;br /&gt;
or, also with any installer &amp;gt;= 11.3, with:&lt;br /&gt;
 #&amp;gt; ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --uninstall&lt;br /&gt;
Will remain only the directory &#039;&#039;/etc/ati&#039;&#039; with the configuration files.&lt;br /&gt;
&lt;br /&gt;
= Patching the drivers =&lt;br /&gt;
Ati drivers are usually not compatible with brand new version of kernel linux. You often need to patch the driver so that you can create the kernel module successfully. Since Ati Catalyst &amp;gt; 8.11 you can patch Ati drivers within the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; before that same SlackBuild compiles the kernel module.&lt;br /&gt;
&lt;br /&gt;
In order to do that, you just have to create (or download from the Internet) a patch and rename it like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/ati/patch/patch-ATI_DRIVER_VERSION-KERNEL_VERSION&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
ATI_DRIVER_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -i | head -n1 | cut -d&#039;-&#039; -f2&lt;br /&gt;
KERNEL_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; uname -r&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;/etc/ati/patch&#039;&#039; doesn&#039;t exist, it must be made.&lt;br /&gt;
&lt;br /&gt;
For example, if the former command outputs &amp;quot;8.55&amp;quot; and the latter &amp;quot;2.6.27.6&amp;quot;, you need to name the patch &#039;&#039;/etc/ati/patch/patch-8.56-2.6.27.6&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; will find the patch automatically and, if the command &#039;&#039;&#039;patch&#039;&#039;&#039; is installed, it will run:&lt;br /&gt;
 #&amp;gt; patch -p0 &amp;lt; /etc/ati/patch/patch-8.56-2.6.27.6&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
Here some patches and how to use there:&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.3, 10.4 and kernel == 2.6.33.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.3-4_with_2.6.33.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.3&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.712-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-3-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.4, 10.5 and kernel == 2.6.34 ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.4-5_with_2.6.34.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.5&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.732-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.9 and Slackware64 13.1 or current ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.9_with_Slackware64-13.1.diff patch] into &#039;&#039;/tmp&#039;&#039;, so to do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.9_with_Slackware64-13.1.diff /etc/ati/patch/patch-8.771-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-9-x86.x86_64.run --buildpkg&lt;br /&gt;
at one point the installer asks:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
can&#039;t find file to patch at input line 4&lt;br /&gt;
Perhaps you should have used the -p or --strip option?&lt;br /&gt;
The text leading up to this was:&lt;br /&gt;
--------------------------&lt;br /&gt;
|diff -ru ./2.6.x/Makefile ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile&lt;br /&gt;
|--- ./2.6.x/Makefile   2010-09-01 16:05:31.000000000 +0200&lt;br /&gt;
|+++ ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile  2010-09-23 08:47:24.000000000 +0200&lt;br /&gt;
--------------------------&lt;br /&gt;
File to patch:&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
insert:&lt;br /&gt;
 ./2.6.x/Makefile&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 and kernel == 2.6.36.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-11_with_2.6.36.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 e 10.12 e kernel == 2.6.37.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-12_with_2.6.37.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.12&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.801-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-12-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
= Known problems =&lt;br /&gt;
== error: implicit declaration of function &#039;lock_kernel&#039; and error: implicit declaration of function &#039;unlock_kernel&#039; ==&lt;br /&gt;
You need to enable the &#039;&#039;&#039;Big Kernel Lock&#039;&#039;&#039; in your kernel configuration. You find it under the &#039;&#039;&#039;Kernel hacking&#039;&#039;&#039; menu. You can check if this option is enable with:&lt;br /&gt;
 $&amp;gt; zcat /proc/config.gz | grep BKL&lt;br /&gt;
 CONFIG_BKL=y&lt;br /&gt;
&lt;br /&gt;
== FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol &#039;paravirt_ops&#039; ==&lt;br /&gt;
The error occurs during module compilation and It&#039;s due to the fact that the kernel was compiled with the option of paravirtualization active. This option among other things, prevents to load, and then to compile, modules that do not have the GPL license. Since that ATI drivers don&#039;t have this type of license, they aren&#039;t compiled.&lt;br /&gt;
&lt;br /&gt;
To work around this problem you can:&lt;br /&gt;
==== Disable kernel paravirtualization option ====&lt;br /&gt;
The paravirtualization option is called &#039;&#039;&#039;CONFIG_PARAVIRT&#039;&#039;&#039; and generally is in the &#039;&#039;&#039;Processor type and features&#039;&#039;&#039; kernel submenu.&lt;br /&gt;
==== Patch ATI drivers ====&lt;br /&gt;
This operation is illegal because It changes the type of license issued by ATI in a GPL license. I wrote the patch:&lt;br /&gt;
&lt;br /&gt;
[http://www.slacky.eu/~spina/fglrx/patch/ati_to_gpl.patch ati_to_gpl.patch] (md5sum: 4207f41a71035dc2eed3ea9346b881bb)&lt;br /&gt;
&lt;br /&gt;
but I do not take any responsibility, I do not use It and I discourage the use in order to prefer the alternative to disable the paravirtualization kernel option. To use this patch You need to:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;External SlackBuild&#039;&#039;&#039;&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Internal SlackBuild&#039;&#039;&#039; (only with Ati Catalyst &amp;gt; 8.11):&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/patch&#039;&#039; directory (if it doesn&#039;t exist you must create it)&lt;br /&gt;
&lt;br /&gt;
The SlackBuild will find and apply the patch automatically. In order to uninstall it you simply need to delete it. In order to uninstall the patch simply delete It from &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory.&lt;br /&gt;
&lt;br /&gt;
== Using GLX_SGIX_pbuffer FGLTexMgr: open of shared memory object failed (Permission denied) __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!! ==&lt;br /&gt;
This problem is due to the lack of SHM filesystem (now called tmpfs), that is virtual memory filesystem. To work around this problem you must:&lt;br /&gt;
* Add into &#039;&#039;/etc/fstab&#039;&#039; file the following line:&lt;br /&gt;
 shm		/dev/shm		tmpfs		defaults	0	0&lt;br /&gt;
* Then mount the filesystem through:&lt;br /&gt;
 #&amp;gt; mount /dev/shm&lt;br /&gt;
Obviously the kernel must be predisposed for the &amp;quot;mounting&amp;quot; of this filesystem, in particular the kernel option that must be enabled is &#039;&#039;&#039;CONFIG_TMPFS&#039;&#039;&#039; that is generally placed in &#039;&#039;&#039;File system --&amp;gt; Pseudo filesystems&#039;&#039;&#039; submenu. However all the compiled kernel generally have this option enabled.&lt;br /&gt;
&lt;br /&gt;
== kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel ==&lt;br /&gt;
The complete mistake is something like this:&lt;br /&gt;
&lt;br /&gt;
 Error:&lt;br /&gt;
 kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel.&lt;br /&gt;
 they are versioned as &amp;quot;&amp;quot;&lt;br /&gt;
 instead of &amp;quot;`uname -r`&amp;quot;.&lt;br /&gt;
 you might need to adjust your symlinks:&lt;br /&gt;
 - /usr/include&lt;br /&gt;
 - /usr/src/linux&lt;br /&gt;
&lt;br /&gt;
The error, also if explained, could be not clear. In practice It results from the fact that the symbolic link:&lt;br /&gt;
 /lib/modules/`uname -r`/source&lt;br /&gt;
 /lib/modules/`uname -r`/build&lt;br /&gt;
don&#039;t point to the directory where are inserted the current kernel sources (which is generally &#039;&#039;/usr/src/linux- &#039;uname-r&#039;&#039;&#039;). It happens to those who use a kernel contained in Slackware, so I will try to explain It in terms of Slackware &amp;quot;packages&amp;quot;. This can happen:&lt;br /&gt;
* because the kernel source were not installed. In this case should be enough to install the source package which can be found in Slackware k/ directory. However, It is not granted that the problem will be solved, You&#039;ll need to see the second reason why there is an error.&lt;br /&gt;
* because sources (also if installed) do not reflect the settings of the current kernel. The new Slackware 12 has some precompiled kernels (which means different settings), while just a single package for the sources (unless seeing the branch extra/). In particular, the sources are for the SMP kernel and so if you use a non-SMP kernel can appear this error. To avoid this, after making sure that the package source has been installed, do simply the following:&lt;br /&gt;
 #&amp;gt; cd /usr/src/linux&lt;br /&gt;
 #&amp;gt; cp /boot/config .config&lt;br /&gt;
 #&amp;gt; make&lt;br /&gt;
:running make, in addition to compiling the kernel modules (which we will not use), some header files are regenerated, and they will reflect the kernel configuration (as it&#039;s set in the .config file).&lt;br /&gt;
&lt;br /&gt;
== Driver 8.39.4 logo ==&lt;br /&gt;
This &amp;quot;bug&amp;quot; in 8.39.4 drivers results from the fact that ATI developers don&#039;t update the packager maintainers before the official releases. It should be nice first if they did test us official releases in order to certify the proper functioning of the scripts for creating packages. To solve the problem it&#039;s necessary to use the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; as described here.&lt;br /&gt;
&lt;br /&gt;
== amdcccle don&#039;t start on Slackware 12 ==&lt;br /&gt;
Many users of the X.Org 7.2 (or 1.3) server version fail to start properly the Catalyst. The command to run the Catalyst is:&lt;br /&gt;
 #&amp;gt; amdcccle&lt;br /&gt;
For this problem it seems there is no solution yet, but we are working on to solve it.&lt;br /&gt;
&lt;br /&gt;
= Useful links =&lt;br /&gt;
The discussion thread from which it was derived this article:&lt;br /&gt;
http://www.slacky.eu/forum/viewtopic.php?t=18134&amp;amp;highlight=&lt;br /&gt;
&lt;br /&gt;
An alternative to official ATI drivers:&lt;br /&gt;
http://www.x.org/wiki/radeon&lt;br /&gt;
&lt;br /&gt;
A wiki in italian about installing and configuring ATI drivers (open source and proprietary):&lt;br /&gt;
http://www.slacky.eu/wikislack/index.php?title=Installazione_driver_ATI_su_Slackware_GNU/Linux&lt;br /&gt;
&lt;br /&gt;
= Acknowledgement =&lt;br /&gt;
Thank you at Ezio Ghibaudo and Federico Rota who have started this wiki and for help with the SlackBuild. Thanks also at all the [http://www.slacky.eu/ Italian Slackware Community] users for their feedback and support.&lt;br /&gt;
&lt;br /&gt;
[[User:Spina|Spina]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10314</id>
		<title>Ubuntu Quantal Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Quantal_Installation_Guide&amp;diff=10314"/>
		<updated>2013-11-15T03:21:22Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: yLmxHv Muchos Gracias for your blog article. Awesome.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
yLmxHv Muchos Gracias for your blog article. Awesome.&lt;br /&gt;
&lt;br /&gt;
= Updated Open Source Driver PPA&#039;s =&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;Ubuntu-X&amp;quot;&#039;&#039;&#039; : This PPA offers the latest stable releases of video driver-related components. Follow the instructions at: https://launchpad.net/~ubuntu-x-swat/+archive/x-updates&lt;br /&gt;
* &#039;&#039;&#039;Xorg-edgers&#039;&#039;&#039;: This bleeding-edge PPA offers video driver-related components straight from their code (git) repositories. Follow the instructions at: https://launchpad.net/~xorg-edgers/+archive/ppa&lt;br /&gt;
&lt;br /&gt;
= Installing Proprietary Drivers a.k.a. Catalyst/fglrx =&lt;br /&gt;
&lt;br /&gt;
{| WIDTH=&amp;quot;650&amp;quot; cellpadding=0 cellspacing=0 style=&amp;quot;background-color: red; border: solid 1px #666666; color: #ffffff; text-align: center;&amp;quot; &lt;br /&gt;
| style=&amp;quot;background-color: #666666; border: solid 1px #666666; border-bottom: 1px solid #888;&amp;quot; | &amp;lt;font size=&amp;quot;-1&amp;quot;&amp;gt;&#039;&#039;&#039;ATTENTION RADEON USERS&#039;&#039;&#039;&amp;lt;/font&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;br /&amp;gt;*PLEASE READ FIRST!&lt;br /&gt;
&#039;&#039;&#039;Which Radeon cards are no longer supported by ATI&#039;s Catalyst?&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ATI Radeon 9500-9800, Xpress200-1250, 690G, 740G, X300-X2500, Mobility RadeonHD 2300&#039;&#039;&#039;&lt;br /&gt;
If your card is on that list, you are limited to open-source drivers on Ubuntu Lucid/10.04 (and later). If you really need the proprietary Catalyst/fglrx driver, you will have to use an older Linux distribution, such as Debian Lenny/5.0.x or Ubuntu Hardy/8.04.x.&lt;br /&gt;
NOTE: If you enter your card information on AMD/ATI&#039;s driver page, it will offer you the Catalyst 9-3 driver to download. However, the Catalyst 9-3 driver doesn&#039;t support X servers past 1.5, and it will not work with Precise (or anything later than Lucid/10,04)! !!!SO BE CAREFUL!!! If you tried to install Catalyst on a system with one of these cards, see the &#039;Removing the Driver&#039; section to restore the default/pre-installed drivers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ATI RadeonHD 2x00 - 4xx0 cards&#039;&#039;&#039;&lt;br /&gt;
If you have one of these cards, you do have the option of using the Catalyst Legacy driver, but only if you downgrade your Xserver version (the Catalyst Legacy driver does not support the kernel version (3.5) or the Xserver version (1.13) that Ubuntu Quantal/12.10 uses).&lt;br /&gt;
This can be done really easily by following the instructions given at [[https://launchpad.net/~makson96/+archive/fglrx]]. This PPA downgrades the Xserver and install a patched version of fglrx that supports kernel version 3.5 of Ubuntu Quantal.&lt;br /&gt;
&lt;br /&gt;
== Using Ubuntu-supplied fglrx/Catalyst ==&lt;br /&gt;
&lt;br /&gt;
On Ubuntu Quantal, this will install fglrx/Catalyst 9.000, which is roughly equivalent to Catalyst 12-9. NOTE: You must have the restricted repository enabled in Applications -&amp;gt; Software Sources... for this to work. After you complete the install, skip to [[Ubuntu_Quantal_Installation_Guide#Generate_a_new_.2Fetc.2FX11.2Fxorg.conf_file|Generate a new /etc/X11/xorg.conf file]].&lt;br /&gt;
&lt;br /&gt;
=== Command line ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install linux-source fglrx fglrx-amdcccle&lt;br /&gt;
&lt;br /&gt;
=== GUI ===&lt;br /&gt;
&lt;br /&gt;
Jockey was removed in 12.10. You now need to go to Software Sources and go to the Additional Hardware tab. You will need to install linux-headers-generic beforehand, or the Panel won&#039;t show up after the restart.&lt;br /&gt;
&lt;br /&gt;
== Installing Catalyst Manually (from AMD/ATI&#039;s site) ==&lt;br /&gt;
&lt;br /&gt;
I recommend copying and pasting the commands to ensure there are no typing mistakes and speed up the install process. Remember to use Ctrl &#039;&#039;&#039;+ Shift&#039;&#039;&#039; + V or Shift + Insert to paste into the terminal (or go to the terminals menu, select edit and click paste).&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Before you start&#039;&#039;===&lt;br /&gt;
If you have previously attempted installing Catalyst, remove any leftover files by following the [[#Removing_Catalyst.2Ffglrx| Removing the Driver]] section. Make sure &#039;&#039;universe&#039;&#039; and &#039;&#039;multiverse&#039;&#039; are enabled in your repository sources (System -&amp;gt; Administration -&amp;gt; Software Sources).&lt;br /&gt;
or Applications-&amp;gt;Ubuntu Software Center-&amp;gt;Edit-&amp;gt;Software sources-&amp;gt;Other software: check canonical partners.&lt;br /&gt;
&lt;br /&gt;
Install the prerequisite packages:&lt;br /&gt;
 sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases linux-headers-generic fakeroot&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If you are using the x86_64 architecture (64 bit)&#039;&#039;:&lt;br /&gt;
 sudo apt-get install lib32gcc1&lt;br /&gt;
&lt;br /&gt;
Create a directory for the build environment and move to that directory&lt;br /&gt;
 mkdir catalyst13.4 &amp;amp;&amp;amp; cd catalyst13.4&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Download the latest Catalyst package.&#039;&#039;===&lt;br /&gt;
This package contains both the 32-bit and 64-bit driver.&lt;br /&gt;
&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-catalyst-13.4-linux-x86.x86_64.zip&lt;br /&gt;
 unzip amd-catalyst-13.4-linux-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-catalyst-13.4-linux-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Create and install .deb packages.&#039;&#039; ===&lt;br /&gt;
 sudo ./amd-catalyst-13.4-linux-x86.x86_64.run --buildpkg Ubuntu/quantal&lt;br /&gt;
 sudo dpkg -i fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;In case of failure:&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Remember these steps before you reboot your computer.&lt;br /&gt;
&lt;br /&gt;
If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.&lt;br /&gt;
&lt;br /&gt;
 sudo start lightdm&lt;br /&gt;
&lt;br /&gt;
If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of &amp;quot;Could not stat /usr/lib64/fglrx/switchlibGL&amp;quot; which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/. &lt;br /&gt;
&lt;br /&gt;
If all else fails, revert your xorg.conf and reboot.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
This should return your original display.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Generate a new /etc/X11/xorg.conf file&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file.  It is entirely dependent on your configuration.  The following subsections will attempt to address possible (and tested) variations for their respective configurations.&lt;br /&gt;
&lt;br /&gt;
=== Generic Config ===&lt;br /&gt;
This will work for most people:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
=== Minimal Config ===&lt;br /&gt;
A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that&#039;s not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;ATI radeon 6870&amp;quot;&lt;br /&gt;
  Driver &amp;quot;fglrx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
=== X2/Dual GPU Cards ===&lt;br /&gt;
If you have an X2 card (e.g. 5970), use... &#039;&#039;&#039;!!Do not use for two separate cards in crossfire!!&#039;&#039;&#039;&lt;br /&gt;
 sudo amdconfig --initial -f --adapter&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;all&lt;br /&gt;
&lt;br /&gt;
=== Dual/Multi Monitors ===&lt;br /&gt;
If you have a dual monitor display (also known as &amp;quot;Big Desktop&amp;quot;), use:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
 sudo amdconfig --set-pcs-str&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;DDX,EnableRandR12,FALSE&amp;quot;&lt;br /&gt;
This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Force use of the new xorg.conf (if necessary)&#039;&#039;==&lt;br /&gt;
Some people find that changes to xorg.conf don&#039;t get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig &amp;lt;nowiki&amp;gt;--input=/etc/X11/xorg.conf --tls=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Test your installation&#039;&#039;==&lt;br /&gt;
NOTE: if you don&#039;t reboot first, fglrxinfo gives an error message.&lt;br /&gt;
Reboot the computer and type&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
display: :0.0  screen: 0&lt;br /&gt;
OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)&lt;br /&gt;
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and &lt;br /&gt;
Catalyst version you are using.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, try:&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
If you experience issues or a hang, you may need to disable fast TLS.&lt;br /&gt;
 sudo amdconfig --tls=0&lt;br /&gt;
&lt;br /&gt;
== Installing Catalyst Manually (from AMD/ATI&#039;s site) BETA/EXPERIMENTAL ==&lt;br /&gt;
&lt;br /&gt;
I recommend copying and pasting the commands to ensure there are no typing mistakes and speed up the install process. Remember to use Ctrl &#039;&#039;&#039;+ Shift&#039;&#039;&#039; + V or Shift + Insert to paste into the terminal (or go to the terminals menu, select edit and click paste).&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Before you start&#039;&#039;===&lt;br /&gt;
If you have previously attempted installing Catalyst, remove any leftover files by following the [[#Removing_Catalyst.2Ffglrx| Removing the Driver]] section. Make sure &#039;&#039;universe&#039;&#039; and &#039;&#039;multiverse&#039;&#039; are enabled in your repository sources (System -&amp;gt; Administration -&amp;gt; Software Sources).&lt;br /&gt;
or Applications-&amp;gt;Ubuntu Software Center-&amp;gt;Edit-&amp;gt;Software sources-&amp;gt;Other software: check canonical partners.&lt;br /&gt;
&lt;br /&gt;
Install the prerequisite packages:&lt;br /&gt;
 sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases linux-headers-generic fakeroot&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If you are using the x86_64 architecture (64 bit)&#039;&#039;:&lt;br /&gt;
 sudo apt-get install lib32gcc1&lt;br /&gt;
&lt;br /&gt;
Create a directory for the build environment and move to that directory&lt;br /&gt;
 mkdir catalyst13.3beta3 &amp;amp;&amp;amp; cd catalyst13.3beta3&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Download the latest Catalyst package.&#039;&#039;===&lt;br /&gt;
This package contains both the 32-bit and 64-bit driver.&lt;br /&gt;
&lt;br /&gt;
 wget http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Create and install .deb packages.&#039;&#039; ===&lt;br /&gt;
 sudo sh ./amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.run --buildpkg Ubuntu/quantal&lt;br /&gt;
 sudo dpkg -i fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
If building .deb packages fails, there is also an [http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide#Alternative_Manual_Installation Alternative Manual Installation]&lt;br /&gt;
&lt;br /&gt;
When running the dpkg line, you may receive an error like:&lt;br /&gt;
 Errors were encountered while processing:&lt;br /&gt;
   fglrx&lt;br /&gt;
   fglrx-amdcccle&lt;br /&gt;
   fglrx-dev&lt;br /&gt;
&lt;br /&gt;
They may have attempted to install out of order.  Install them individually as:&lt;br /&gt;
&lt;br /&gt;
  sudo dpkg -i fglrx_*.deb&lt;br /&gt;
  sudo dpkg -i fglrx-amdcccle*.deb &lt;br /&gt;
  sudo dpkg -i fglrx-dev*.deb&lt;br /&gt;
&lt;br /&gt;
You should see a successful result similar to:&lt;br /&gt;
&lt;br /&gt;
 user@user-ubuntu:~# sudo dpkg -i fglrx_9.010-0ubuntu1_amd64.deb &lt;br /&gt;
 (Reading database ... 168748 files and directories currently installed.)&lt;br /&gt;
 Preparing to replace fglrx 2:9.010-0ubuntu1 (using fglrx_9.010-0ubuntu1_amd64.deb) ...&lt;br /&gt;
 Removing all DKMS Modules&lt;br /&gt;
 Error! There are no instances of module: fglrx&lt;br /&gt;
 9.010 located in the DKMS tree.&lt;br /&gt;
 Done.&lt;br /&gt;
 Unpacking replacement fglrx ...&lt;br /&gt;
 Setting up fglrx (2:9.010-0ubuntu1) ...&lt;br /&gt;
 update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode&lt;br /&gt;
 update-alternatives: using /usr/lib/fglrx/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode&lt;br /&gt;
 update-initramfs: deferring update (trigger activated)&lt;br /&gt;
 Loading new fglrx-9.010 DKMS files...&lt;br /&gt;
 First Installation: checking all kernels...&lt;br /&gt;
 Building only for 3.5.0-17-generic&lt;br /&gt;
 Building for architecture x86_64&lt;br /&gt;
 Module build for the currently running kernel was skipped since the&lt;br /&gt;
 kernel source for this kernel does not seem to be installed.&lt;br /&gt;
 update-initramfs: deferring update (trigger activated)&lt;br /&gt;
 Processing triggers for ureadahead ...&lt;br /&gt;
 Processing triggers for bamfdaemon ...&lt;br /&gt;
 Rebuilding /usr/share/applications/bamf.index...&lt;br /&gt;
 Processing triggers for initramfs-tools ...&lt;br /&gt;
 update-initramfs: Generating /boot/initrd.img-3.5.0-17-generic&lt;br /&gt;
 Processing triggers for libc-bin ...&lt;br /&gt;
 ldconfig deferred processing now taking place&lt;br /&gt;
&lt;br /&gt;
 user@user-ubuntu:~# sudo dpkg -i fglrx-amdcccle_9.010-0ubuntu1_amd64.deb &lt;br /&gt;
 (Reading database ... 168748 files and directories currently installed.)&lt;br /&gt;
 Preparing to replace fglrx-amdcccle 2:9.010-0ubuntu1 (using fglrx-amdcccle_9.010-0ubuntu1_amd64.deb)  ...&lt;br /&gt;
 Unpacking replacement fglrx-amdcccle ...&lt;br /&gt;
 Setting up fglrx-amdcccle (2:9.010-0ubuntu1) ...&lt;br /&gt;
&lt;br /&gt;
 user@user-ubuntu:~# sudo dpkg -i fglrx-dev_9.010-0ubuntu1_amd64.deb &lt;br /&gt;
 (Reading database ... 168748 files and directories currently installed.)&lt;br /&gt;
 Preparing to replace fglrx-dev 2:9.010-0ubuntu1 (using fglrx-dev_9.010-0ubuntu1_amd64.deb) ...&lt;br /&gt;
 Unpacking replacement fglrx-dev ...&lt;br /&gt;
 Setting up fglrx-dev (2:9.010-0ubuntu1) ...&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;In case of failure:&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Remember these steps before you reboot your computer.&lt;br /&gt;
&lt;br /&gt;
If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.&lt;br /&gt;
&lt;br /&gt;
 sudo startx&lt;br /&gt;
&lt;br /&gt;
If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of &amp;quot;Could not stat /usr/lib64/fglrx/switchlibGL&amp;quot; which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/. &lt;br /&gt;
&lt;br /&gt;
If all else fails, revert your xorg.conf and reboot.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
This should return your original display.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Generate a new /etc/X11/xorg.conf file&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file.  It is entirely dependent on your configuration.  The following subsections will attempt to address possible (and tested) variations for their respective configurations.&lt;br /&gt;
&lt;br /&gt;
=== Generic Config ===&lt;br /&gt;
This will work for most people:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
=== Minimal Config ===&lt;br /&gt;
A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that&#039;s not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;ATI radeon 6870&amp;quot;&lt;br /&gt;
  Driver &amp;quot;fglrx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
=== X2/Dual GPU Cards ===&lt;br /&gt;
If you have an X2 card (e.g. 5970), use... &#039;&#039;&#039;!!Do not use for two separate cards in crossfire!!&#039;&#039;&#039;&lt;br /&gt;
 sudo amdconfig --initial -f --adapter&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;all&lt;br /&gt;
&lt;br /&gt;
=== Dual/Multi Monitors ===&lt;br /&gt;
If you have a dual monitor display (also known as &amp;quot;Big Desktop&amp;quot;), use:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
 sudo amdconfig --set-pcs-str&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;DDX,EnableRandR12,FALSE&amp;quot;&lt;br /&gt;
This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Force use of the new xorg.conf (if necessary)&#039;&#039;==&lt;br /&gt;
Some people find that changes to xorg.conf don&#039;t get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig &amp;lt;nowiki&amp;gt;--input=/etc/X11/xorg.conf --tls=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Test your installation&#039;&#039;==&lt;br /&gt;
NOTE: if you don&#039;t reboot first, fglrxinfo gives an error message.&lt;br /&gt;
Reboot the computer and type&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
display: :0.0  screen: 0&lt;br /&gt;
OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)&lt;br /&gt;
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and &lt;br /&gt;
Catalyst version you are using.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, try:&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
If you experience issues or a hang, you may need to disable fast TLS.&lt;br /&gt;
 sudo amdconfig --tls=0&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Just in case&#039;&#039;===&lt;br /&gt;
Write down or remember this series of Alt+PrntScr key combinations, just in case your screen should go black and Ctrl+Alt+F1 and Ctrl+Alt+Backspace doesn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
Alt+PrntScr+r, Alt+PrntScr+s, Alt+PrntScr+e, Alt+PrntScr+i, Alt+PrntScr+n, Alt+PrntScr+u, Alt+PrntScr+b&lt;br /&gt;
&lt;br /&gt;
These key-presses will reboot the system safely. To remember the key-presses, remember this nonsensical phrase: &amp;quot;Raising Skinny Elephants Is Never Utterly Boring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An alternative would be to hold down Ctrl+Alt+SysRq (SysRq is usually the same key as PrintScreen) and type very slowly R E I S U B. A way to remember this is by inverting the word: &amp;quot;BUSIER&amp;quot; or remembering a phrase: &amp;quot;Restart Even If System Utterly Broken&amp;quot;. This would also safely shutdown the system.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
NOTE: The VA-API wrapper for XvBA has been dead code for a while now. It will probably give you some acceleration of HD formats, but using the previously mentioned xbmc PPA is a better solution.&lt;br /&gt;
&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for va-api is VLC. You can enable va-api in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
There is possibility to enable &amp;gt; H.264 Level 5.1 decoding in the driver which &amp;quot;has been in the driver for some time but not enabled by default&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 sudo service lightdm stop&lt;br /&gt;
 sudo cp -p  /etc/ati/amdpcsdb  /etc/ati/amdpcsdb.bak&lt;br /&gt;
 sudo sed -i &#039;/UvdEnabled=V1/ a HWUVD_H264Level51Support=V1&#039; /etc/ati/amdpcsdb&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though it&#039;s not clear if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
By using the officially provided drivers, there are two problems ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1068404 #1068404]):&lt;br /&gt;
: An incompatibility problem between intel and fglrx drivers (This gives segmentation fault at X server)&lt;br /&gt;
: Some paths missing for openGL operation of the fglrx driver (This prevents applications that require direct rendering, e.g. Unity/games/etc, from loading correctly)&lt;br /&gt;
&lt;br /&gt;
If you follow the instructions described in the [https://help.ubuntu.com/community/BinaryDriverHowto/ATI#WORKAROUND Binary Driver HOWTO], you should get functional configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is still another bug if you use the integrated GPU (Intel), making the X server crashing ( Launchpad Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1088220 #1088220] )&lt;br /&gt;
&lt;br /&gt;
A workaround for now is to use the discrete GPU (ATI)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information you may want to follow this [http://ubuntuforums.org/showthread.php?p=12324761#post12324761 forum topic]&lt;br /&gt;
&lt;br /&gt;
==== Script solution ====&lt;br /&gt;
&lt;br /&gt;
:Script by anion155, http://pastebin.com/1ALmnqx5.&lt;br /&gt;
:It can help you install &amp;amp; uninstall fglrx drivers for this configuration.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it is possible to work around the issue. First check if AMD&#039;s signature file has a proper signature:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/ati/signature&lt;br /&gt;
&lt;br /&gt;
If the file only contains the word &#039;&#039;UNSIGNED&#039;&#039;, replace the line with:&lt;br /&gt;
 9777c589791007f4aeef06c922ad54a2:ae59f5b9572136d99fdd36f0109d358fa643f2bd4a2644d9efbb4fe91a9f6590a145:f612f0b01f2565cd9bd834f8119b309bae11a1ed4a2661c49fdf3fad11986cc4f641f1ba1f2265909a8e34ff1699309bf211a7eb4d7662cd9f8e3faf14986d92f646f1bc&lt;br /&gt;
&lt;br /&gt;
Reboot and see if the watermark is gone. If not, try using a control file from a older version of Catalyst than the one you&#039;re running:&lt;br /&gt;
&lt;br /&gt;
 cd ~/; mkdir catalyst12.10; cd catalyst12.10/&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 unzip amd-driver-installer-catalyst-12.10-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-driver-installer-catalyst-12.10-x86.x86_64.run&lt;br /&gt;
 ./amd-driver-installer-catalyst-12.10-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/quantal/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
 &lt;br /&gt;
or specify all the correct parameters. For example:&lt;br /&gt;
 sudo dkms build -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
 sudo dkms install -m fglrx -v &#039;&#039;&#039;9.012&#039;&#039;&#039; -k &#039;&#039;&#039;3.5.0-22&#039;&#039;&#039;-generic&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10313</id>
		<title>Ubuntu Precise Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Ubuntu_Precise_Installation_Guide&amp;diff=10313"/>
		<updated>2013-11-14T23:33:31Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: k8EgXE I appreciate you sharing this blog article.Really looking forward to read more. Much obliged.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
k8EgXE I appreciate you sharing this blog article.Really looking forward to read more. Much obliged.&lt;br /&gt;
&lt;br /&gt;
= Updated Open Source Driver PPA&#039;s =&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;Ubuntu-X&amp;quot;&#039;&#039;&#039; : This PPA offers the latest stable releases of video driver-related components. Follow the instructions at: https://launchpad.net/~ubuntu-x-swat/+archive/x-updates&lt;br /&gt;
* &#039;&#039;&#039;Xorg-edgers&#039;&#039;&#039;: This bleeding-edge PPA offers video driver-related components straight from their code (git) repositories. Follow the instructions at: https://launchpad.net/~xorg-edgers/+archive/ppa&lt;br /&gt;
&lt;br /&gt;
= Installing Proprietary Drivers a.k.a. Catalyst/fglrx =&lt;br /&gt;
*PLEASE READ FIRST!&lt;br /&gt;
&#039;&#039;&#039;Which cards are no longer supported by ATI?&#039;&#039;&#039;&lt;br /&gt;
The ATI Radeon 9500-9800, Xpress200-1250, 690G, 740G, X300-X2500 (including Mobility RadeonHD 2300, since it is really a DirectX 9 part).  See the complete list [[9.4|here.]]&lt;br /&gt;
If your card is on that list, you are limited to open-source drivers on Ubuntu Lucid/10.04 (and later). If you really need the proprietary Catalyst/fglrx driver, you will have to use an older Linux distribution, such as Debian Lenny/5.0.x or Ubuntu Hardy/8.04.x.&lt;br /&gt;
{| WIDTH=&amp;quot;650&amp;quot; cellpadding=0 cellspacing=0 style=&amp;quot;background-color: red; border: solid 1px #666666; color: #ffffff; text-align: center;&amp;quot; &lt;br /&gt;
| style=&amp;quot;background-color: #666666; border: solid 1px #666666; border-bottom: 1px solid #888;&amp;quot; | &amp;lt;font size=&amp;quot;-1&amp;quot;&amp;gt;&#039;&#039;&#039;ATTENTION RADEON USERS&#039;&#039;&#039;&amp;lt;/font&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;br /&amp;gt;NOTE: If you enter your card information on AMD/ATI&#039;s driver page, it will offer you the Catalyst 9-3 driver to download. However, the Catalyst 9-3 driver doesn&#039;t support X servers past 1.5, and it will not work with Precise (or anything later than Lucid/10,04)! !!!SO BE CAREFUL!!! If you tried to install Catalyst on a system with one of these cards, see the &#039;Removing the Driver&#039; section to restore the default/pre-installed drivers.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| WIDTH=&amp;quot;650&amp;quot; cellpadding=0 cellspacing=0 style=&amp;quot;background-color: red; border: solid 1px #666666; color: #ffffff; text-align: center;&amp;quot; &lt;br /&gt;
| style=&amp;quot;background-color: #666666; border: solid 1px #666666; border-bottom: 1px solid #888;&amp;quot; | &amp;lt;font size=&amp;quot;-1&amp;quot;&amp;gt;&#039;&#039;&#039;ATTENTION RADEONHD 2x00-4xx0 series USERS&#039;&#039;&#039;&amp;lt;/font&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;br /&amp;gt;NOTE: The last Catalyst release to support your card is the 12-6 Legacy release:&lt;br /&gt;
|  wget http://www2.ati.com/drivers/legacy/12-6/amd-driver-installer-12.6-legacy-x86.x86_64.zip.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Using Ubuntu-supplied fglrx/Catalyst ==&lt;br /&gt;
&lt;br /&gt;
This may not give you the latest drivers, but should be safest. On Ubuntu Precise, this will install Catalyst 8.960, which is roughly equivalent to Catalyst 12-4. NOTE: You must have the restricted repository enabled in Applications -&amp;gt; Ubuntu Software Center -&amp;gt; Edit -&amp;gt; Software Sources... for this to work. After you complete the install, skip to [[Ubuntu_Precise_Installation_Guide#Generate_a_new_.2Fetc.2FX11.2Fxorg.conf_file|Generate a new /etc/X11/xorg.conf file]].&lt;br /&gt;
&lt;br /&gt;
=== Command line ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install fglrx fglrx-amdcccle&lt;br /&gt;
&lt;br /&gt;
=== GUI ===&lt;br /&gt;
&lt;br /&gt;
You must have jockey-common and jockey-gtk (or jockey-kde for Kubuntu) packages installed. For the default Ubuntu desktop (Unity), go to the dashboard home and search for &amp;quot;Additional Drivers&amp;quot; in the applications search field (or double-click the &amp;quot;available driver&amp;quot; notification icon) and activate the &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Installing Catalyst Manually (from AMD/ATI&#039;s site) ==&lt;br /&gt;
&lt;br /&gt;
I recommend copying and pasting the commands to ensure there are no typing mistakes and speed up the install process. Remember to use Ctrl &#039;&#039;&#039;+ Shift&#039;&#039;&#039; + V or Shift + Insert to paste into the terminal (or go to the terminals menu, select edit and click paste).&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Before you start&#039;&#039;===&lt;br /&gt;
If you have previously attempted installing Catalyst, remove any leftover files by following the [[#Removing_Catalyst.2Ffglrx| Removing the Driver]] section. Make sure &#039;&#039;universe&#039;&#039; and &#039;&#039;multiverse&#039;&#039; are enabled in your repository sources (System -&amp;gt; Administration -&amp;gt; Software Sources).&lt;br /&gt;
or Applications-&amp;gt;Ubuntu Software Center-&amp;gt;Edit-&amp;gt;Software sources-&amp;gt;Other software: check canonical partners.&lt;br /&gt;
&lt;br /&gt;
Install the prerequisite packages:&lt;br /&gt;
 sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot libqtgui4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If you are using the x86_64 architecture (64 bit)&#039;&#039;:&lt;br /&gt;
 sudo apt-get install lib32gcc1 &lt;br /&gt;
&lt;br /&gt;
If your &#039;&#039;/etc/modprobe.d/blacklist-local.conf&#039;&#039; contains &#039;&#039;blacklist fglrx&#039;&#039; make sure you comment out this line by adding a &#039;&#039;#&#039;&#039; in front of it.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Download the latest Catalyst package.&#039;&#039;===&lt;br /&gt;
This package contains both the 32-bit and 64-bit driver.&lt;br /&gt;
&lt;br /&gt;
 wget http://www2.ati.com/drivers/linux/amd-catalyst-13.9-linux-x86.x86_64.zip&lt;br /&gt;
 unzip amd-catalyst-13.9-linux-x86.x86_64.zip&lt;br /&gt;
 chmod +x amd-catalyst-13.9-linux-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Create and install .deb packages.&#039;&#039; ===&lt;br /&gt;
 sudo sh ./amd-catalyst-13.9-linux-x86.x86_64.run  --buildpkg Ubuntu/precise&lt;br /&gt;
 sudo dpkg -i fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
If building .deb packages fails, there is also an [http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide#Alternative_Manual_Installation Alternative Manual Installation]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;In case of failure:&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Remember these steps before you reboot your computer.&lt;br /&gt;
&lt;br /&gt;
If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.&lt;br /&gt;
&lt;br /&gt;
 sudo startx&lt;br /&gt;
&lt;br /&gt;
If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of &amp;quot;Could not stat /usr/lib64/fglrx/switchlibGL&amp;quot; which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/. &lt;br /&gt;
&lt;br /&gt;
If all else fails, revert your xorg.conf and reboot.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf.original-0 /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
This should return your original display.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Generate a new /etc/X11/xorg.conf file&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file.  It is entirely dependent on your configuration.  The following subsections will attempt to address possible (and tested) variations for their respective configurations.&lt;br /&gt;
&lt;br /&gt;
=== Generic Config ===&lt;br /&gt;
This will work for most people:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
=== Minimal Config ===&lt;br /&gt;
A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that&#039;s not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;ATI radeon 6870&amp;quot;&lt;br /&gt;
  Driver &amp;quot;fglrx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
=== X2/Dual GPU Cards ===&lt;br /&gt;
If you have an X2 card (e.g. 4870X2 or 5970), use... &#039;&#039;&#039;!!Do not use for two separate cards in crossfire!!&#039;&#039;&#039;&lt;br /&gt;
 sudo amdconfig --initial -f --adapter&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;all&lt;br /&gt;
&lt;br /&gt;
=== Dual/Multi Monitors ===&lt;br /&gt;
If you have a dual monitor display (also known as &amp;quot;Big Desktop&amp;quot;), use:&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
 sudo amdconfig --set-pcs-str&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;DDX,EnableRandR12,FALSE&amp;quot;&lt;br /&gt;
This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Force use of the new xorg.conf (if necessary)&#039;&#039;==&lt;br /&gt;
Some people find that changes to xorg.conf don&#039;t get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig &amp;lt;nowiki&amp;gt;--input=/etc/X11/xorg.conf --tls=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&#039;&#039;Test your installation&#039;&#039;==&lt;br /&gt;
&#039;&#039;&#039;NOTE: if you don&#039;t reboot first, fglrxinfo gives an error message.&#039;&#039;&#039;&lt;br /&gt;
Reboot the computer and type&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
display: :0.0  screen: 0&lt;br /&gt;
OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)&lt;br /&gt;
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and &lt;br /&gt;
Catalyst version you are using.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, try:&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
If you experience issues or a hang, you may need to disable fast TLS.&lt;br /&gt;
 sudo amdconfig --tls=0&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;Just in case&#039;&#039;===&lt;br /&gt;
Write down or remember this series of Alt+PrntScr key combinations, just in case your screen should go black and Ctrl+Alt+F1 and Ctrl+Alt+Backspace doesn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
Alt+PrntScr+r, Alt+PrntScr+s, Alt+PrntScr+e, Alt+PrntScr+i, Alt+PrntScr+n, Alt+PrntScr+u, Alt+PrntScr+b&lt;br /&gt;
&lt;br /&gt;
These key-presses will reboot the system safely. To remember the key-presses, remember this nonsensical phrase: &amp;quot;Raising Skinny Elephants Is Never Utterly Boring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An alternative would be to hold down Ctrl+Alt+SysRq (SysRq is usually the same key as PrintScreen) and type very slowly R E I S U B. A way to remember this is by inverting the word: &amp;quot;BUSIER&amp;quot; or remembering a phrase: &amp;quot;Restart Even If System Utterly Broken&amp;quot;. This would also safely shutdown the system.&lt;br /&gt;
&lt;br /&gt;
= Alternative Manual Installation =&lt;br /&gt;
WARNING: This method is incompatible with Debian/Ubuntu Filesystem Hierarchy and may cause issues, especially when trying to remove or upgrade Catalyst. It is highly recommended to build .deb pakages. USE AT OWN RISK.&lt;br /&gt;
&lt;br /&gt;
This is another method of manual installation that may work best for laptop users who have a hybrid setup (i.e. Intel HD onboard graphics with an AMD discrete GPU).&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
 ./amd-driver-installer-{{Catalystdashversion}}-x86/x86_64.run&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Install Driver on X.Org&amp;quot; rather than &amp;quot;Generate distribution specific driver package&amp;quot;. Select the &amp;quot;Automatic&amp;quot; install option.&lt;br /&gt;
&lt;br /&gt;
= Hardware Video Decode Acceleration (EXPERIMENTAL) =&lt;br /&gt;
&lt;br /&gt;
== Using XBMC player (XvBA) ==&lt;br /&gt;
&lt;br /&gt;
XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu&#039;s repositories. To install the XvBA-enabled version of xbmc:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-add-repository ppa:wsnipex/xbmc-xvba&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install xbmc&lt;br /&gt;
 sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1&lt;br /&gt;
&lt;br /&gt;
== Using the xvba-va Driver (VA-API) ==&lt;br /&gt;
This is confirmed to work for newer RadeonHD GPU&#039;s (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install xvba-va-driver libva-glx1 libva-x11-1 vainfo&lt;br /&gt;
 vainfo&lt;br /&gt;
&lt;br /&gt;
vainfo should return something like the following (and no errors):&lt;br /&gt;
      libva: libva version 0.32.0&lt;br /&gt;
      Xlib:  extension &amp;quot;XFree86-DRI&amp;quot; missing on display &amp;quot;:0.0&amp;quot;.&lt;br /&gt;
      libva: va_getDriverName() returns 0&lt;br /&gt;
      libva: Trying to open /usr/lib/dri/fglrx_drv_video.so&lt;br /&gt;
      libva: va_openDriver() returns 0&lt;br /&gt;
      vainfo: VA API version: 0.32&lt;br /&gt;
      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8&lt;br /&gt;
      vainfo: Supported profile and entrypoints&lt;br /&gt;
      VAProfileH264High               :	VAEntrypointVLD&lt;br /&gt;
      VAProfileVC1Advanced            :	VAEntrypointVLD&lt;br /&gt;
&lt;br /&gt;
If vainfo returns an error, you may need to create a symlink:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit&lt;br /&gt;
 sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit&lt;br /&gt;
      &lt;br /&gt;
Once you&#039;ve confirmed that vainfo is correct, you can test video playback. A good test player for xvba is VLC. You can enable xvba in Tools -&amp;gt; Preferences -&amp;gt; Input and Codecs. Check the box named &amp;quot;Use GPU acceleration (experimental)&amp;quot; and then restart VLC.&lt;br /&gt;
&lt;br /&gt;
=Updating Catalyst/fglrx=&lt;br /&gt;
&lt;br /&gt;
DO NOT try to install a new version over an old one. Follow the &#039;Removing Catalyst/fglrx&#039; section below to remove your existing driver, and then you can start at &#039;Downloading the latest Catalyst&#039; to install the new one.&lt;br /&gt;
&lt;br /&gt;
=Removing Catalyst/fglrx=&lt;br /&gt;
The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.&lt;br /&gt;
 sudo sh /usr/share/ati/fglrx-uninstall.sh&lt;br /&gt;
 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*&lt;br /&gt;
&lt;br /&gt;
If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see [https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver this Ubuntu wiki page]&lt;br /&gt;
 sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-ati&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup&lt;br /&gt;
 sudo rm -rf /etc/ati&lt;br /&gt;
&lt;br /&gt;
If you receive&lt;br /&gt;
&lt;br /&gt;
 $ E: Internal Error, No file name for libgl1-mesa-dri&lt;br /&gt;
&lt;br /&gt;
Change the third command above to:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core&lt;br /&gt;
&lt;br /&gt;
= Issues =&lt;br /&gt;
&lt;br /&gt;
== Video Tearing ==&lt;br /&gt;
&lt;br /&gt;
AMD/ATI claims that the &amp;quot;Tear Free Video&amp;quot; option is enabled by default, but that wasn&#039;t the case with Catalyst 12-3 installed on Kubuntu 12.04.&lt;br /&gt;
If you&#039;re having issues with tearing, make sure that &amp;quot;Tear Free Video&amp;quot; is on. You can find this option in the Catalyst Control Center under &#039;Display Options&#039; or you can use the following command:&lt;br /&gt;
 sudo amdconfig --sync-video=on&lt;br /&gt;
The option will not take effect until you restart X (i.e. log out).&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using compositing, you should also make sure that vsync is enabled in the compositor&#039;s settings. I found that vsync was enabled by default, but here are the appropriate settings should you want to experiment.&lt;br /&gt;
&lt;br /&gt;
=== kwin === &lt;br /&gt;
You can enable vsync for kwin in System Settings -&amp;gt; Desktop Effects -&amp;gt; Advanced tab&lt;br /&gt;
&lt;br /&gt;
=== Compiz (Unity/GNOME-Shell) ===&lt;br /&gt;
TODO: See if there&#039;s a friendlier way to make sure vsync is enabled without installing ccsm.&lt;br /&gt;
&lt;br /&gt;
Install the compiz settings manager: &lt;br /&gt;
 sudo apt-get install compizconfig-settings-manager&lt;br /&gt;
 ccsm&lt;br /&gt;
&lt;br /&gt;
The &#039;Sync to Vblank&#039; is found in the &#039;OpenGL&#039; subsection of the &#039;General&#039; group&lt;br /&gt;
&lt;br /&gt;
== Hybrid Graphics and Catalyst==&lt;br /&gt;
&lt;br /&gt;
There are two basic types of hybrid designs. Older hybrid systems use a multiplexor (mux) to switch between GPU&#039;s. Newer systems (those with PowerXpress &amp;gt;= 4.0) are muxless. As far as I can tell, PowerXpress 4.0 started with RadeonHD 6000-series GPU&#039;s, and systems with older ATI GPU&#039;s have a mux, but don&#039;t quote that.&lt;br /&gt;
&lt;br /&gt;
=== ATI/ATI Hybrids ===&lt;br /&gt;
As of Catalyst 11-8, switching between two ATI cards (and maybe Intel/ATI muxless too?) is supposed to be doable, though I don&#039;t know if that applies to all ATI/ATI hybrids or only the muxless ones. One would use amdconfig&#039;s PowerXpress options to switch back and forth between the integrated and discrete cards, like so:&lt;br /&gt;
&lt;br /&gt;
 amdconfig --pxl            # List current activated GPU&lt;br /&gt;
 sudo amdconfig --px-dgpu   # Activate discrete GPU (High-Performance mode), must re-start X to take effect&lt;br /&gt;
 sudo amdconfig --px-igpu   # Activate integrated GPU (Power-Saving mode), must re-start X to take effect&lt;br /&gt;
&lt;br /&gt;
After switching, one would log out and back in to restart X.&lt;br /&gt;
&lt;br /&gt;
=== Intel/ATI Hybrids ===&lt;br /&gt;
&lt;br /&gt;
Follow GUI Installation and choose the basic one &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot;. Let the install finish and it will ask you to reboot. Do not REBOOT.&lt;br /&gt;
&lt;br /&gt;
Make a backup of your xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig&lt;br /&gt;
&lt;br /&gt;
Generate a new config:&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --initial -f&lt;br /&gt;
&lt;br /&gt;
Force use of the new xorg.conf.&lt;br /&gt;
&lt;br /&gt;
 sudo amdconfig --input=/etc/X11/xorg.conf --tls=1&lt;br /&gt;
&lt;br /&gt;
Run the following commands to confim your new settings:&lt;br /&gt;
&lt;br /&gt;
 fglrxinfo&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 fgl_glxgears&lt;br /&gt;
&lt;br /&gt;
Once all done, Reboot. &lt;br /&gt;
&lt;br /&gt;
Relogin and try the following command to see your Graphics card status:&lt;br /&gt;
&lt;br /&gt;
 sudo lshw -C display&lt;br /&gt;
&lt;br /&gt;
Re-open &amp;quot;Additional Drivers&amp;quot; settings and you will see &amp;quot;ATI/AMD proprietary FGLRX graphics driver&amp;quot; status as &amp;quot;This driver is activated and currently in use&amp;quot;. Open &amp;quot;AMD Catalyst Control Center&amp;quot; to see more options. &lt;br /&gt;
&lt;br /&gt;
Tested on my Intel Gen 2/RadeonHD7550 gfx cards on a Samsung NP530U4B-S01AU Laptop. This solved a general overheating and crashing of AMD Catalyst Control Center issues.&lt;br /&gt;
&lt;br /&gt;
Extra: I completely solved overheating issue with Jupiter Applet. (http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html) on the same laptop. More comments on this would be appreciated.&lt;br /&gt;
&lt;br /&gt;
== Build Fails and Log Shows &amp;quot;mixed implicit and normal rules.  Stop.&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
If the installation fails and you find the above message in /var/lib/dkms/fglrx/&amp;lt;version_number&amp;gt;/build/make.log, it may be because you&#039;re using a pentium-build wrapper around gcc. See what the following ls command returns:&lt;br /&gt;
 ls -la /usr/bin/gcc&lt;br /&gt;
If it shows that gcc is a link to builder-cc, temporarily redirect the link to point to the real gcc (gcc-4.6 in Ubuntu Precise). This should allow you to install fglrx:&lt;br /&gt;
 sudo ln -sf /usr/bin/gcc-4.6 /usr/bin/gcc&lt;br /&gt;
When you&#039;re finished installing the driver, return the gcc link to its original value:&lt;br /&gt;
 sudo ln -sf /usr/bin/builder-cc /usr/bin/gcc&lt;br /&gt;
Launchpad link for this bug: https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/555957&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot; (on 64-bit systems) ==&lt;br /&gt;
Most likely, you probably did not have the ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 packages installed beforehand. If you have a 64 bit install, the above dpkg command may complain that &amp;quot;Errors were encountered while processing: fglrx-amdcccle&amp;quot;.  This is because of a dependency of the amdccle package on 32 bit libraries.  If you receive this error, use the following command, which will force the installation of all of the 32 bit dependencies, and then the amdcccle package:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
Catalyst {{Template:Catalystversion}} on 64-bit systems may require the &#039;&#039;--force-overwrite&#039;&#039; command in the above &#039;&#039;dpkg&#039;&#039; command:&lt;br /&gt;
 sudo dpkg -i --force-overwrite fglrx*.deb&lt;br /&gt;
&lt;br /&gt;
== Problems Starting Xserver ==&lt;br /&gt;
&lt;br /&gt;
If you get a black screen hang, the first thing to check is if xorg.conf is the problem.&lt;br /&gt;
&lt;br /&gt;
You can disable the xorg.conf with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.disabled&lt;br /&gt;
&lt;br /&gt;
Reboot and check to see if things work now.&lt;br /&gt;
&lt;br /&gt;
You can reinstate the file with:&lt;br /&gt;
 sudo mv /etc/X11/xorg.conf.disabled /etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
Before tweaking ACPI settings, try ensuring /dev/null is chmodded to 0666. This intermittently changes when using the nano (and possibly other) editors with sudo and the group/world permissions are unset. This leads to the ATI drivers hanging on boot or otherwise. A quick and dirty init script saved as /etc/init/chmodnull does the trick -&lt;br /&gt;
&lt;br /&gt;
 start on filesystem&lt;br /&gt;
&lt;br /&gt;
 script&lt;br /&gt;
	chmod 0666 /dev/null&lt;br /&gt;
	chmod 0666 /lib/udev/devices/null&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
This has been tested using Ubuntu 10.04 64-bit on a ATI Radeon HD 4830 (HP Envy 15-1060ea). It&#039;s worth noting that I had to disable TLS  (amdconfig --tls=0) to get things to stay stable!&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve properly installed the driver, but experience problems when starting the X server, such as hanging, black/white/gray screen, distortion, etc., your system BIOS may have a buggy ACPI implementation. To work around, press Ctrl+Alt+F1 to get to a terminal (or failing that, boot to recovery mode) and run:&lt;br /&gt;
 sudo amdconfig --acpi-services=off&lt;br /&gt;
If this method works, you should consider checking your system vendor&#039;s BIOS changelogs for relevant ACPI fixes, updating your BIOS, and reenabling the driver&#039;s ACPI services.&lt;br /&gt;
&lt;br /&gt;
== Unsupported Hardware Watermark ==&lt;br /&gt;
This can happen if your card&#039;s PCI ID wasn&#039;t officially certified to work with a particular version of Catalyst. It does not necessarily mean that your card is unsupported, but it does mean that you shouldn&#039;t file bugs with that particular card/driver combination. If you installed the driver by downloading it from AMD/ATI, installing a newer version of Catalyst will probably help. &lt;br /&gt;
&lt;br /&gt;
If you installed the proprietary driver included with Ubuntu or you do not want to upgrade to a newer version, it may be possible to work around the issue by using a control file from a older version of Catalyst than the one you&#039;re running.&lt;br /&gt;
 cd ~/; mkdir catalyst12.4; cd catalyst12.4/&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://www2.ati.com/drivers/linux/amd-driver-installer-&amp;lt;/nowiki&amp;gt;12-4-x86.x86_64.run&lt;br /&gt;
 chmod +x amd-driver-installer-12-4-x86.x86_64.run&lt;br /&gt;
 sh amd-driver-installer-12-4-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo mv /etc/ati/control ~/control.bak&lt;br /&gt;
 sudo cp driver/common/etc/ati/control /etc/ati&lt;br /&gt;
&lt;br /&gt;
== Hang at logout ==&lt;br /&gt;
&lt;br /&gt;
If you experience hangs when logging out (of X) it is probably due to the /etc/ati/authatieventsd.sh script looking for X authorization files in the wrong place when it starts up. You can kill the hanging authatieventsd.sh processes from a console tty to allow the shutdown of the X server.&lt;br /&gt;
&lt;br /&gt;
Before the following commands verify that /etc/ati/authatieventsd.sh exists after build and install, if not just do: &lt;br /&gt;
(assuming that the installer is in the directory we used to install)&lt;br /&gt;
&lt;br /&gt;
 cd ~/catalyst{{Catalystversion}}&lt;br /&gt;
 sh amd-driver-installer-{{Catalystversion}}-x86.x86_64.run --extract driver&lt;br /&gt;
 sudo cp driver/packages/Ubuntu/dists/lucid/replacements/authatieventsd.sh /etc/ati/authatieventsd.sh&lt;br /&gt;
 sudo chmod +x /etc/ati/authatieventsd.sh&lt;br /&gt;
&lt;br /&gt;
This problem can be fixed permanently with:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/lib/xdm/authdir&lt;br /&gt;
 sudo ln -s /var/run/xauth /var/lib/xdm/authdir/authfiles&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work then you can disable atieventsd with this command:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/sbin/update-rc.d -f atieventsd remove&lt;br /&gt;
&lt;br /&gt;
You&#039;ll have to restart for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t remove fglrx with dpkg (diversion issue) ==&lt;br /&gt;
&lt;br /&gt;
If dpkg refuses to remove an fglrx package and complains about a diversion of a file, you might need to manually remove it. For example, if dpkg complains:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-divert: mismatch on divert-to&lt;br /&gt;
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/share/fglrx/diversions/libGL.so.1.2 by xorg-driver-fglrx&#039;&lt;br /&gt;
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
 sudo dpkg-divert --remove /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
== This module/version combo is already installed ==&lt;br /&gt;
&lt;br /&gt;
If you get this error-message, simply uninstall the previous version before installing the new one with:&lt;br /&gt;
 sudo dkms remove -m fglrx --all&lt;br /&gt;
&lt;br /&gt;
== New kernel installed? ==&lt;br /&gt;
In theory, DKMS should automatically install the fglrx kernel module for your new kernel the first time you boot it. Should you need to manually install it:&lt;br /&gt;
 sudo dkms build -m fglrx -k `uname -r`&lt;br /&gt;
 sudo dkms install -m fglrx -k `uname -r`&lt;br /&gt;
&lt;br /&gt;
if amdcccle doesn&#039;t work and says Identifier is not a valid word. Use lower case letter in xorg.conf&lt;br /&gt;
[[Category:Installation Documentation]]&lt;br /&gt;
&lt;br /&gt;
== amdconfig not found after installation ==&lt;br /&gt;
This scenario is possible when the driver installation has seemingly succeeded and is possibly related to previous fglrx installs, including those through Jockey (i.e. you first used drivers provided by Ubuntu but then upgraded to ones available from AMD&#039;s website). When doing amdconfig --initial after driver installation, you might end up not having the amdconfig available at all:&lt;br /&gt;
&amp;lt;pre&amp;gt;amdconfig: command not found&amp;lt;/pre&amp;gt;&lt;br /&gt;
After booting you might receive X error &#039;(EE) Failed to load module &amp;quot;fglrx&amp;quot; (module does not exist, 0)&#039;. These do not necessarily indicate that the installation has failed completely. On command line, do&lt;br /&gt;
 ls /usr/lib/fglrx/bin&lt;br /&gt;
and see if the command lists some Ati related programs. If they are listed but not found from /usr/bin, it is possible that the &amp;quot;update-alternatives&amp;quot; fglrx .deb installation does has been ignored. See man update-alternatives for more information about the concept and workings of alternatives. In practice, update-alternatives is supposed to create several symbolic links to the files in the fglrx directory, but it will be ignored if the alternatives for the very related gl_conf entry has been set to manual. Do&lt;br /&gt;
 update-alternatives --get-selections | grep gl_conf&lt;br /&gt;
and see if the mode is manual instead of auto and if mesa is mentioned instead of fglrx in the path that is printed. In this case you need to &lt;br /&gt;
 sudo update-alternatives --set gl_conf /usr/lib/fglrx/ld.so.conf&lt;br /&gt;
to set fglrx as the active alternative. You can alternatively (no pun intended) and additionally change the gl_conf into automatic mode before the installation this way:&lt;br /&gt;
 sudo update-alternatives --auto gl_conf&lt;br /&gt;
After that, the alternatives should automatically be configured correctly when the graphics driver .debs are installed.&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;update-alternatives: error&amp;quot; during install ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/fglrx_drv: No such file or directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can be easily solved by creating directory &amp;quot;drivers&amp;quot; under /usr/lib/xorg/modules/&lt;br /&gt;
 sudo mkdir /usr/lib/xorg/modules/drivers&lt;br /&gt;
&lt;br /&gt;
== &#039;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&#039; during deb generation ==&lt;br /&gt;
During installation you may receive the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;Can&#039;t exec &amp;quot;debian/rules&amp;quot;: Permission denied at /usr/bin/dpkg-buildpackage line 507.&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can happen when your /tmp folder is mounted with the option &amp;quot;noexec&amp;quot;. The noexec is suggested by many howtos regarding Ubuntu on SSD, when placing the /tmp in memory.&lt;br /&gt;
A workaround can be found here: [http://serialized.net/2010/03/getting-around-tmpfs-noexec-problems/]&lt;br /&gt;
&lt;br /&gt;
== Errors during deb generation ==&lt;br /&gt;
You may recieve errors if you do not have devscripts, dh-make, execstack and dh-modaliases installed. Run apt-get to install, and the errors go away and the deb is generated correctly.&lt;br /&gt;
&lt;br /&gt;
If you recieve the error dpkg-buildpackage: not found:&lt;br /&gt;
 sudo apt-get install devscripts&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh: command not found:&lt;br /&gt;
 sudo apt-get install dh-make&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: execstack: Command not found:&lt;br /&gt;
 sudo apt-get install execstack&lt;br /&gt;
&lt;br /&gt;
If you recieve the error make: dh_modaliases: Command not found:&lt;br /&gt;
 sudo apt-get install dh-modaliases&lt;br /&gt;
&lt;br /&gt;
== Black screen after uninstalling old amd drivers ==&lt;br /&gt;
Start you computer in recovery mode and exit to root shell.&lt;br /&gt;
Remount your partitions in rw mode:&lt;br /&gt;
 mount -rw -o remount /&lt;br /&gt;
 ...&lt;br /&gt;
Go to your download directory and proceed with building and installing the drivers in recovery mode.&lt;br /&gt;
All should be fine after a reboot.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10312</id>
		<title>Gentoo Installation Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Gentoo_Installation_Guide&amp;diff=10312"/>
		<updated>2013-11-14T23:07:53Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: IxV6Yf Im thankful for the blog post.Much thanks again. Great.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Orginally found on the [http://gentoo-wiki.com/HOWTO_ATI_Drivers Gentoo Wiki], the GNU Free Documentation license allows me to copy/paste it here.&lt;br /&gt;
&lt;br /&gt;
IxV6Yf Im thankful for the blog post.Much thanks again. Great.&lt;br /&gt;
&lt;br /&gt;
== Kernel Configuration ==&lt;br /&gt;
&lt;br /&gt;
Get into menuconfig (cd /usr/src/your-kernel &amp;amp;&amp;amp; make menuconfig) and check the following:&lt;br /&gt;
{{Box Code|menuconfig|&amp;lt;pre&amp;gt;&lt;br /&gt;
Loadable Module Support ---&amp;gt;&lt;br /&gt;
 [*] Enable loadable module support&lt;br /&gt;
   [*]   Module unloading &lt;br /&gt;
&lt;br /&gt;
Processor type and features  ---&amp;gt;&lt;br /&gt;
 [*] Enable VM86 support&lt;br /&gt;
 [*] MTRR (Memory Type Range Register) support&lt;br /&gt;
&lt;br /&gt;
Bus options (PCI etc.)  ---&amp;gt;&lt;br /&gt;
 [*] Message Signaled Interrupts (MSI and MSI-X)&lt;br /&gt;
&lt;br /&gt;
Device Drivers ---&amp;gt;&lt;br /&gt;
 Graphics Support ---&amp;gt; &lt;br /&gt;
  &amp;lt;M&amp;gt; /dev/agpgart (AGP Support)  &lt;br /&gt;
    &amp;lt;M&amp;gt; Your_AGP_Chipset_Here&lt;br /&gt;
  [ ] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)&lt;br /&gt;
&lt;br /&gt;
 Graphics support ---&amp;gt;&lt;br /&gt;
  [ ]  Support for framebuffer devices&lt;br /&gt;
&lt;br /&gt;
Kernel Hacking ---&amp;gt;&lt;br /&gt;
  [ ] Kernel debugging&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
Sync your kernel menuconfig with the selected portions posted here. (note: you can compile /dev/agpgart &amp;amp; your agp chipset [most likely ati-agp] into the kernel if you want.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please be aware that -mm and -rc(1,2,3,4,...) kernels often break fglrx due to unexpected changes in syntax, etc. If you want to use ati-drivers, use the stock gentoo-sources or at the very least, a STABLE 2.4 or 2.6 kernel!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Don&#039;t forget to compile, install, and reboot into the kernel. Directions for this are beyond the scope of this file; if you need help recompiling the kernel, [http://gentoo-wiki.com/HOWTO_Compile_a_Kernel_Manually click here].&lt;br /&gt;
&lt;br /&gt;
== Grabbing a Driver Set ==&lt;br /&gt;
===Preparation===&lt;br /&gt;
Note: All next commands at a shell must execute as root!&lt;br /&gt;
&lt;br /&gt;
For installation it will be easier to drop out of X to a command prompt. Do this using whatever command your Window Manager uses. &lt;br /&gt;
I use fluxbox so it&#039;s just rightclick -&amp;gt; fluxbox menu -&amp;gt; exit. For KDE or GNOME it&#039;s probably just a matter of logging out. When all else fails, hit CTL+ALT+BACKSPACE to kill the X server ungracefully. &lt;br /&gt;
&lt;br /&gt;
If the X server only reboots or for some reason you&#039;ve disabled this hotkey bring the system run level down with:&lt;br /&gt;
 init 3&lt;br /&gt;
&lt;br /&gt;
There is also the possibility to stop the xdm service:&lt;br /&gt;
 /etc/init.d/xdm stop&lt;br /&gt;
&lt;br /&gt;
To prevent start at next reboot prevent the run script from execution with:&lt;br /&gt;
 rc-update del xdm&lt;br /&gt;
&lt;br /&gt;
If you have not already done it recently, start by synchronizing your portage tree:&lt;br /&gt;
&lt;br /&gt;
 emerge --sync&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
Now let&#039;s install the drivers. Note: ati-drivers-extra is not available anymore.&lt;br /&gt;
&lt;br /&gt;
 emerge -av ati-drivers&lt;br /&gt;
&lt;br /&gt;
The next step is switch to the ATi OpenGL subsytem:&lt;br /&gt;
&lt;br /&gt;
 eselect opengl set ati&lt;br /&gt;
&lt;br /&gt;
===Configuration of X===&lt;br /&gt;
First, move your old configuration file (or delete it).&lt;br /&gt;
 cd /etc/X11&lt;br /&gt;
 mv xorg.conf xorg.conf.old&lt;br /&gt;
&lt;br /&gt;
This point was not necessary at my last tests, but do this if something failed. Make a standard config file:&lt;br /&gt;
 cd /etc/X11&lt;br /&gt;
 Xorg -configure&lt;br /&gt;
 cp xorg.conf.new xorg.conf&lt;br /&gt;
&lt;br /&gt;
Now lets make &#039;&#039;aticonfig&#039;&#039; the rest of configuration.&lt;br /&gt;
&lt;br /&gt;
For a single screen:&lt;br /&gt;
&lt;br /&gt;
 aticonfig --initial --input=/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
For a dual head, second screen is {left|right|above|below}&lt;br /&gt;
&lt;br /&gt;
 aticonfig --initial=dual-head --input=/etc/X11/xorg.conf --screen-layout={left|right|above|below}&lt;br /&gt;
&lt;br /&gt;
Adapt input with your path to xorg&#039;s conf file&lt;br /&gt;
&lt;br /&gt;
If for some reason this command doesn&#039;t work, then try manually executing from its default location:&lt;br /&gt;
&lt;br /&gt;
 /opt/ati/bin/aticonfig [...]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Test your graphics card===&lt;br /&gt;
Now, let&#039;s get back into X.&lt;br /&gt;
&lt;br /&gt;
 startx&lt;br /&gt;
&lt;br /&gt;
Or start with init script and login:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/xdm start&lt;br /&gt;
&lt;br /&gt;
Open up a command prompt and run:&lt;br /&gt;
&lt;br /&gt;
 glxinfo&lt;br /&gt;
&lt;br /&gt;
If the OpenGL vendor string says &amp;quot;ATI Technologies,&amp;quot; then congrats! You&#039;ve got the drivers working and hardware acceleration going great. If not...read on...&lt;br /&gt;
&lt;br /&gt;
===Test latest drivers===&lt;br /&gt;
Getting the latest drivers will probably mean unmasking them before emerging.&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;x11-drivers/ati-drivers ~arch&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
Replace {{Codeline|&amp;lt;~arch&amp;gt;}} with your system architecture; it&#039;s going to be either {{Codeline|~x86}} or {{Codeline|~amd64}}, the only two CPU architectures supported by the ATI driver.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
===Wrong resolution===&lt;br /&gt;
Often the EDID information can&#039;t read correctly from monitor. Therefore first remove all kvm switches, hdmi switches or hdmi matrices between your monitor and output of your graphics card. At the moment (ati-drivers-10.12) the options &amp;quot;NoDDC&amp;quot;, &amp;quot;UseEdidFreqs&amp;quot; &amp;quot;0&amp;quot;, &amp;quot;IgnoreEDID&amp;quot; &amp;quot;on&amp;quot; seems to be not working. Also Option &amp;quot;CustomEDID&amp;quot; do not work with fglrx driver.&lt;br /&gt;
&lt;br /&gt;
=== Config Files ===&lt;br /&gt;
By default, the driver uses the Internal AGPGART. Sometimes the internal one doesn&#039;t work, and you will have to use the one provided with the kernel. Search your xorg.conf for the line that has the option &amp;quot;UseInternalAGPGART.&amp;quot; Simply change the &amp;quot;yes&amp;quot; to &amp;quot;no.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
 Option &amp;quot;UseInternalAGPGART&amp;quot; &amp;quot;no&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now simply add the modules to {{Filename|/etc/modules.autoload.d/kernel-2.x}} where x is your kernel version. &lt;br /&gt;
&lt;br /&gt;
Add the following (ORDER IS VERY IMPORTANT);&lt;br /&gt;
{{Box File|/etc/modules.autoload.d/kernel-2.x|&lt;br /&gt;
 agpgart&lt;br /&gt;
 intel-agp # change intel-agp to your chipset. eg: via-agp, nvidia-agp sis-agp.&lt;br /&gt;
 fglrx&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally, run&lt;br /&gt;
&lt;br /&gt;
 modules-update&lt;br /&gt;
&lt;br /&gt;
Then you can reboot and everything should work. If you have are having problems, check dmesg and /var/log/Xorg.0.log for more info.&lt;br /&gt;
&lt;br /&gt;
=== Blank screen or monitor turning off after startx ===&lt;br /&gt;
&lt;br /&gt;
Versions of ati-drivers &amp;gt;= 8.16.20 (and probably &amp;lt;= 8.20.8) have an issue with this that&#039;s easily corrected by inserting:&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
     Option &amp;quot;ForceMonitors&amp;quot; &amp;quot;notv&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
in the device section of xorg.conf (discussed here: http://bugs.gentoo.org/show_bug.cgi?id=103028)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check if you have a non-DDC monitor connected via VGA/HD15 connector. If so change your xorg.conf:&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
 #   Option &amp;quot;DesktopSetup&amp;quot;               &amp;quot;0x00000000&amp;quot;&lt;br /&gt;
     Option &amp;quot;MonitorLayout&amp;quot;              &amp;quot;NONE, CRT&amp;quot;&lt;br /&gt;
     Option &amp;quot;IgnoreEDID&amp;quot;                 &amp;quot;off&amp;quot;&lt;br /&gt;
     Option &amp;quot;HSync2&amp;quot;                     &amp;quot;30-85&amp;quot;&lt;br /&gt;
     Option &amp;quot;VRefresh2&amp;quot;                  &amp;quot;50-160&amp;quot;&lt;br /&gt;
 #   Option &amp;quot;ScreenOverlap&amp;quot;              &amp;quot;0&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
where HSync2 and VRefresh2 are your monitor parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, try changing the MonitorLayout option. The default is &amp;quot;AUTO, AUTO&amp;quot;, which is to say X will attempt to autodetect what kind of monitor you&#039;ve got on the first and second display heads. This can theoretically fail (though I have never observed it). Try changing it around a bit. For example, if you have an LCD and no secondary monitor, change the line to read:&lt;br /&gt;
&lt;br /&gt;
{{Box File|xorg.conf|&lt;br /&gt;
     Option &amp;quot;MonitorLayout&amp;quot;              &amp;quot;TMDS, NONE&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
if you have a CRT, simply replace &amp;quot;TMDS&amp;quot; with &amp;quot;CRT&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Crashes on startup ===&lt;br /&gt;
&#039;&#039;&#039;If you are unable to use any 3d applications and get this error instead:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
 fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
 fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!&lt;br /&gt;
 FGLTexMgr: open of shared memory object failed (Function not implemented)&lt;br /&gt;
 __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Then you do not have tmpfs mounted on /dev/shm, which the driver requires.&#039;&#039;&#039; Make yourself sure you have tmpfs support compiled into kernel. It&#039;s under&lt;br /&gt;
&lt;br /&gt;
    File systems --&amp;gt;&lt;br /&gt;
        Pseudo filesystems --&amp;gt;&lt;br /&gt;
            [*] Virtual memory file system support (former shm fs)&lt;br /&gt;
&lt;br /&gt;
To mount this, add to following line to {{filename|/etc/fstab}} (if it isn&#039;t there already):&lt;br /&gt;
&lt;br /&gt;
{{Box File|/etc/fstab|&lt;br /&gt;
 tmpfs     /dev/shm           tmpfs        defaults            0 0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then just do a:&lt;br /&gt;
 mount /dev/shm&lt;br /&gt;
&lt;br /&gt;
If the drivers still crap out on you, or for example you get a black screen on X init, try going into your system BIOS and change graphics-related stuff around. Believe it or not, for me my 9800 gives a black screen on X init if I have the AGP Aperture set at anything other than 128MB. I don&#039;t know what causes this, and I don&#039;t care; I&#039;m just relating to you how I overcame &#039;&#039;my&#039;&#039; problem ;)&lt;br /&gt;
&lt;br /&gt;
Also, &#039;&#039;&#039;whenever you update your compiler&#039;&#039;&#039;, you &#039;&#039;&#039;must&#039;&#039;&#039; recompile your kernel otherwise you won&#039;t be able to insert the fglrx module. Note that recompiling your kernel means you must also unmerge/emerge ati-drivers!&lt;br /&gt;
&lt;br /&gt;
=== Duplicate symbol errors in X log ===&lt;br /&gt;
If you are unable to start X or X fails to load the fglrx driver and you have multiple symbol errors in your Xorg log, chances are that you have compiled X with the &#039;&#039;dlloader&#039;&#039; flag.  This flag can not be used with the fglrx driver.  To fix this problem, remove the dlloader flag by editing your /etc/portage/package.use file as follows:&lt;br /&gt;
{{Box File|/etc/portage/package.use|&lt;br /&gt;
 x11-base/xorg-x11 -dlloader&lt;br /&gt;
}}&lt;br /&gt;
Now re-emerge the &#039;&#039;xorg-x11&#039;&#039; package and reinstall the fglrx driver.&lt;br /&gt;
&lt;br /&gt;
=== Crashes on the exit of X.org / X won&#039;t shutdown ===&lt;br /&gt;
Perform the following if you can get the fglrx drivers working with hardware acceleration, but are suffering from a complete system crash when trying to quit X. You should boot into your system, login, then start on this. You don&#039;t need to boot into X, and shouldn&#039;t need to edit your xorg.conf file (as fglrx is already setup as the driver and working)&lt;br /&gt;
&lt;br /&gt;
You&#039;ve emerged the &amp;quot;stable&amp;quot; version of the ati-drivers, these are out of date -- remove them (emerge --unmerge ati-drivers), to add the most recent you should either add them to the keywords file (/etc/portage/package.keywords) or emerge your local ebuild (emerge /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.22.5.ebuild) if you&#039;re told it requires a dependency, emerge the local e-build for that, then try again. (usually eselect-opengl is required.)&lt;br /&gt;
Once you have the most recent ati-drivers emerged, run (eselect opengl set ati). Now you can (startx) and hopefully quit without any problems. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== glxinfo says &amp;quot;error: failed to open DRM: Operation not permitted&amp;quot;  ===&lt;br /&gt;
If a check with the glxinfo fails for ordinary users though works fine for root it might be related to filepermissions of the device-file.&lt;br /&gt;
Here is how to solve it:&lt;br /&gt;
&lt;br /&gt;
Make sure that the filepermissions on the card-device allows the video-group to read and write. The common group in gentoo with X is &amp;quot;video&amp;quot;. All normal users should be part of this group. Also, the device must have permissions for this group to read and write the card-device.&lt;br /&gt;
&lt;br /&gt;
Check the permissions on the card-device:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:/#ls -lcF /dev/dri/card0&lt;br /&gt;
crw-rw---- 1 root root 226, 0 Oct  5 16:19 /dev/dri/card0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can be changed with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:/dev/dri#chgrp video card0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if user is part of video:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paddlaren:~&amp;gt;id paddlaren&lt;br /&gt;
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),80(cdrw),85(usb),100(users),35(games)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a user to the video-group:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root:~#gpasswd -a my_user video&lt;br /&gt;
&lt;br /&gt;
paddlaren:~&amp;gt;id paddlaren&lt;br /&gt;
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),27(video),80(cdrw),85(usb),100(users),35(games)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Logoff and on to ensure that the membership of the group is known to the system.&lt;br /&gt;
&lt;br /&gt;
==Some differences to open source driver &amp;quot;radeon&amp;quot;==&lt;br /&gt;
This information&#039;s was extracted from the file /var/log/Xorg.0.log.&lt;br /&gt;
&lt;br /&gt;
===Detected outputs===&lt;br /&gt;
The naming looks better at &#039;&#039;radeon&#039;&#039;. See example for HD5770 (1xHDMI, 2xDVI, 1x DisplayPort):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;fglrx&#039;&#039;: DFP1 (physical HDMI-0 on radeon?), DFP2 (physical DVI-0 on radeon?), DFP3 (physical DVI-1 on radeon!), DFP4 (physical DisplayPort-0 on radeon?), CRT1, CRT2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;radeon&#039;&#039;: HDMI-0, DVI-0, DVI-1, DisplayPort-0&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[http://ati.cchtml.com/ ATi Unofficial Bugzilla (occasionally monitored by ATi personnel)]&lt;br /&gt;
*Check out user Wedge_&#039;s excellent ATI Radeon [http://odin.prohosting.com/wedge01/gentoo-radeon-faq.html FAQ here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Documentation]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10311</id>
		<title>Slackware: ATI SlackBuild (ENG)</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Slackware:_ATI_SlackBuild_(ENG)&amp;diff=10311"/>
		<updated>2013-11-14T20:07:12Z</updated>

		<summary type="html">&lt;p&gt;37.233.27.142: 2KjaBI I really like and appreciate your blog post.Thanks Again. Much obliged.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Per http://wiki.cchtml.com/index.php/Slackware:_ATI_SlackBuild_(ENG) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2KjaBI I really like and appreciate your blog post.Thanks Again. Much obliged.&lt;br /&gt;
&lt;br /&gt;
= Proprietary ATI Drivers and ATI Catalyst =&lt;br /&gt;
Since 21 November 2007, ATI drivers have changed the name and the number version. The new drivers, which were first mentioned only as Proprietary ATI Driver, are now called ATI Catalyst. Moreover, the version number has passed from 8.XX.X to 7.XX.&lt;br /&gt;
&lt;br /&gt;
When in this wiki we will talk about drivers version &amp;lt;8.37.6, we will refer implicitly to the old driver, such as Proprietary ATI Driver, while the new ATI Catalyst have a number version &amp;gt;= 8.37.6, even if, for instance, have a release number 7.11.&lt;br /&gt;
&lt;br /&gt;
= Getting all the necessary =&lt;br /&gt;
The installer can be downloaded from the [http://ati.amd.com/support/driver.html official web site] directly.&lt;br /&gt;
{{Warning|Warning|If the downloaded driver version is less than 8.37.6, then you need to know from now that it will not work onto X.Org 7.2 server (or 1.3) or later.}}&lt;br /&gt;
{{Helpful Hint|Note|Drivers for x86 and x86_64 architectures are equivalent. The installer contains files for both architectures, then It will be the compilation process and the package creation process to choose the appropriate files.&lt;br /&gt;
This means that the SlackBuild will be good for Slackware, Slackware64 and for Slackware 64-bit portings (Slamd64, Bluewhite64, etc. ...).}}&lt;br /&gt;
&lt;br /&gt;
Since drivers also contain a kernel module which will be compiled directly on your system, you&#039;ll need the kernel source in use.&lt;br /&gt;
&lt;br /&gt;
= How to create Slackware packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
For these drivers will be produced two packages (see [[#What do created packages contain?]]).&lt;br /&gt;
=== Drivers version &amp;lt; 8.37.6 (external SlackBuild) ===&lt;br /&gt;
For these types of drivers I&#039;ve created an &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; for Slackware and I made [http://www.slacky.eu/~spina/fglrx/ati-slack-packager-1.1.9-noarch-1.tgz this package].&lt;br /&gt;
&lt;br /&gt;
To create Slackware packages simply run:&lt;br /&gt;
 #&amp;gt; installpkg ati-slack-packager-1.1.9-noarch-1.tgz&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -- buildpkg custom-package/Slackware&lt;br /&gt;
&lt;br /&gt;
=== Drivers version &amp;gt;= 8.37.6 or new ATI Catalyst (internal SlackBuild) ===&lt;br /&gt;
For these drivers I&#039;ve sent the SlackBuild directly to ATI which inserted it into the installer, then simply run:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/All&lt;br /&gt;
or, if drivers are quite recent, it suffices:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg&lt;br /&gt;
Otherwise, in order to create and install directly the packages you can use (always with recent versions of the driver):&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildandinstallpkg&lt;br /&gt;
&lt;br /&gt;
此处的意思是：如果是新装的系统，直接运行本处的最后一个命令即可同时完成创建包和安装包的过程。&lt;br /&gt;
&lt;br /&gt;
=== What do created packages contain? ===&lt;br /&gt;
The two packages created by SlackBuild, that we&#039;ll call &#039;&#039;fglrx-module&#039;&#039; and &#039;&#039;fglrx-x&#039;&#039; contain, respectively, the kernel module and the X.Org server driver currently installed in the system. In this way, if you upgrade the kernel or the X.Org server, you can create only one package.&lt;br /&gt;
&lt;br /&gt;
==== Creating only fglrx-module package ====&lt;br /&gt;
To create just the package containing the kernel module for the currently installed kernel, simply run the installer with the &#039;&#039;Only_Module&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
So with &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg custom-package/Only_Module&lt;br /&gt;
With &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/Only_Module&lt;br /&gt;
&lt;br /&gt;
==== Creating only fglrx-x package ====&lt;br /&gt;
To create just the package containing the X.Org driver currently installed in your system, simply run installer with &#039;&#039;Only_X&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg custom-package/Only_X&lt;br /&gt;
With &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039;:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg Slackware/Only_X&lt;br /&gt;
&lt;br /&gt;
（如果进行了上一小节的 --buildandinstallpkg则本小节的命令可不必再执行）&lt;br /&gt;
&lt;br /&gt;
接下来，执行&lt;br /&gt;
&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run&lt;br /&gt;
&lt;br /&gt;
即可进入ATI配置的界面，完成显卡的简单配置。&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
Since these drivers the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; make only one package, named &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039;, that you can create with:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run --buildpkg&lt;br /&gt;
You can also make and install the package directly with:&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --buildandinstallpkg&lt;br /&gt;
&lt;br /&gt;
= Minimal X.Org server configuration =&lt;br /&gt;
Once installed the two indicated packages, you must tell to the X.Org server to use ATI proprietary drivers, to do this we must check if the xorg.conf file, which is usually located in the &#039;&#039;/etc/X11/&#039;&#039; directory, contains the following items:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Load    &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load    &amp;quot;glx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
        Driver  &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        ...&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;DRI&amp;quot;&lt;br /&gt;
        Group   0&lt;br /&gt;
        Mode    0666&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
{{Useful Information|Note|The command:&lt;br /&gt;
 #&amp;gt; aticonfig --initial&lt;br /&gt;
can help you. Do &#039;&#039;&#039;aticonfig&#039;&#039;&#039; without options for more infos.}}&lt;br /&gt;
&lt;br /&gt;
= Installation checking =&lt;br /&gt;
To see if proprietary ATI drivers are properly installed run the command:&lt;br /&gt;
 $&amp;gt; fglrxinfo&lt;br /&gt;
On my computer the output is:&lt;br /&gt;
 display::0.0  screen: 0&lt;br /&gt;
 OpenGL vendor string: ATI Technologies Inc.&lt;br /&gt;
 OpenGL renderer string: ATI Mobility Radeon X1400&lt;br /&gt;
 OpenGL version string: 2.0.6650 (8.39.4)&lt;br /&gt;
&lt;br /&gt;
= Remove installed packages =&lt;br /&gt;
== ATI Proprietary drivers or ATI Catalyst &amp;lt; 11.3 ==&lt;br /&gt;
To remove installed packages you can use the &#039;&#039;&#039;removepkg&#039;&#039;&#039; utility. However, there are aspects that should be considered:&lt;br /&gt;
* The packages&#039; removing don&#039;t delete fglrx&#039;s driver configuration files, these files are located in &#039;&#039;/etc/ati&#039;&#039; directory&lt;br /&gt;
{{Be Careful|Be Careful|The /etc/ati/custom-package directory, if exists, contains the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; and therefore should not be deleted.}}&lt;br /&gt;
* The fglrx-x package contains ATI&#039;s OpenGL libraries, and these libraries are located in the same directory of the Mesa libraries, so when you install the fglrx-x package Mesa OpenGL libraries are overridden. To restore the situation you should simply reinstall the package containing these libraries, like:&lt;br /&gt;
::x11&lt;br /&gt;
:for Slackware 11, or:&lt;br /&gt;
::mesa&lt;br /&gt;
:for Slackware 12.&lt;br /&gt;
&lt;br /&gt;
== ATI Catalyst &amp;gt;= 11.3 ==&lt;br /&gt;
During installation of the package &#039;&#039;fglrx-&amp;lt;version&amp;gt;-&amp;lt;architecture&amp;gt;-&amp;lt;release&amp;gt;.tgz&#039;&#039; some libraries that would be overwritten are renamed as FGL.renamed.library_name. Due to remove this package &amp;amp;ldquo;cleanly&amp;amp;rdquo; you should do:&lt;br /&gt;
 #&amp;gt; aticonfig --uninstall&lt;br /&gt;
or, directly with the script:&lt;br /&gt;
 #&amp;gt; /usr/share/ati/amd-uninstall.sh&lt;br /&gt;
or, also with any installer &amp;gt;= 11.3, with:&lt;br /&gt;
 #&amp;gt; ati-driver-installer-&amp;lt;versione&amp;gt;-x86.x86_64.run --uninstall&lt;br /&gt;
Will remain only the directory &#039;&#039;/etc/ati&#039;&#039; with the configuration files.&lt;br /&gt;
&lt;br /&gt;
= Patching the drivers =&lt;br /&gt;
Ati drivers are usually not compatible with brand new version of kernel linux. You often need to patch the driver so that you can create the kernel module successfully. Since Ati Catalyst &amp;gt; 8.11 you can patch Ati drivers within the &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; before that same SlackBuild compiles the kernel module.&lt;br /&gt;
&lt;br /&gt;
In order to do that, you just have to create (or download from the Internet) a patch and rename it like this:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/ati/patch/patch-ATI_DRIVER_VERSION-KERNEL_VERSION&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
ATI_DRIVER_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; sh ati-driver-installer-&amp;lt;version&amp;gt;-x86.x86_64.run -i | head -n1 | cut -d&#039;-&#039; -f2&lt;br /&gt;
KERNEL_VERSION must be equal to the output of:&lt;br /&gt;
 $&amp;gt; uname -r&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;/etc/ati/patch&#039;&#039; doesn&#039;t exist, it must be made.&lt;br /&gt;
&lt;br /&gt;
For example, if the former command outputs &amp;quot;8.55&amp;quot; and the latter &amp;quot;2.6.27.6&amp;quot;, you need to name the patch &#039;&#039;/etc/ati/patch/patch-8.56-2.6.27.6&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;internal SlackBuild&#039;&#039;&#039; will find the patch automatically and, if the command &#039;&#039;&#039;patch&#039;&#039;&#039; is installed, it will run:&lt;br /&gt;
 #&amp;gt; patch -p0 &amp;lt; /etc/ati/patch/patch-8.56-2.6.27.6&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
Here some patches and how to use there:&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.3, 10.4 and kernel == 2.6.33.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.3-4_with_2.6.33.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.3&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.712-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-3-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.3-4_with_2.6.33.x.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.4, 10.5 and kernel == 2.6.34 ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.4-5_with_2.6.34.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.4&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.723-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.5&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.4-5_with_2.6.34.diff /etc/ati/patch/patch-8.732-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-4-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.9 and Slackware64 13.1 or current ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.9_with_Slackware64-13.1.diff patch] into &#039;&#039;/tmp&#039;&#039;, so to do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.9_with_Slackware64-13.1.diff /etc/ati/patch/patch-8.771-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-9-x86.x86_64.run --buildpkg&lt;br /&gt;
at one point the installer asks:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
can&#039;t find file to patch at input line 4&lt;br /&gt;
Perhaps you should have used the -p or --strip option?&lt;br /&gt;
The text leading up to this was:&lt;br /&gt;
--------------------------&lt;br /&gt;
|diff -ru ./2.6.x/Makefile ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile&lt;br /&gt;
|--- ./2.6.x/Makefile   2010-09-01 16:05:31.000000000 +0200&lt;br /&gt;
|+++ ../../../../../../fglrx-install.uZLF8t/common/lib/modules/fglrx/build_mod//2.6.x/Makefile  2010-09-23 08:47:24.000000000 +0200&lt;br /&gt;
--------------------------&lt;br /&gt;
File to patch:&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
insert:&lt;br /&gt;
 ./2.6.x/Makefile&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 and kernel == 2.6.36.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-11_with_2.6.36.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-11_with_2.6.36.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
=== ATI Catalyst 10.10, 10.11 e 10.12 e kernel == 2.6.37.x ===&lt;br /&gt;
Download the [http://www.slacky.eu/~spina/fglrx/patch/fglrx_10.10-12_with_2.6.37.x.diff patch] into &#039;&#039;/tmp&#039;&#039;, so:&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.10&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.783-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-10-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.11&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.791-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-11-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
* For &#039;&#039;&#039;Catalyst 10.12&#039;&#039;&#039; do:&lt;br /&gt;
 #&amp;gt; mkdir -p /etc/ati/patch/&lt;br /&gt;
 #&amp;gt; mv /tmp/fglrx_10.10-12_with_2.6.37.x.diff /etc/ati/patch/patch-8.801-$(uname -r)&lt;br /&gt;
 #&amp;gt; sh ati-driver-installer-10-12-x86.x86_64.run --buildpkg&lt;br /&gt;
&lt;br /&gt;
= Known problems =&lt;br /&gt;
== error: implicit declaration of function &#039;lock_kernel&#039; and error: implicit declaration of function &#039;unlock_kernel&#039; ==&lt;br /&gt;
You need to enable the &#039;&#039;&#039;Big Kernel Lock&#039;&#039;&#039; in your kernel configuration. You find it under the &#039;&#039;&#039;Kernel hacking&#039;&#039;&#039; menu. You can check if this option is enable with:&lt;br /&gt;
 $&amp;gt; zcat /proc/config.gz | grep BKL&lt;br /&gt;
 CONFIG_BKL=y&lt;br /&gt;
&lt;br /&gt;
== FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol &#039;paravirt_ops&#039; ==&lt;br /&gt;
The error occurs during module compilation and It&#039;s due to the fact that the kernel was compiled with the option of paravirtualization active. This option among other things, prevents to load, and then to compile, modules that do not have the GPL license. Since that ATI drivers don&#039;t have this type of license, they aren&#039;t compiled.&lt;br /&gt;
&lt;br /&gt;
To work around this problem you can:&lt;br /&gt;
==== Disable kernel paravirtualization option ====&lt;br /&gt;
The paravirtualization option is called &#039;&#039;&#039;CONFIG_PARAVIRT&#039;&#039;&#039; and generally is in the &#039;&#039;&#039;Processor type and features&#039;&#039;&#039; kernel submenu.&lt;br /&gt;
==== Patch ATI drivers ====&lt;br /&gt;
This operation is illegal because It changes the type of license issued by ATI in a GPL license. I wrote the patch:&lt;br /&gt;
&lt;br /&gt;
[http://www.slacky.eu/~spina/fglrx/patch/ati_to_gpl.patch ati_to_gpl.patch] (md5sum: 4207f41a71035dc2eed3ea9346b881bb)&lt;br /&gt;
&lt;br /&gt;
but I do not take any responsibility, I do not use It and I discourage the use in order to prefer the alternative to disable the paravirtualization kernel option. To use this patch You need to:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;External SlackBuild&#039;&#039;&#039;&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Internal SlackBuild&#039;&#039;&#039; (only with Ati Catalyst &amp;gt; 8.11):&lt;br /&gt;
* Copy the patch in the &#039;&#039;/etc/ati/patch&#039;&#039; directory (if it doesn&#039;t exist you must create it)&lt;br /&gt;
&lt;br /&gt;
The SlackBuild will find and apply the patch automatically. In order to uninstall it you simply need to delete it. In order to uninstall the patch simply delete It from &#039;&#039;/etc/ati/custom-package/patch&#039;&#039; directory.&lt;br /&gt;
&lt;br /&gt;
== Using GLX_SGIX_pbuffer FGLTexMgr: open of shared memory object failed (Permission denied) __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!! ==&lt;br /&gt;
This problem is due to the lack of SHM filesystem (now called tmpfs), that is virtual memory filesystem. To work around this problem you must:&lt;br /&gt;
* Add into &#039;&#039;/etc/fstab&#039;&#039; file the following line:&lt;br /&gt;
 shm		/dev/shm		tmpfs		defaults	0	0&lt;br /&gt;
* Then mount the filesystem through:&lt;br /&gt;
 #&amp;gt; mount /dev/shm&lt;br /&gt;
Obviously the kernel must be predisposed for the &amp;quot;mounting&amp;quot; of this filesystem, in particular the kernel option that must be enabled is &#039;&#039;&#039;CONFIG_TMPFS&#039;&#039;&#039; that is generally placed in &#039;&#039;&#039;File system --&amp;gt; Pseudo filesystems&#039;&#039;&#039; submenu. However all the compiled kernel generally have this option enabled.&lt;br /&gt;
&lt;br /&gt;
== kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel ==&lt;br /&gt;
The complete mistake is something like this:&lt;br /&gt;
&lt;br /&gt;
 Error:&lt;br /&gt;
 kernel includes at /lib/modules/`uname -r`/build/include do not match current kernel.&lt;br /&gt;
 they are versioned as &amp;quot;&amp;quot;&lt;br /&gt;
 instead of &amp;quot;`uname -r`&amp;quot;.&lt;br /&gt;
 you might need to adjust your symlinks:&lt;br /&gt;
 - /usr/include&lt;br /&gt;
 - /usr/src/linux&lt;br /&gt;
&lt;br /&gt;
The error, also if explained, could be not clear. In practice It results from the fact that the symbolic link:&lt;br /&gt;
 /lib/modules/`uname -r`/source&lt;br /&gt;
 /lib/modules/`uname -r`/build&lt;br /&gt;
don&#039;t point to the directory where are inserted the current kernel sources (which is generally &#039;&#039;/usr/src/linux- &#039;uname-r&#039;&#039;&#039;). It happens to those who use a kernel contained in Slackware, so I will try to explain It in terms of Slackware &amp;quot;packages&amp;quot;. This can happen:&lt;br /&gt;
* because the kernel source were not installed. In this case should be enough to install the source package which can be found in Slackware k/ directory. However, It is not granted that the problem will be solved, You&#039;ll need to see the second reason why there is an error.&lt;br /&gt;
* because sources (also if installed) do not reflect the settings of the current kernel. The new Slackware 12 has some precompiled kernels (which means different settings), while just a single package for the sources (unless seeing the branch extra/). In particular, the sources are for the SMP kernel and so if you use a non-SMP kernel can appear this error. To avoid this, after making sure that the package source has been installed, do simply the following:&lt;br /&gt;
 #&amp;gt; cd /usr/src/linux&lt;br /&gt;
 #&amp;gt; cp /boot/config .config&lt;br /&gt;
 #&amp;gt; make&lt;br /&gt;
:running make, in addition to compiling the kernel modules (which we will not use), some header files are regenerated, and they will reflect the kernel configuration (as it&#039;s set in the .config file).&lt;br /&gt;
&lt;br /&gt;
== Driver 8.39.4 logo ==&lt;br /&gt;
This &amp;quot;bug&amp;quot; in 8.39.4 drivers results from the fact that ATI developers don&#039;t update the packager maintainers before the official releases. It should be nice first if they did test us official releases in order to certify the proper functioning of the scripts for creating packages. To solve the problem it&#039;s necessary to use the &#039;&#039;&#039;external SlackBuild&#039;&#039;&#039; as described here.&lt;br /&gt;
&lt;br /&gt;
== amdcccle don&#039;t start on Slackware 12 ==&lt;br /&gt;
Many users of the X.Org 7.2 (or 1.3) server version fail to start properly the Catalyst. The command to run the Catalyst is:&lt;br /&gt;
 #&amp;gt; amdcccle&lt;br /&gt;
For this problem it seems there is no solution yet, but we are working on to solve it.&lt;br /&gt;
&lt;br /&gt;
= Useful links =&lt;br /&gt;
The discussion thread from which it was derived this article:&lt;br /&gt;
http://www.slacky.eu/forum/viewtopic.php?t=18134&amp;amp;highlight=&lt;br /&gt;
&lt;br /&gt;
An alternative to official ATI drivers:&lt;br /&gt;
http://www.x.org/wiki/radeon&lt;br /&gt;
&lt;br /&gt;
A wiki in italian about installing and configuring ATI drivers (open source and proprietary):&lt;br /&gt;
http://www.slacky.eu/wikislack/index.php?title=Installazione_driver_ATI_su_Slackware_GNU/Linux&lt;br /&gt;
&lt;br /&gt;
= Acknowledgement =&lt;br /&gt;
Thank you at Ezio Ghibaudo and Federico Rota who have started this wiki and for help with the SlackBuild. Thanks also at all the [http://www.slacky.eu/ Italian Slackware Community] users for their feedback and support.&lt;br /&gt;
&lt;br /&gt;
[[User:Spina|Spina]]&lt;/div&gt;</summary>
		<author><name>37.233.27.142</name></author>
	</entry>
</feed>