Thanks for everybody who have tried to help me and the rest who had the issues. I was finally able to resolve this.. The issue was a dodgy SMPS. Once I replaced it everything started to work fine. Also I am with Ubuntu now happily with no issues like this
Once again thanks for everybody who helped..