Monday, 16 September 2013

My old enemy.....NVIDIA driver installation!


Note: I am a newbie in this field

Last time when I met you(NVIDIA graphics driver) in a battlefield(RHEL6), you messed up my display and effects.I looked up in google and found out that you didn't spare others too from your ill fate. We fought a long battle of installation,configuration and removal of packages and you held your ground and refused to budge.Finally after some configuring I was able to correct my display but graphical effects were subdued.I did not look further into getting things back up. The experience was hair pulling.Maybe that is why I lost so much hair.

Now again yesterday we met again on a new battlefield(Ubuntu 13.04) with I equipped with better knowledge and more zeal than last time.This battle began with my need to learn parallel programming and CUDA was a good choice for which I needed to install you.Following a blog post I installed the binary drivers from the main site but then you started showing your true colours.When I rebooted, the resolution got small (600x400) and unity disappeared.No launcher no dash.I followed some more blogs and forums. I tried blacklisting noveau drivers,updating kernels,configuring xorg,using nvidia-xconfig,installed ccsm,reinstalled glx,mesa and what all not. I got tired and fed up.But I did not give up.After a day and a half of frustuated struggling I restored my settings back. Here is a short summary of how I got back my settings.I hope this helps others from wasting their time on getting their displays back up.


STEPS:

1. Use Alt+Ctrl+F1 to go into text mode and login.

2. Stop the Xdisplay manager

sudo  /etc/init.d/lightdm stop


3. Restore the backup of xorg.conf

sudo mv /etc/X11/xorg.conf.backup /etc/X11/xorg.conf



4. Remove all nvidia drivers if you installed using apt-get

sudo apt-get --purge remove nvidia*

or

Run the following code to  uninstall the nvidia drivers

sudo ./NVIDIA-Linux-x86_x64-319.49.run --uninstall

5. start the X server

startx


6.  Use Alt+Ctrl +T to open terminal and run ccsm (Compizconfig Settings Manager) and enable unity plugin

7.
Reboot



No comments:

Post a Comment