Sunday, April 29, 2012

ATI Radeon HD 6600M Graphics card on Ubuntu 12.04 LTS [Solved]

I had a very bad time with my Dell Vostro laptop with ATI Radeon HD 6600M Graphics card on Fedora 16 - couldn't install graphics card driver at all. I tried installing both kmod and akmod drivers on my machine and both didn't work. Even thought of changing my Graphics card because of this. But continued with the same as I had several projects running and din't wanted to waste time configuring Graphics card.
I just formatted the whole Fedora and installed Ubuntu. After several failed attempts, I have installed FGLRX drivers with help from Terry at
I had installed the drivers suggested by jockey-gtk so I had to uninstall them first using jockey-gtk. And restart the machine.

These are the step by step procedures

  1. Uninstall any graphics drivers already installed and reboot the machine.
          sudo jokey-gtk
  2. Now install the drivers using this command
    sudo apt-get install fglrx-updates fglrx-amdcccle-updates
  3. Initialise aticonfiguration
    sudo aticonfig --initial --input=/etc/X11/xorg.conf
  4. Restart the system
Verify installation by using fgl_glxgears or fglrxinfo
$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon 6600M and 6700M Series
OpenGL version string: 4.2.11627 Compatibility Profile Context

$ 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]: Advanced Micro Devices [AMD] nee ATI Whistler [AMD Radeon HD 6600M Series] [1002:6741]

$ cat /etc/lsb-release 


$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string:   ATI Technologies Inc.
OpenGL renderer string: AMD Radeon 6600M and 6700M Series
OpenGL version string:  4.2.11627 Compatibility Profile Context

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes

Additionally I installed Compiz and enabled cube and wobbly windows!! I'm loving it! If you need to install Compiz, here is the Stackoverflow question that I followed:
I have decided to stick to Ubuntu although I have been using Fedora for a long long time. But Fedora had its vices like the infamous SELINUX, which always caused troubles. I am loving the Ubuntu Software Centre and Ubuntu One storage too :).

Thursday, April 19, 2012

git :: ignore file permission (mode,chmod) change

Try this command pal :)
 git config core.filemode false
git will ignore the file permission(mode) changes made using chmod command
From git-config(1):

           If false, the executable bit differences between the index and the
           working copy are ignored; useful on broken filesystems like FAT.
           See git-update-index(1). True by default.

Tuesday, April 17, 2012

Java:: How to convert Arrays to List and Set (Collection) in Java

Converting a Java array into Set or List is a very common requirement in most Java projects. Java collections frameworks supports this in the following way.

Required Imports

import java.util.List;
import java.util.Set;
import java.util.Arrays;

Convert Array to List

List newList = Arrays.asList(yourArray);

Convert Array to Set

Set<T> newSet = new HashSet<T>(Arrays.asList(yourArray));
Note the use of generics

Difference between List and Set

List is an ordered sequence of elements whereas Set is a distinct list of elements which is unordered.
Read more here:

Monday, April 2, 2012

git :: rename a git branch

That's easy pal. Renaming an existing branch in git repository is easy and simple. This method applies to renaming a branch in your local repository. Changes will reflect in the remote repository after you make a push.

If you are in the branch that you need to rename

git branch -m <new_branch_name>

If you are not in the branch that you need to rename

git branch -m <branch_you_want_to_rename> <new_name>

git is awesome! :)

Related Posts Plugin for WordPress, Blogger...