I am new to Ubuntu, and my original problem was with the screen (display) resolution. I am running Ubuntu 16.04 LTE (x64) on a VMWare Workstation 12.0.1 which is on a Windows 7 Enterprise x64 machine with AMD Radeon HD 5670 graphics card.
Every time I run Ubuntu, it runs in a smaller resolution 800x600; my native resolution is 1920x1080. So I searched around and found article's instructing to create a custom bash script which should've forced the system resolution to 1920x1080.
Following the tutorial i created a "setscreen.sh" file with the following commands ->
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080
But after every restart the resolution goes back to 800x600. Then i have to run the custom "setscreen.sh" command again from the terminal to bring it back to 1920x1080.
I did more research and found another article which suggested to put the file in "startup application" after enabling the "execute" permission of the 'custom display' file to "Allow executing file as program". I did as instructed (marking the file executable and making a new entry in the Startup Application) and now after every restart the resolution would come to 1920x1080, but with a error message (Could not apply the stored configuration for monitors). When I close the error message the resolution goes back to 800x600. Then i have to run the "setscreen.sh" command again from the terminal to bring the resolution back to 1920x1080. (no error msg when run manually from the terminal).
Since this was turning out to be yet another inconvenience, I followed this and this article to create a ".desktop" file but it still does not fix anything and the issue persists.
Now thinking that maybe i can't get this issue fixed i started looking at other ways to change the resolution and thought of manually running the "setscreen.sh" file from the desktop (GUI) by double clicking on it. But when i double click on the file it opens in "gedit". So to fix this problem, I followed this article but i can't seem to understand the instructions there. What is "Raring Nautilus" (the file manager)? I can't find "File" menu in my ubuntu desktop. How do we come to the "preferences" to change the "Behavior"?
I open the Ubuntu "Files Explorer" and locate to the /path/of/file and tried finding the file menu on the Explorer window but can't seeems to find it. Also right clicking the file and selecting "open with"option and then "other application" and then "View all application" shows a bunch of application but not "Terminal". Here I did try to open it with the "sun software" option but that also does not fix the problem.
I did further research to fix the problem by doing a search for every possible solution on askubuntu site but nothing i do seems to fix the problem.
Also I am sorry for not being able to keep this question short and concise fearing lack of proper understanding of my issue and leading to potential delay.
Hope i have explained enough for someone to either help me resolve this issue or point me towards a resolution.
Thanks.
xrandr -- output Virtual1 --mode 1920x1080
didn't work. But it did when I changed it toxrandr --output Virtual1 --mode 1920x1080
. That is, I removed the space between--
andoutput
. I'm not sure if that was a typo or if leaving that space worked for you, but just wanted to mention that. – George V.M. Nov 17 '18 at 10:59