Tuesday, February 7, 2012

More (X)Ubuntu 11.10 on the HP DV6-6023TX

AMD has finally added support for the Radeon 6770M present in the DV6-60xx laptops. Getting the drivers to work has been a little tricky, but all in all not to hard. I am still running Xubuntu on my DV6 as I really don't want Unity or the eye candy of KDE. In saying that the guide should work on all Ubuntu variations. I can't lay claim to all the information in this post, but I will link to the source where appropriate.

Battery life when on the Intel card is still about the same, 3-4 hours. Running on the Radeon card (not gaming though) you get about 2 hours, which is still quite decent if you can't be bothered rebooting.

I am basing this guide on a vanilla install of Xubuntu 11.10 64bit. If you are running the 32bit version of Linux, you should consider running the 64bit version instead, but most of these instructions will work.

Firstly, as per my previous blog, edit /etc/default/grub to the following:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 acpi_backlight=vendor"
from this article on Phoronix. (I have added the last two acpi functions to enable backlight control) and run update-grub and reboot.

These following instructions are copied from the Unofficial AMD Linux Community Wiki, and are used to download and build the AMD fglrx drivers.
In a terminal:

Download the required software to build the drivers:
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases linux-headers-generic ia32-libs

Symlink /usr/lib to /usr/lib64:
sudo ln -svT lib /usr/lib64

Download the latest Catalyst Drivers, they should end up in the Downloads folder in your home directory,

Change to the directory the drivers downloaded to, and build the deb's:
cd ~/Downloads
sh amd-driver-installer-12-1-x86.x86_64.run --buildpkg
Install the drivers:
sudo dpkg -i fglrx*.deb

Setup the xorg.conf file:
sudo aticonfig --initial

Now for some house keeping. In the Settings menu will be two AMD Catalyst Control Centre options. The Administrative one needs a small tweak to get it to work.

Again in the terminal:
sudo nano /usr/share/fglrx/amdccclesu.desktop

The forth line down needs to be changed to
Exec=gksu amdcccle
save the file and exit nano.

The Administrative panel is used to switch to the Intel graphics card, and a reboot is required to complete the switch. You can check which card is in use by looking in the Information section of the Catalyst Control Center. Next to OpenGL Provider at the bottom you will have listed Tungsten Graphics Inc if you are on the Intel card and Advanced Micro Devices, Inc. when you are using the Radeon.