ubuntu 11.04 “cannot display this video mode” error

I started getting this with my onboard Nvidia graphics adapter. I would get this message during bootup and during shutdown/restart. It went away after installing the “recommended/current version” Nvidia driver instead of the generic driver. Do not install version 173 as it had the same issue.

The current version fixed the problem but introduced another issue. Now all I see is just white screen on applications like Eclipse etc.

Then I tried uninstalling all the Nvidia drivers. Now I get the old UI instead of Unity. So I reinstalled version 173 and everything works fine now!!!!!!!!!!!