Skip to content

Instantly share code, notes, and snippets.

@colejhudson
Created April 14, 2018 07:57
Show Gist options
  • Save colejhudson/6593196582b0c01a1a65dd4e56ad3edc to your computer and use it in GitHub Desktop.
Save colejhudson/6593196582b0c01a1a65dd4e56ad3edc to your computer and use it in GitHub Desktop.
Rescaling a display on ubuntu

First by running xrandr --current you'll get a list of display connections by format, for example below I have a single HDMI cable to my display:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00*+  50.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Using the above command we can then run xrandr --output HDMI1 --scale 1.5x1.5 to make the display scale as if the monitor were larger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment