Hello, my name is Federico Capoano,
I enjoy developing cutting-edge websites
and working with creative people.
18th September 2010 in Coding Tags: linux, ubuntu
Every time I update my Ubuntu machine compiz stops working. I don't know very well the reason, also because I don't have so much time to investigate, I just know that by reinstalling the nvidia drivers the things get back working.
Since this is a procedure that I found myself doing quite often I decided to write it on my blog so I won't forget next time I need to do it :-).
Compiz manager is a great software that enhances the overall user interaction by adding fancy effects to your windows, from drop shadows to awesome desktop effects like the Desktop Cube or theExpo view.
Many of these effects are purely fancy, while some others are really useful and once you have it you can't live without.
Good question, I don't know well! I think it has to do with the graphic card drivers not being up to date with the system kernel but I'm not sure.
Do you know the answer? If yes write it in the comments please :-).
For me usually reinstalling the nvidia drivers just works fine. If you don't use nvidia then you might want to try to reinstall your graphic card's drivers or ask in the ubuntu forums.
Download the latest drivers for your machine from the NVIDIA website.
Click on the section that correspond to your machine - for example Linux x64 (amd64/em64t) display driver - download the file and remember the folder in which you put it, because you will have to reach it through the command line.
Stop the X server by hitting CTRL + ALT + F1 on your keyboard.
Now you are in console mode only. Login with your username and password and then and type:
$ sudo /etc/init.d/gdm stop
You might get some kind of warning, just ignore it.
Change directory to where you downloaded the file, for example:
$ cd /home/nemesis/Downloads/
Make the script executable and run the script you just downloaded from the nvidia website. Example:
$ sudo chmod a+x NVIDIA-Linux-x86_64-256.53.run $ sudo sh NVIDIA-Linux-x86_64-256.53.run
On the first screen select "Accept", then again select "Yes" when it asks you if you want to continue, go ahead and always select yes on the questions or ok to all the eventual warning messages.
At some points it will ask you:
"Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up"
Select yes and then ok.
$ sudo /etc/init.d/gdm start
Yay! Compiz is back now!
No! The next time you need to update the NVIDIA X drivers for Linux you won't need to repeat this procedure.
Infact you will just need to do:
CTRL + ALT + F1.
Login with your username and password.
$ sudo /etc/init.d/gdm stop $ sudo nvidia-installer --update $ sudo /etc/init.d/gdm start
This is all! Thanks to Fakie Flip in the Ubuntu Forums.
“ nice site i really learn a lot more power to your blog <a href="http://staying-healthy.info">healthy living</a> ”
By health is wealth in Nice Skip Links Appearing on :focus with CSS
“ Very strange bug- thanks for the fix! ”
By Andrew Chart in IE8 doesn't like 1x1px semi-transparent backgrounds
“ Completely agree about keeping it simple, sometimes people try a little too hard ”
By ryan in 10 Effective Business Card Design Tips
“ I just wanted to say that your blog has been really useful. ”
By Kerala in Django: How to Retrieve Query String Parameters
“ Thank you this was exactly what I have been searching for. ”
By Kerala in Django Tagging Autocomplete Tag-It
Linuxiac38 said:
( on 18th of September 2010 at 18:40 )
“Xserver config file is overwritten by stock default upon update.
Go and invoke the new generic files, or else, the specific nVidia file, in control panel>System>nvidia X server Settings. That will automatically build a new config file, in the correct sub-directory.”
Federico Capoano said:
( on 19th of September 2010 at 12:35 )
“Thanks Linuxiac38 for this information!”
Yaro Kasear said:
( on 4th of October 2010 at 03:05 )
“Get the name of it right.
It's just Compiz. Not Compiz Manager.”
Federico Capoano said:
( on 4th of October 2010 at 13:02 )
“Thanks Yaro, I corrected it.”
Drivers said:
( on 24th of October 2011 at 07:25 )
“Very useful information, thanks for sharing.”