Skip to content

Instantly share code, notes, and snippets.

@migerh
Created January 19, 2011 22:30
Show Gist options
  • Save migerh/787024 to your computer and use it in GitHub Desktop.
Save migerh/787024 to your computer and use it in GitHub Desktop.
get a higher resolution on low res screens via xrandr with scaling and output the high res one on an external monitor
#!/bin/bash
# ~/Scripts/1024scale.sh
# change display settings to clone mode, 1024x768 pix for VGA (projector) and scales it to the resolution of 1024x600 of the internal display
xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --addmode VGA1 1024x768
xrandr --fb 1024x768
xrandr --fb 1024x768 --output LVDS1 --mode 1024x600 --scale 1x1.28 --panning 0x0
xrandr --output VGA1 --same-as LVDS1 --mode 1024x768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment