Ubuntu scaling the display (Zooming)

#Ubuntu

Table of Contents

\\ Today I came across this useful trick, which allows me to have lot of space on my screen, even though my screen supports only very low resolution.
\\ First, lets see how to get to know the list of displays attached to Ubuntu
\\

 1~$ xrandr
 2Screen 0: minimum 8 x 8, current 2881 x 1280, maximum 16384 x 16384
 3VGA-0 connected 1600x1280+1281+0 (normal left inverted right x axis y axis) 376mm x 301mm
 4   1280x1024      60.0*+   75.0
 5   1152x864       75.0
 6   1024x768       75.0     60.0
 7   800x600        75.0     60.3
 8   640x480        75.0     59.9
 9LVDS-0 connected (normal left inverted right x axis y axis)
10   1600x900       60.0 +   40.0
11DP-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
12   1280x1024      60.0*+   75.0
13   1152x864       75.0
14   1024x768       75.0     60.0
15   800x600        75.0     60.3
16   640x480        75.0     59.9
17DP-1 disconnected (normal left inverted right x axis y axis)
18HDMI-0 disconnected (normal left inverted right x axis y axis)
19DP-2 disconnected (normal left inverted right x axis y axis)
20DP-3 disconnected (normal left inverted right x axis y axis)
21~$

\\ This is what I got on my machine. And following are the display names as per Ubuntu.\\

1VGA-0
2LVDS-0
3DP-0

\\ This command has listed out other useful information as well. I could only understand the resolutions supported. Following are the resolutions supported by VGA-0 and DP-0.\\

11280x1024
21152x864
31024x768
4 800x600
5 640x480

So the maximum resolution allowed is 1280x1024. But that doesnot allow me to have more space on screen. After long searching, I got this.\\

1xrandr --output VGA-0 --mode 1280x1024 --scale 1.25x1.25

This command sets the resolution of VGA-0, to 1280x1024 but it scales it by the factor of 1.25x1.25. Voila :) Now I have much bigger screen.
\\ \\