Graphics card goes missing from device manager – Fixed

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • Email
  • RSS
  • Digg
  • Google Plus

On several new laptops having an Nvidia video card the graphics card goes completely missing! I was surprised when this happened on my 5 month old Asus K55VM laptop. One day I suddenly noticed that some of the games were laggy. I tried opening the Nvidia control panel but to my surprise I got an error that no video card was detected! Not only that, the graphics driver went missing from Device Manager too. Rebooting didnt help ofcourse. So I googled for about 2 days. I read about the Nvidia updates causing a problem and how we need to add the device id of the video card driver to the inf files to fix it etc. My instincts told me that either the fix was a simple one or the video card had fried. BIOS on these new laptops hardly provide any information. (BIOS couldn’t detect any video card when I first purchased the laptop let alone now).
So I first installed a third party Driver Scanner and ran a scan to make sure the video card wasn’t fried. (There is also an option to enable hidden devices in Device Manager. And sure enough my video card was present there although grayed out with the name VGA driver)
Note: Do not uninstall the Integrated Graphics driver. This is not necessary.
I then uninstalled the grayed out video card driver from device manager. I uninstalled the Nvidia control panel too. But after rebooting I was still unable to install the Nvidia driver. There was no video card detected. As I had disabled System Restore I was out of options and so decided to reinstall Windows. But I thought one of one last thing…
Sometimes powering off the laptop and removing the battery and putting it back in helps resolve many issues(like laptop not booting, driver issues too as I found out!). That is exactly what I did! I removed the battery and putit back in and upon powering it back on I was able to see the graphics driver in device manager. I was also able to install and update the Nvidia driver.
Why does this happen?
On new laptops there is a mechanism that disables the graphics card (and the driver too) when the laptop battery goes low. I realized that on two occasions my laptop’s battery had died completely. This is when the graphics card driver must have disappeared!
Do not panic or uninstall anything if this happens to your laptop. But do not let the battery die completely. Just remove the battery and put it back in. When the laptop is on AC power the graphics card will reappear magically ….to be continued

Fix for cursor jump while typing on a laptop

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • Email
  • RSS
  • Digg
  • Google Plus

This is an annoying issue that occurs randomly while typing on any laptop. The position of the cursor jumps to a random location while typing which makes typing a mess. This doesn’t mean the keyboard is faulty but on the other hand it is surprisingly related to touchpad and specifically to the Mouse Properties!

The Fix:
There are fortunately several ways to fix this problem. The easiest solution would be by installing an app called TouchFreeze(which I have not yet tried). Another way would be by just changing the Mouse Properties.
Untitled
Launch Mouse Properties and goto Pointer Options. Uncheck “Hide pointer while typing” option and you are all set! For some reason if this issue persists goto touchpad settings of your respective laptop and check “Disable ELAN pointing device when external pointing device is plugged in” and use a mouse. Or you can just install TouchFreeze if this is too complicated.

Facts about the String class in Java

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • Email
  • RSS
  • Digg
  • Google Plus

String is an immutable class. A String object cannot be modified once created. Take the following example:

public class Test{
public static void main(String s[]) {
                String s3 = new String("Test");
		s3.replaceAll(s3, "Java");
		System.out.println("s3 = " + s3 +" :String cant be modified from Test to Java");
}

This proves that String is immutable as the value of s3 is still “Test” and not “Java”. This is a real time example of an immutable class. If you were to declare s3 as StringBuffer the output would be “Java”.

Any modification to a String object will result in a new String object.

String s = "test java";
s.substring(0,4); //modify the String
System.out.println(s); // still prints "test java"
String a = s.substring(0,4); //modify the String and assign it to another String
System.out.println(a); // now prints "test"

This proves that if we try to modify the String it will result in a new String object but the original String remains unaffected. String is a final class. It cannot be subclassed. String objects can be used as keys in a HashMap.