> Preferences > Monitor Settings, and choosing your desired screen resolution on the drop down box there. But what if your screen resolution is not found within the selection? This guide will help you on how to: (1) How to utilize bash scripting to create and execute a resolution configuration and (2) How to automatically run the script once a user logs in.I am using lubuntu on oracle vm, and my monitor's resolution is at: 1368p x 768p.
Creating a resolution configuration.
1. Press Ctrl + Alt + T to open up a CLI terminal.
2. Key in the following command and press enter: cvt 1368 768 60 . CVT stands for Coordinated Video Timing. The second parameter indicates your X (horizontal) resolution in pixels, followed by your Y (vertical) resolution and your refresh rate. By default refresh rates are set to 60.
3. The result would be the modeline configuration needed for the next command:

Take note of the Modeline configurations above.
4. Type the following command xrandr --newmode followed by the parameters of modeline above and press enter.
note: "1368x768_60.00" is the label of your resolution choice, you can give it any other name.
5. Type the following command xrandr --addmode VGA-0 1368x768_60.00
Now go to
> Preferences > Monitor Settings and you will now see your newly created resolution config.However, there are times that the configuration would not save, specially after rebooting your machine. So there is a need to redo the entire process (which is tedious).
Automatically run the script on login
6. Create a shell script, by typing nano reso.sh
7. This would create a shell script called reso.sh, within the file, place all the three commands from steps 2 to 5 and save your script.
8. Look for ~/.bash_login ~/.bash_profile or ~/.profile -- These are hidden files so just type ls -a to look see if these files exist.9. Edit one of the three files stated earlier, and place the command bash ~/reso.sh in the first line of the file and save the file. As of the moment you have successfully finished the guide.
