Change display resolution in Linux
This also reflects upon the display size in vSphere client, which was the reason I needed to changed the resolution, it was a bit too big and had to scroll the screen and wanted to reduce its size.
To change the VGA card display resolution in RHEL5
1) First check all the possible resolutions supported by your graphics card using the following command.
"xrandr"
It will display all possible resolutions.
2) Change resolution.
Suppose your graphics card support 1024x768 resolution then you can change it using the following command.
"xrandr -s 1024x768"
If you don't have "1024x768" in that “xrandr” output, try below one this might be help to get “1024x768”.
In “/etc/X11/xorg.conf” file just check the entries
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
Check the entry “Modes”. If it is not present just add this line and check.