Skip to content

Instantly share code, notes, and snippets.

@tberghuis
Created March 10, 2018 23:14
Show Gist options
  • Save tberghuis/cfed39468df970aab5d3ca6966c042f9 to your computer and use it in GitHub Desktop.
Save tberghuis/cfed39468df970aab5d3ca6966c042f9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# 1280 * 800
# should i research the effect of the refresh rate....
# gtf 800 1280 60
# 800x1280 @ 60.00 Hz (GTF) hsync: 79.50 kHz; pclk: 86.50 MHz
Modeline "800x1280_60.00" 86.50 800 856 944 1088 1280 1281 1284 1325 -HSync +Vsync
xrandr --newmode "800x1280_60.00" 86.50 800 856 944 1088 1280 1281 1284 1325 -HSync +Vsync
xrandr --addmode VIRTUAL1 800x1280_60.00
# rewrite so display is right-of
xrandr --output VIRTUAL1 --mode 800x1280_60.00 --left-of LVDS1
x11vnc -clip 800x1280+0+0
# turn off
xrandr --output VIRTUAL1 --off
# fix lag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment