Adjust Linux/Debian resolution in Vitual Machines

I was installing Debian on VMware and there encountered a problem with the resolution of the OS using it virtual. The resolution of the Display was not matching with the resolution of the screen, which was 1920×1080. I checked the Display application of Debian, not much use, I found. Then to the resolutions in the Virtual Machine Settings, again no much improvement. After going through the xrandr command of Debian, it was found helpful.

Copy the following lines of commands and paste it in a file with .sh extension and save it in any Directory, to make it ease put it in the Desktop.

xrandr –newmode “1920×1080”  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr –addmode Virtual1 1920×1080
xrandr –output Virtual1 –mode 1920×1080

I have used 1920×1080 because that was my system resoluton. You can replace the value by the value which you would like to have your screen adjusted to. Now, open the Terminal and type in the command to change the working directory to the location where you have saved the file.
cd /home/user/<Directory>
If the file is saved in Desktop, type in  cd /home/user/Desktop/
Then type
chmod +x <filename>.sh
Followed by:

After the execution, the resolution is to be adjusted to 1920×1080. Least probably, there can be a chace that you hace to execute the last statement each time you turn on your Vitual Machine.
This method can be used for all Dedian Distributions like Ubuntu, Linux Mint, Discreete OS, Kali Linux and so on.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s