How to understand nvidia-settings save configuration options?
Solution 1:
First I want to mention that all information saved by nvidia-settings
is stored in ~/.nvidia-settings-rc
which you can access by typing the following:
nano ~/.nvidia-settings-rc
I mention this because other users also wonder, if the xorg.conf
is not used, then how is the settings for Ati or Nvidia working. The reason behind this is that X
can now automatically detect and configure many aspects of what xorg.conf
had before for many input/output devices, including Video cards. This did not completely happen automatically before, but since around 2010, X
can handle many options and detect them without any problems or the need to configure a file for them.
Note that, many of this are still present but divided into more specific files in /usr/share/X11/xorg.conf.d/
Now, there are some cases, like specific Nvidia or Ati Models that need the xorg.conf
to work correctly because of some variables they need that X
detected incorrectly or are needed for the Nvidia/Ati card to work. The automatic detection is very good but still needs some work to cover, for example, the latest video cards.
For example, some video cards do not show the Unity Launcher or top panel unless xorg.conf
is present. In other cases, users that want to tweak their video card, may need the Coolbits option which is added to xorg.conf
. This are the reasons why nvidia-xconfig
exists. To provide an additional level of support in case X
does not detect or offer all the options for the video card.
I also want to add that if you happen to edit any of the options in the Display Configuration option you will most likely need to create or have an existing xorg.conf
file. This can be created by the button mentioned in the following image:
Or by executing the following command in the terminal (Recommended way):
sudo nvidia-xconfig
Afterwards I also recommend rebooting the PC to make sure, the xorg.conf
file is working correctly with the Nvidia card.
If however, you want to manually change the resolution, this is done in the xorg.conf
file and not in the /usr/share/X11/xorg.conf.d/
folder.
This would then be done in the xorg.conf
file in the Screen
Section and it would look something similar to this:
Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV34 [GeForce FX 5200]"
Monitor "CM752ET"
DefaultDepth 16
SubSection "Display"
Depth 32
Modes "1024x768_75.00"
EndSubSection
EndSection
Where you can see the monitor model, the Nvidia video card and resolution (Mode) used with it's respective refresh rate (75Hz).