I am not able to set my screen size at 1280 x 1024. When I go to the display settings only the following two screen sizes are available:
1024 x 768
800 x 600
I am using HP LP1965 LCD Display Screen.
You could add a new mode using
Note: Replace LVDS1 by whatever you get in
You would have to edit the
Add the above commands after
Source: Ubuntu Geek
In 12.04 instead of editing GDM config files you edit the lightdm configuration:
and add the following line to the end of the file:
Now you create the new referenced file:
Paste the bash header in the first line:
And your custom xrandr configuration from above below that.
At last make the script executable
Your Ubuntu display driver (nVidia in my case) was unable to read DDC monitor configuration data across the VGA, HDMI or DVI connector.
This can happen if you have a KVM and it was switched away from your Ubuntu PC when it was booted as in my case.
Ubuntu defaults to thinking you're running a CRT with 1024x768 resolution.
The solution is to just simply reboot your Ubuntu with the monitor directly connected to your display adapter.
It may be possible that you have a defective VGA cable where one of the leads carrying DDC data is broken too - try a different cable.
You should be able to change the resolution using XRANDR command from the terminal. To set it up to change the resolution to what you selected every time you restart your computer, you can set up a Shell script.
Check out my post for more information and links on XRANDR