Skip to content

Instantly share code, notes, and snippets.

@lhuet
Created April 7, 2014 21:10
Show Gist options
  • Save lhuet/10057019 to your computer and use it in GitHub Desktop.
Save lhuet/10057019 to your computer and use it in GitHub Desktop.
Script for DevoxxFr 2014 - Force 1280x720 resolution even if not detected (tested on Dell / Ubuntu)
#!/bin/sh
xrandr --newmode "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync
xrandr --addmode VGA1 1280x720_60.00
xrandr --addmode LVDS1 1280x720_60.00
xrandr
xrandr --output VIRTUAL1 --off --output LVDS1 --mode 1280x720_60.00 --pos 0x0 --rotate normal --output VGA1 --mode 1280x720_60.00 --pos 0x0 --rotate normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment