[Original] Ubuntu ATI/Intel dual-graphics Driver Installation

Source: Internet
Author: User

This article only targets some models that contain AMD dual-graphics cards and has tested DELL Vostro 3550/DELL flexibility 14R (AMD 6630 and Intel HD 3000 ). The entire installation process requires the use of the command line, but it is still very simple for beginners, you just need to paste the command into the command line, remember to press <press enter>. The Linux version is Ubuntu12.04, and I have also tried 12.10. However, due to the compatibility problem between the driver and X, I finally gave up 12.10. For more information, see http://wiki.cchtml.com/ I ...Catalyst

1. Uninstall and delete the original driver
 

 

Ii. Install the latest AMD catalyst Driver

Download necessary software libraries

sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot libqtgui4 debhelper debconf libstdc++6 dkms libqtgui4 libelfg0 linux-headers-generic

 

For Ubuntu, you need to run the following two commands (32-bit is not required ).

 

 

DownloadAMD catalyst for Ubuntu 12.4Driver

[Plain]View plaincopy
  1. Cd ~ /; Mkdir 1_st13.4; cd 1_st13.4/
  2. Wget http://www2.ati.com/drivers/linux/amd-driver-installer-13-4-x86.x86_64.run
  3. Chmod + x amd-driver-installer-13-4-x86.x86_64.run

(Note: You can also download the package from the official website based on your graphics card model. After the download, you can add the execution permission to the file)

Create an installation package

[Plain]View plaincopy
  1. Cd ~ /Catalyst12.4/driver/
  2. ./Ati-installer.sh 8.961 -- buildpkg
  3. Cd ../

For the red text, Ubutu indicates the Ubuntu system, and precise indicates the name of the system version, which is the system name of 12.04.
Raring 13.04
Quantal 12.10
Rrecise 12.04
Oneiric 11.10
Nat 11.04
Maverick 10.10

During installation, follow the system version to modify the later version name. Ubuntu/quantal and Ubuntu/raring are used for 12.10, but I have not used 13.04 yet, the installation of 13.04 is not guaranteed.
Prompt: the subsequent version number must be in lower case. Otherwise, the system version number cannot be identified in upper case.
Digress: I use Ubuntu/precise, that is, 12.04.

 

Install driver

sudo dpkg -i fglrx*.deb  

Restart your computer:

sudo reboot

 

 

Create a new xorg. conf
1. Single-core GPU
Sudo aticonfig -- initial-f

You can run the following command to view or modify it:
Sudo gedit/etc/X11/xorg. conf

Original Tutorial:
Section "Device"
Identifier "ATI radeon 6870"
Driver "fglrx"
EndSection

My:
Section "Device"
Identifier "ATI radeon 5650"
Driver "fglrx"
EndSection

You can change it yourself!

2. dual-core GPU
Sudo aticonfig -- initial-f -- adapter = all

3. Multiple monitors
Sudo aticonfig -- initial-f
Sudo aticonfig -- set-pcs-str = "DDX, EnableRandR12, FALSE"

Whether it is successful or not! Prevent invalid configurations !!!
Sudo aticonfig -- input =/etc/X11/xorg. conf -- tls = 1

 

Turn off the power management of the official driver!
Sudo aticonfig -- acpi-services = off

Restart your computer!

 

Solution:
1. Black screen
First check xorg. conf
Disable xorg. conf
$ Sudo mv/etc/X11/xorg. conf/etc/X11/xorg. conf. disabled
Check whether the restart is normal!

Try to re-enable xorg. conf
$ Sudo mv/etc/X11/xorg. conf. disabled/etc/X11/xorg. conf
If the screen is still black/white/gray, the high power supply may be configured incorrectly,

Ctrl + Alt + F1 or boot to the recovery mode:
Sudo aticonfig -- acpi-services = off

2. The window overlapping and 2D display are slow:
You cannot enable special effects or display desktops. You can reduce the image details:
Sudo service TPD stop
Sudo aticonfig -- set-pcs-str = DDX, ForceXAA, TRUE
Sudo service TPD start

3. The hardware does not support water ripple:
The catalyst control center is not supported and the latest catalyst control center can be installed.
You do not need to reinstall the video card. Please note that!
Cd ~ /; Mkdir 1_st11.9; cd 1_st11.9/
Wget http://www2.ati.com/drivers/linux/ati-d... x86_64.run
Chmod + x ati-driver-installer-11-9-x86.x86_64.run
Sh ati-driver-installer-11-9-x86.x86_64.run -- extract driver
Sudo mv/etc/ati/control ~ /Control. bak
Sudo cp driver/common/etc/ati/control/etc/ati

4. logout and exit will die:
Cd ~ /Optional st11.9
Sh ati-driver-installer-11.9-x86.x86_64.run -- extract driver
Sudo cp driver/packages/Ubuntu/dists/lucid/replacements/authatieventsd. sh/etc/ati/authatieventsd. sh
Sudo chmod + x/etc/ati/authatieventsd. sh

The following items are successfully used:
Sudo mkdir-p/var/lib/xdm/authdir
Sudo ln-s/var/run/xauth/var/lib/xdm/authdir/authfiles

Still not repaired:
Sudo/usr/sbin/update-rc.d-f atieventsd remove

5. Special Effect termination:
Not recommended:
Add the following in/etc/X11/xorg. conf:
Section "Extensions"
Option "Composite" "Disable"
EndSection

Section "ServerFlags"
Option "AIGLX" "off"
EndSection

We recommend that you install fusion-icon:
Sudo apt-get install fusion-icon
Applications> System Tools> Compiz Fusion Icon
Right-click fusion-icon --- Metacity in the upper right corner (pause the effect)
The following error occurs during installation: "update-alternatives: error":
Sudo mkdir/usr/lib/xorg/modules/drivers

6. What is the video card setting after kernel upgrade?
Sudo dkms build-m fglrx-k 'uname-R'
Sudo dkms install-m fglrx-k 'uname-R'


Limited levels, many errors, and at your own risk!

3. Enable direct rendering of integrated graphics card and debug bugs

If you update fglrx or your system automatically updates, you must repeat Step 2. Otherwise, the integrated GPU will not perform direct rendering.

Use root permission to open/etc/X11/Xsession. d/10 fglrx

Sudo gedit/etc/X11/Xsession. d/10 fglrx

 

For a 32-bit system, add/usr/lib32/dri/at the end of row 4th to change the document:

[Plain]View plaincopy
  1. LIBGL_DRIVERS_PATH =/usr/lib/fglrx/dri
  2. If ['uname-M' = 'x86 _ 64']; then
  3. If [-d/usr/lib32/fglrx/dri]; then
  4. LIBGL_DRIVERS_PATH =$ {LIBGL_DRIVERS_PATH} <span if [! -Z $ LD_LIBRARY_PATH]; then
  5. LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:
  6. Fi
  7. LD_LIBRARY_PATH =$ {LD_LIBRARY_PATH}/usr/lib32
  8. Export LD_LIBRARY_PATH
  9. Fi
  10. Fi
  11. Export LIBGL_DRIVERS_PATH

For 64-bit systems, add/usr/lib/x86_64-linux-gnu/dri/at the end of row 4th, the file becomes

[Plain]View plaincopy
  1. LIBGL_DRIVERS_PATH =/usr/lib/fglrx/dri
  2. If ['uname-M' = 'x86 _ 64']; then
  3. If [-d/usr/lib32/fglrx/dri]; then
  4. LIBGL_DRIVERS_PATH =$ {LIBGL_DRIVERS_PATH} <span if [! -Z $ LD_LIBRARY_PATH]; then
  5. LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:
  6. Fi
  7. LD_LIBRARY_PATH =$ {LD_LIBRARY_PATH}/usr/lib32
  8. Export LD_LIBRARY_PATH
  9. Fi
  10. Fi
  11. Export LIBGL_DRIVERS_PATH

Save the file and exit

4. Play with your dual-display card!

If the switched graphics card does not take effect, restart your computer.

Display the currently used video card

[Plain]View plaincopy
  1. Aticonfig -- pxl

If you are using an independent video card, it is displayed

PowerXpress: Discrete GPU is active (High-Performance mode).

For integrated graphics cards:

PowerXpress: Integrated GPU is active (Power-Saving mode).

Switch Integrated graphics card

[Plain]View plaincopy
  1. Sudo aticonfig -- px-dgpu

Switch independent graphics card

[Plain]View plaincopy
  1. Sudo aticonfig -- px-igpu

View Open GL library usage

[Plain]View plaincopy
  1. Fglrxinfo

View direct rendering status

[Plain]View plaincopy
  1. Glxinfo | egrep render

Install mesa-utils to test 3D Performance(Calculate and output fps every 5 seconds)

[Plain]View plaincopy
  1. Sudo apt-get install mesa-utils
  2. Glxgears

Independent graphics card (ATI 6630) Status

1793 frames in 5.0 seconds = 358.581 FPS1781 frames in 5.0 seconds = 355.736 FPS

Integrated graphics

301 frames in 5.0 seconds = 60.115 FPS298 frames in 5.0 seconds = 59.585 FPS

Obviously, you can see the difference!

 

If the screen is black or there is no desktop display after restart, you need to switch to another command line interface Ctrl + Alt + F2, delete X configuration and restart X

[Plain]View plaincopy
  1. Sudo rm/etc/X11/xorg. conf
  2. Sudo startx

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.