My thoughts on Tech

[How-to] Make nVidia settings persistent and retain the settings in Ubuntu 9.10 Karmic Koala

Nvidia Proprietary Drivers need nvidia-settings to set screen resolution and change other settings. In previous versions of Ubuntu and in other distros to make them permanent (used in every session) you click the “Save to X configuration file”. From Karmic on there is no xorg.conf by default!

As a result, nvidia-settings is not able to save the settings and every time I logged in I had  to change the resolution (Phew!!!). Then Sathya helped me. He gave me a link from Ubuntu Forums. Then I did the following to fix the problem:

1. Press Crtl+Alt+F1 to go to tty1. (Crtl+Alt+F2 takes you to tty2 and so on. available till tty6).

2. You’ll be taken to a terminal. Press Crtl+Alt+F7 to return to the GUI screen. Now you need to kill Xserver from there. Type ‘/etc/init.d/gdm stop’ (use kdm in KDE).

3. If you are reading this and simultaneously following, you’ll lose this screen in this step. Now, type

sudo Xorg -configure

4. This gives an xorg.conf in your home directory. It would be named “xorg.conf.new”.

5. Take this file to “/etc/X11″ and rename it ‘xorg.conf’.

6. Now click “Save to X configuration file” in nvidia-settings. Note that you need root permissions to do this.

7. Now your settings will be saved. Make a copy of that file back in your home directory, if needed, and rename it to “xorg.conf.new” (replacing the original).

8. You’re Done. Try logging off and back in.

If you enjoyed this post, make sure you subscribe to my RSS feed!

1 Comment

  1. December 19, 2009    

    I am a newbie but was still able to follow your instructions and got rid of this problem. This post was of a great help to me. Thanks a lot and keep up the good work, best regards

1 Trackback

  1. Sathya on November 21, 2009 at 1:17 am

Leave a Reply