Install AMD Radeon HD 6470M and solve overheat on Ubuntu 11.10 Oneiric

UPDATE: Try upgrade your BIOS. Several people have said they reduce heat by upgrading the BIOS.
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=th&prodNameId=5086746&prodTypeId=321957&prodSeriesId=5086745&swLang=13&taskId=135&swEnvOID=4061#93211

Please note that installing the latest AMD ATI Radeon FGLRX still not solve the overheat issue. I recommend you to switch off the radeon VGA and use Intel VGA card. It will decrease overheat from 90 C fall into 57 C.

I have HP 431 which support with 2 VGA driver, Intel and AMD Ati Radeon HD 6470M. I start install fresh Ubuntu Oneiric by default & use open-source ATI Radeon proprietary driver. Suddenly, my laptop got overheat about 80 C when i start my activity like writing code, run VM and many else. I thought it was kernel bug. After searching through Google and find there no right solution there.

So i start diving into my Ubuntu Oneiric and find that dual-VGA is the main problem here. To check your VGA availability, do “lspci -nn | grep VGA” :


00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] [1002:6760]


Ubuntu Oneiric use Intel Corporation 2nd Generation Core Processor as default VGA. Which this is make my laptop overheat all times! So the solution is forcing Ubuntu 11.10 to use “AMD Radeon HD 6470M” as primary VGA. So, here are the solution :

Please edit your /etc/default/grub :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force radeon.nomodeset=1"

And update it by :
sudo update-grub

1. Uninstall all ATI Open-source driver

sudo apt-get remove fglrx-* fglrx-amdcccle jockey-common jockey-gtk
sudo rm -rf /usr/share/ati/
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx xserver-xorg-core
sudo apt-get install --reinstall libgl1-mesa-glx:amd64 libgl1-mesa-glx:i386
sudo update-initramfs -u
sudo update-grub

2. Install dependency packages

sudo apt-get install ia32-libs dkms build-essential

Download latest ATI Driver from :
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx

3. Installing Latest ATI Proprietary Driver
In this post, i use “ati-driver-installer-11-9-x86.x86_64.run”. To installing :


chmod a+x ati-driver-installer-11-9-x86.x86_64.run
sh ati-driver-installer-11-9-x86.x86_64.run --buildpkg Ubuntu/oneiric
sudo dpkg -i *.deb

If you got error “Permission Denied” even try with sudo, then to this :


sudo cp ati-driver-installer-11-9-x86.x86_64.run /root
sudo su
cd /root
sh ati-driver-installer-11-9-x86.x86_64.run
dpkg -i *.deb

If still can’t build packages, then do this :


sudo rm -R /usr/share/ati
sudo apt-get install fglrx

*kudos to dmitriv

ATI Driver already installed in your system.

4. Switch into Graphic Card into ATI Radeon
sudo /usr/lib/fglrx/switchlibGL amd

5. Generate Xorg.conf
sudo aticonfig --initial -f --adapter=all

You will get results :

Uninitialised file found, configuring.
PowerXpress error: Cannot stat '/usr/lib64/fglrx': No such file or directory
Failed to initialize libglx for discrete GPU
Using /etc/X11/xorg.conf
Saving back-up to /etc/X11/xorg.conf.original-0

This is my xorg.conf that works :

Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
Load "fglrx"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Now do “sudo lightdm restart” to start using your ATI Radeon Graphic Card.

6. Check if Driver already installed and use properly
Do “lspci -v” and see your Radeon part like this :


01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company Device 3673
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at a0000000 (64-bit, prefetchable) [size=256M]
Memory at c2600000 (64-bit, non-prefetchable) [size=128K]
I/O ports at 4000 [size=256]
Expansion ROM at c2620000 [disabled] [size=128K]
Capabilities:
Kernel driver in use: fglrx_pci
Kernel modules: fglrx, radeon

Now, i use modules fglrx. It’s works now and no overheat again :)

Updates from @DonTomaso :

Nice step by step guide. I have a Dell Vostro 3350 notebook with the same graphic configuration Intel HD3000 / 6470M.

Under Oneiric and also on Natty I was able to use fglrx module instead of radeon just like you described above, but in my case the fan is spinning all the time and battery is draining quicker than under Windows no matter if the system uses Intel graphics and radeon or fglrx module the fan is always annoyingly on. These ATI modules be it open source or proprietary can not yet control the GPU’s power levels.

The only way to get around this is to switch off the ATI gpu with vga_switcheroo:

https://help.ubuntu.com/community/HybridGraphics

After booting up I need to run this command and as a result the fan is slowing down, then stopping, just like under Windows:

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

So for me the only option is now to use the Intel HD 3000 only and turn off ATI until a fully working driver is released.

Solve
link group x86_64-linux-gnu_gl_conf is broken


sudo apt-get install --reinstall libgl1-mesa-glx
sudo update-alternatives --config x86_64-linux-gnu_gl_conf

56 thoughts on “Install AMD Radeon HD 6470M and solve overheat on Ubuntu 11.10 Oneiric

  1. Thank you for this Post.

    I am running Kubuntu 11.10 on a new HP dv6 i7 core with the same graphic card as mentioned here.

    I am bit intimidated because I tried installing prop drivers in the past and invariably got it wrong.

    so my questions are:
    1. is the forcing to use AMD permanent or do I have to do that after every boot?

    2. If I screw up the driver installation how can I get back to my original state ie. a workable desktop.

    3. do i have to reinstall the prop driver after every upgrade?

    Thank you for any assistance in this.

    • 1. is the forcing to use AMD permanent or do I have to do that after every boot?
      - It will use AMD permanently because we forcing it through Xorg.conf.

      2. If I screw up the driver installation how can I get back to my original state ie. a workable desktop.
      - Sure, you need to restore original xorg.conf

      3. Do i have to reinstall the prop driver after every upgrade?
      No. There no need for that.

  2. Can you use Catalyst control panel with this combination? I’m having really hard times trying to make it working with 6750M … Also getting
    “PowerXpress error: Cannot stat ‘/usr/lib64/fglrx’: No such file or directory
    Failed to initialize libglx for discrete GPU”
    Any new findings?

    I installed Catalyst 11.10

  3. Have you tried this on Natty? I am dying to use the ATI card on Ubuntu. How is the power consumption when on battery mode? I cannot upgrade to Oneiric yet. Not on the laptop I use for work. Can’t risk messing up a lot of things during an upgrade and I can’t do a fresh install for now.

    I have the exact same graphics cards as yours (6470M Seymour) with Intel Graphics 3000 HD. 11.9 didn’t work for me.

    I’m confused. jockey-common and jockey-gtk shouldn’t have to be uninstalled. It is just a front-end AFAIK.

    • Sorry, i never try it on natty. Seems you should try with dual-boot with Oneiric. If the result is bad, then you can remove your Oneiric and waiting for next Ubuntu version.

      Jockey-common and jockey-gtk in Oneiric work for updating additional proprietary driver. Sometimes it make load CPU high and not used anymore since we already use ATI Driver from manual installation.

  4. Hey, when I entered the command “sudo apt-get install ia32-libs dkms build-essentials”(step 2), it says “E: Package ‘ia32libs’ has no installation candidate

    Any help??

    • “ia32libs has no installation candidate” show up because you use Ubuntu i386. In this case, you can remove it packages. But, if you use Ubuntu 64 bit, you should add it.

  5. Hello and thanks for your effort,

    tried your approach on I386 Ubuntu 11.10 but no luck yet. lightdm restart gives me permissions issues and finally I rebooted my laptop (HP 4530s) through ALT-F1 console.

    Here is my lspci -v output if you are interested:

    01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] (prog-if 00 [VGA controller])
    Subsystem: Hewlett-Packard Company Device 167d
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at b0000000 (64-bit, prefetchable) [size=256M]
    Memory at d4a00000 (64-bit, non-prefetchable) [size=128K]
    I/O ports at 5000 [size=256]
    Expansion ROM at d4a20000 [disabled] [size=128K]
    Capabilities:
    Kernel driver in use: fglrx_pci
    Kernel modules: fglrx, radeon

    and my lspci | grep VGA:

    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M]

    I feel that your approach is on the right direction, somehow it does not work for me.. (I don’t get any GUI), had to replace xorg.conf file back to the original one just to text you this.. as far as I remember, the last message that I saw when it attempted to startx was something like deleted screen 1 for some reason.

    Note: there is no xorg.conf in etc/X11 for the Intel card.

    Thank you again!

    • We have same VGA here and same lspci -v output.

      Could you try with Ubuntu 11.10 64-bit ?
      Also, trying with newest ATI AMD Driver maybe increase your luck.

      • thanks for your reply. Ok, will try Ubuntu 64-bit, to see if it makes any difference.. by the way laptop is HP Probook 4530s..

        • Trying as we speak, just installed 11.10 64-bit version, on typing sudo apt-get install ia32-libs dkms build-essentials I get an error “E: Unable to locate package build-essentials”. Continuing with the rest..

          • Sorry, i misstype, it should be “sudo apt-get install build-essential” without “s”.

            My mistake

  6. stuck at trying to restart lightdm
    Failed to use bus name org.freedesktop.DisplayManager, do you have appropriate permissions?

    Tried rebooting the laptop and it won’t start the GUI.. not sure whether it’s a xorg.conf issue.. when I remove xorg.conf it starts just fine. But I have the impression that it’s using the integrated VGA..

    • am not sure, I used your xorg.conf in the end and tried the lightdm restart command and still got the previous error. Then into terminal I used stop lightdm and switched with ALT-F2 to a console where I typed start lightdm and it seems to be working..

      One question: how do I know which VGA the system is currently using?

  7. when I type the command: sudo /usr/lib/fglrx/switchlibGL amd
    I got the following warn. and I don’t know why

    update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken.
    update-alternatives: warning: not replacing /usr/lib/x86_64-linux-gnu/xorg/extra-modules with a link.

  8. Hello,
    I tried this method with the latest driver version 11.11.

    When doing:
    sh ati-driver-installer-11-11-x86.x86_64.run –buildpkg Ubuntu/oneiric

    from the download dir. I get:
    # set the permissions on the pxpress scripts
    chmod 744 debian/pxpress/switch*
    dh build
    make: dh: Command not found
    make: *** [build] Error 127
    dpkg-buildpackage: error: debian/rules build gave error exit status 2
    Removing temporary directory: fglrx-install.egXtg0

    Then I do:
    sudo cp ati-driver-installer-11-11-x86.x86_64.run /root
    sudo su
    cd /root
    sh ati-driver-installer-11-11-x86.x86_64.run
    and get:
    root@fintanws3:~# sh ati-driver-installer-11-11-x86.x86_64.run
    sh: Can’t open ati-driver-installer-11-11-x86.x86_64.run
    root@fintanws3:~#

    Any ideas?

    • “One more question:
      I followed your step and get the same lspci -v output.
      But I can’t enable any 3D effect . Can you?”

      Once I get this installed, I would like to know that as well :)

  9. running on hp pavillon g6. This one has also two graphic cards as seen in the following lspci output:

    ###################################################################
    01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] (prog-if 00 [VGA controller])
    Subsystem: Hewlett-Packard Company Device 1669
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at a0000000 (64-bit, prefetchable) [size=256M]
    Memory at c6400000 (64-bit, non-prefetchable) [size=128K]
    I/O ports at 5000 [size=256]
    Expansion ROM at c6420000 [disabled] [size=128K]
    Capabilities:
    Kernel driver in use: fglrx_pci
    Kernel modules: fglrx, radeon

    00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
    I/O behind bridge: 00002000-00002fff
    Memory behind bridge: c3400000-c43fffff
    Prefetchable memory behind bridge: 00000000c2400000-00000000c33fffff
    Capabilities:
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    ###################################################################

    i’ve followed the above steps:

    0. changed to root
    1. generated the *.deb modules für 11.9 and 11.11 as well
    2. rm -R /usr/share/ati
    3. apt-get remove fglrx-* fglrx-amdcccle jockey-common jockey-gtk
    4. apt-get install ia32-libs dkms build-essential
    5. dpkg -i *.deb
    6. /usr/lib/fglrx/switchlibGL amd
    7. aticonfig –initial -f –adapter=all

    All went fine, but after reboot, system was hanging and no graphic display was shown. With ALT+F2 i was able to replace the xorg.conf. After the next reboot system came up again, the driver is present but no config is possible.
    This for driver 11.9 & 11.11. Any ideas?

    Cheers, Klaus

  10. Hello Yodi Aditya,

    Nice step by step guide. I have a Dell Vostro 3350 notebook with the same graphic configuration Intel HD3000 / 6470M.

    Under Oneiric and also on Natty I was able to use fglrx module instead of radeon just like you described above, but in my case the fan is spinning all the time and battery is draining quicker than under Windows no matter if the system uses Intel graphics and radeon or fglrx module the fan is always annoyingly on. These ATI modules be it open source or proprietary can not yet control the GPU’s power levels.

    The only way to get around this is to switch off the ATI gpu with vga_switcheroo:
    https://help.ubuntu.com/community/HybridGraphics

    After booting up I need to run this command and as a result the fan is slowing down, then stopping, just like under Windows:

    echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

    So for me the only option is now to use the Intel HD 3000 only and turn off ATI until a fully working driver is released.

  11. Okay got it installed with vesion 11.11. Apart from build-essential I hade to install: cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases

    Now for 3D?

    • I was to quick. After doing:
      fglrxinfo

      I get:
      X Error of failed request: BadRequest (invalid request code or no such operation)
      Major opcode of failed request: 136 (GLX)
      Minor opcode of failed request: 19 (X_GLXQueryServerString)
      Serial number of failed request: 12
      Current serial number in output stream: 12

  12. It didnt work for me. I dont know whats wrong. I have a Dell i5 and as graphic card the Radeon HD 6470M. I tryied a lot to follow all this.. but always when I come back, the system breaks. (the Last error was starting automatic crash report … fail).
    Im getting crazy because I want to use compiz but nothing helps me to install a good graphic card driver .

  13. Hi, I have same graphics card. I could not manage to get 3D performance or properly install ati catalyst card (segmentation error after installation). However if you plan to solve overheat problem, take a look at my post (http://ubuntuforums.org/showthread.php?t=1859945). There was another post (http://ubuntuforums.org/showthread.php?p=11438030#post11438030) suggesting other switches. Applying both of these solutions actually solves the overheat and battery problem. 3D performance is not as it is in ati cards for windows. However if you have managed to get 3D performance using ATI, you better stick with it. In case of intel open source driver using my solution, you get workable 3D performance, if you stick with xorg-edgers ppa (I am currently running kernel 3.2 from xorg-edgers). Though the drivers of intel still are bad in case of some games like (trine, or any wine games), but open source 3D games runs quite well. Anyways thanks for the post. I will give it a try (I have been doing this with every release of catalyst drivers and failed everytime).

  14. Hi
    For the error below create a symlink from that points to /usr/lib
    command :
    cd /usr
    ln -s lib lib64
    This worked for me.
    “Uninitialised file found, configuring.
    PowerXpress error: Cannot stat ‘/usr/lib64/fglrx’: No such file or directory
    Failed to initialize libglx for discrete GPU
    Using /etc/X11/xorg.conf
    Saving back-up to /etc/X11/xorg.conf.original-0″

  15. Hi, on the part where I type
    sudo /usr/lib/fglrx/switchlibGL amd

    I get
    sudo: /usr/lib/fglrx/switchlibGL: commant not found

    any help??
    Im using 64.

    • Please update your system by “sudo updatedb”. Then do “locate switchlibGL”.

      If you don’t, then you should install proprietary driver instead manual installation

  16. Hi,
    can you explain more step 5 ?
    should i just apply the aticonfig command and it will generate the xorg.conf file ? or i will have to copy your file as well ?

    also if any thing goes wrong how i can restore everything up ?
    thanks

    • running aticonfig command will generate xorg.conf for you and backup original automatically.

      If something goes wrong, you can go to TTY 1 (CTRL+ALT+F1) , login and restore your original xorg.conf.

  17. Pingback: How to fix error with ATI driver "Error of failed request"? | MoVn - Linux Ubuntu Center

  18. I did the commands, everything works fine but in the xorg.conf under modules i have:
    Section “Module”
    Load “glx”

    not load “fglrx”

    like in your output. That’s the only difference. When I restart lightdm or reboot, there are no graphics. Any ideas? Can I just edit xorg.conf directly?

  19. I have the same problem.
    When I install the ATI Catalyst drivers I have an X Window, buth only a black screen with a mouse cursor and some glitches.
    I have a solution for this in Ubuntu 11.04:
    Install LightDM from a PPA, set LightDM as default.
    In /etc/rc.local > stop lightdm and start gdm.
    This is how to solve the problem.
    But the graphics card is buggy…
    Someone that have an other solution for this problem?

  20. thank you
    but iam using hp pavilion g6 same device and ubuntu 11.10 64
    when i write lightdm restart
    give me
    Failed to use bus name org.freedesktop.DisplayManager, do you have appropriate permissions?

    and please how to disable ati and work only on intal

  21. hello,
    I tried all the things according to instructions and I got the required output on my HP pavilion laptop having same graphic card. But when I reboot, after selecting the grub for ubuntu 11.10, it shows the blank screen with the following instructions:
    ……
    skipping profile in etc/apparmod/disable: usr:bin firefox
    *starting AppArmor profiles [ok]
    *starting load fallback graphics devices [ok]
    *starting userspace bootsplach [ok]
    *stopping load fallback graphics devices [ok]
    .
    .
    .

    • sorry, I didn’t complete the last comment…
      I am writing the instructions in short as dots. There are many more instructions on the screen. It also says further that
      checking for running unattended-upgrades:
      *stopping failsafe Boot Delay [ok]
      *stopping automatic crash report [ok]
      *starting LightDM display generation [fail]
      *starting bluetooth manager [fail]
      *starting atieventsd
      ……..
      ……..
      ……..
      session saned disabled: edit /etc/default/sanned
      *checking battery state [ok]
      _

      I can run the terminal version of ubuntu by pressing alt+f2. But I want my graphics back. What should I do…??? I am new to the ubuntu. Please explain in detail….
      Thanks.

      • Seems you have problem with /etc/X11/xorg.conf. This configuration should works :


        # Section "ServerLayout"
        # Identifier "aticonfig Layout"
        # Screen 0 "aticonfig-Screen[0]-0" 0 0
        # EndSection
        #
        # Section "Module"
        # Load "glx"
        # EndSection

        Section "Monitor"
        Identifier "aticonfig-Monitor[0]-0"
        Option "VendorName" "ATI Proprietary Driver"
        Option "ModelName" "Generic Autodetecting Monitor"
        Option "DPMS" "true"
        EndSection

        # Section "Device"
        # Identifier "aticonfig-Device[0]-0"
        # # Driver "glx"
        # BusID "PCI:1:0:0"
        # EndSection

        Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device "aticonfig-Device[0]-0"
        Monitor "aticonfig-Monitor[0]-0"
        DefaultDepth 24
        SubSection "Display"
        Viewport 0 0
        Depth 24
        EndSubSection
        EndSection

  22. How do i save the grub file? It’s the 1st time i’m using Ubuntu, and it says i don’t have permision to overwrite it…

    I need to add this: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash pcie_aspm=force radeon.nomodeset=1″

  23. Thank you so much!
    Just little mistake… you forget this in xorg.conf:

    Section “Device”
    Identifier “aticonfig-Device[0]-0″
    Driver “fglrx”
    BusID “PCI:1:0:0″
    EndSection

    I get this by your previous guide… :)

    • Another little issue: just before login the screen is black… if I put in my password I login on Kubuntu… in other words, KDM is black but after login is all ok… can you help me???

  24. Hi,
    very nice post and helpful too. I have problem with my graphic card.

    Following are the specs:
    dell inspiron corei5, n5110

    VGA compatible controller: Intel Corporation Device 0116 (rev 09)
    01:00.0 VGA compatible controller: ATI Technologies Inc Device 6760

    How can i install the drivers. Any hep would be highly appreciated.

    Regards,
    Smith

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>