How to Install ATI Radeon 7670 graphic driver in Linux Mint / Ubuntu (latest versions)


Hey guys, I have a HP Pavilion g6 lap, which comes with an ATI Radeon 7670M HD graphic card which comes with Windows 8 preloaded. When you install any Linux Distributions side loaded with Windows 8, the graphic driver will not get installed while Linux is being installed, which keeps the graphic card’s fan running all the time. Because of this, there will be a lot of battery drain.

So I’ve decided to install the graphic driver for Linux manually. Here’s a small guide through which you can install the graphic driver in Linux.

During this process, we will install the default fglrx driver through which you can turn off the graphic card if you want.

Process for installing ATI Radeon driver on Ubuntu / Linux Mint

Installing the default fglrx drivers doesn’t involve much process. This is very simple when compared to the previous versions. ūüôā

Step – 1

Upgrade your system. This you can do it using the following process:

sudo apt-get upgrade
Step – 2

Install the fglrx drivers. For this enter the following command in the terminal:

sudo apt-get install fglrx

Now restart the computer to complete the installation process.

sudo reboot
Step – 3

After the drivers are installed in your system, now install the necessary pxpress package that is used for switching the graphic card from discrete to integrated and vice-versa.

sudo apt-get install fglrx-pxpress

Now you will get a message that the discrete graphic card is activated. Reboot the system once again.

Step – 4

After you restart, you can check which graphic cards are active using the following command in the terminal:

inxi -G
Step – 5

Now install the AMD Catalyst control center in your system switching between the graphic cards. That you can do it by executing the following command:

sudo apt-get install fglrx-amdcccle

Now reboot your system once again. ūüôā

sudo reboot
Step – 6

Now launch the AMD Catalyst Control Center as an administrator so that you can switch between the graphic cards.

In the Settings, switch between the graphic cards as per your need. If you want more battery backup, then it is recommended to switch the graphic card to integrated (i.e. Intel Graphics) The system will ask for a reboot.

After the reboot is completed, now the Linux will use the internal graphic card instead of the discrete graphic card.

Now, once after you change the graphic card to integrated, you will see the increase in the battery backup ūüôā

Disabling Graphic Driver – Linux/Fedora


Hello all, I was facing a trouble with the graphic driver in Linux for the past few months. When I did the installation as per the previous post in my blog, there are some issues like missing library packages, unable to install the package etc,. After searching the net for a while, I found out the following solution for the graphic driver problems which will completely turn off the graphic card while we work in Linux based systems. This is the best way I found out by which I can work on Linux for hours together with out any battery drain  or over heating problems.

In the following steps we will be disabling the graphic card temporarily by making changes in the kernel files. For that just follow the instructions given here.

1) The changes which we will make to the kernel needs root access, so open a terminal as a root user.

2) Navigate to the vgaswitcheroo folder placed in the kernel.

cd /sys/kernel/debug/vgaswitcheroo

In the¬†vgaswitcheroo folder you can see a file called switch which controls the GPU of your system. When you don’t change any thing of that file you will get some thing like this when you open the¬†switch¬†file:

0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Pwr:0000:01:00.0

Here in this file, the first one corresponds to the Intel GPU and the second one is the external graphic card which is a problem if we don’t have the graphic driver installed in Linux/Fedora. If we turn off the power supply for the graphic card then it is not at all a problem when working in Linux/Fedora

3) For turning off the graphic card just change the value of the switch file by executing the following command in the terminal as a root.

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

After doing this you can see the change in the value of the switch file to:

0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Off:0000:01:00.0

Now wait for a few minutes and see the battery status. You can see the change in the amount of backup time.

Permanent Solution using the above procedure

If you follow the above procedure, you need to do the above process every time. If you think that is an un-necessary task every time when you log in to the system, just follow the below procedure. ūüôā

Open a terminal as a root and just paste the following commands in the terminal:

cd 
gedit .bashrc

Now .bashrc file will open and just copy the following to the .bashrc file.

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

Now, just save the file and exit. The thing what you did just now is you have added the above line to the .bashrc file which will be loaded on the system boot-up. This will directly execute the above command when the system files get loaded.

That’s it, I think this will resolve the problem of the graphic card. ūüôā

Just please give me the feedback regarding the post in the comments.

Hope this helps. ūüôā

Adding Swap to Ubuntu


In this post I will be explaining you about adding Swap to Ubuntu manually after installing the Operating System.

If you are installing Ubuntu alone on the system, it won’t ask for adding the swap memory. All the time I am talking about Swap memory right, what is Swap memory actually?

Linux RAM consists of chunks of memory blocks called as Pages. If the pages are filled the system will become slow. To avoid this problem we will be adding Swap Memory. This will take some memory in the hard-disk and acts as an alternate RAM for Ubuntu. Linux swap allows the system to harness more memory that it was physically available.

However, allocating Swap Memory does have disadvantages. Because hard disks have a much slower memory than RAM, virtual private server performance may slow down considerably. Additionally, swap thrashing can begin to take place if the system gets swamped from too many files being swapped in and out.

Check for Swap:

Before we proceed to add a swap file we need to check whether there are any swap files are or not by having a look at the summary of swap usage. To check run the following command in the terminal.

               sudo swapon -s

An empty list will confirm that you have no swap files enabled:

               Filename                     Type                   Size                  Used                Priority

Check the File-system:

Once if we are confirmed that we do not have a swap file enabled, we can check how much space we have on the server with the df command. The swap file will take 512MB, since we are only using up about 8% of the /dev/sda, we can proceed.

               Command: df

               Filesystem       1K-blocks      Used           Available       Use%       Mounted on
               /dev/sda2        20907056       1437188     18421292      8%             /
               udev                  1964644          4                  1964640         1%            /dev
               tmpfs                789380            804              788576           1%            /run
               none                  5120                0                   5120                0%            /run/lock
               none                 1973448          592              1972856         1%            /run/shm

Creating and Enabling the Swap file:

Now it’s time to create a swap file using the dd command.

               sudo dd if=/dev/zero of=/swapfile bs=1024 count=512K

where of=/swapfile designates the file’s name. In this case the name is swapfile.

Subsequently we are going to create the swap file by creating the swap area:

              sudo mkswap /swapfile

Now you will be able to see the manually created swap file in the swap summary.

               sudo swapon -s

The results of the above command will be:

               Setting up swapspace version 1,   size  = 262140 KiB no label, UUID=103c4545-5f-c5-47f3-a8b3-dfbdbd64fd7eb

Finish up by activating the swap file:

               sudo swapon /swapfile

Now, you will be able to view the swap file in the swap summary:

               sudo swapon -s

               Filename                Type        Size            Used     Priority
               /swapfile                 file          262140      0             -1

This file will be there on the virtual private server until the machine reboots. You can ensure the swap is permanent by adding it to the fstab file. To do this run the following command in the terminal:

               sudo nano /etc/fstab

and paste the following lines there

               /swapfile               none         swap         sw       0      0

Finally to prevent the file readable by the other users you need to give the necessary permissions for the swap file:

             sudo chown root:root /swapfile

             sudo chmod 0600 /swapfile

Note: It is not necessary to take the exact values as if it is in the post. Those values are directly pasted from my terminal when I was adding swap to my file system.

That’s it now you have created the swap file.

Installing Ati Radeon 7670M HD Graphic Driver on Linux Mint


I got an HP pavilion g6 2320tx lap which came with Windows 8 pre-loaded. I wanted to install Linux on my system. From all the information which I have gathered the best Linux Distro which supports Graphic Drivers is only Linux-mint. So I have decided to install the latest version of Linux Mint (Linux mint 15 Olivia).

In this post I will be explaining you the process of installing ATI RADEON 7670M graphic driver on Linux Mint.

Process for installing ATI driver on Ubuntu/Linux mint/Kubuntu:

First of all download the following files and put in a separate folder so that you can access through the console.

In the process of installing the drivers you have to remove the present X server Driver. So that it is recommended to do the installation process through the Console Screen. To go to the Console screen press Ctrl+Alt+F1. In that you will be asked to enter the user-name and the password. After that you will be able to access the file system of your system.

Step 1:

Upgrading your system:

For this you need to run the command

sudo apt-get upgrade.”¬†

This will download all the upgrades for the system including the latest Linux Kernel.

Step 2:

Download and install the following packages:

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

If at all you are using a 64 bit operating system you should run the following command also in addition to above one’s.

  • sudo apt-get install ia32-libs lib32gcc1 libc6-i386

Before installing the latest driver un-install the old drivers on your computer. Otherwise it will show an error saying “Installation aborted”

  • sudo apt-get remove fglrx*
  • sudo apt-get remove xserver-xorg-video-intel.

After removing the old drivers install the files which you have downloaded.

  • sudo dpkg -i libudev*
  • sudo dpkg -i xserver-xorg-video-intel_2.21.6-0ubuntu4_amd64.deb

Step3:

Installing the ATI driver in your system:

First of all to install the driver you need to unzip the driver and then proceed for the installation.

  • sudo sh ./amd-catalyst-XX.X-linux-x86.x86_64.run –buildpkg Ubuntu/raring

(Replace¬† XX.X whit version you have, and¬† ‘raring’ with distribution you use)

The above process creates a .deb file of the driver which you want to install. (Makes more user friendly)

  • sudo dpkg -i fglrx*.deb

This step will install all the drivers of ATI in your system.

That’s it you have installed the ATI Radeon driver in your system.

Steps to be followed after Installation

Run this command so you make backup of xorg.conf  file, and make new for your system:

  • sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
  • sudo aticonfig –initial -f

After initialization, select discrete graphic card and reboot system:

  • sudo aticonfig –px-dgpu
  • sudo reboot

After restart everything should work great and system will use discrete graphic card.

After restarting the system you can be able to switch the graphics from Intel on Board Graphics to ATI Radeon HD Graphics.

Now I have been using Linux Mint on my Laptop for the last one month, after installing the graphics driver I was getting around 5 to 6 hours of battery backup, the same as you get it on Windows.