Get higher screen resolution, with NVIDIA drivers in Ubuntu

This is a problem that I have with my PC, Ubuntu and the Nvidia drivers, after each installation I do of a new version of Ubuntu.

My desktop PC has an integrated graphics card Nvidia GeForce 6150SE nForce 430, The problem arises after installing the Nvidia drivers, and it is that I cannot obtain a resolution greater than 1024 × 768, someone will say that it is not such a low resolution, but for me that I am used to using 1280 × 1024 if it is.

What any mortal (?) Would do would be to go directly to nvidia-settings and from there change the resolution, the problem is that it lets us change the resolution but when wanting to record, it returns this error.

Failed to parse existing X config file '/etc/X11/xorg.conf'!

We solve it in the following way, after installing the Nvidia drivers you have to run the following command:

sudo nvidia-xconfig

This command modifies the /etc/X11/xorg.conf for nvidia settings can read it and modify it, now if we can change the resolution of our screen from nvidia settings

sudo nvidia-settings

I couldn't find the post, but I know I read it in the Ubuntu-Ar forums