Skip to content

Instantly share code, notes, and snippets.

@cassidyjames
Created August 6, 2021 03:36
Show Gist options
  • Select an option

  • Save cassidyjames/042ec7aa41cdf4ecafe25fff82bf17c0 to your computer and use it in GitHub Desktop.

Select an option

Save cassidyjames/042ec7aa41cdf4ecafe25fff82bf17c0 to your computer and use it in GitHub Desktop.
Notes for using xrandr on elementary OS for the Framework Laptop
## To add a sensible 1× resolution of 1500×1000:
gtf 1500 1000 60
# 1504x1000 @ 60.00 Hz (GTF) hsync: 62.10 kHz; pclk: 125.19 MHz
# Modeline "1504x1000_60.00" 125.19 1504 1600 1760 2016 1000 1001 1004 1035 -HSync +Vsync
xrandr --newmode "1504x1000_60.00" 125.19 1504 1600 1760 2016 1000 1001 1004 1035 -HSync +Vsync
xrandr --addmode eDP-1 "1504x1000_60.00"
## For 2×, we'll use 3000×2000 and run at 2× scaling:
gtf 3000 2000 60
# 3000x2000 @ 60.00 Hz (GTF) hsync: 124.14 kHz; pclk: 513.44 MHz
# Modeline "3000x2000_60.00" 513.44 3000 3240 3568 4136 2000 2001 2004 2069 -HSync +Vsync
xrandr --newmode "3000x2000_60.00" 513.44 3000 3240 3568 4136 2000 2001 2004 2069 -HSync +Vsync
xrandr --addmode eDP-1 "3000x2000_60.00"
@cassidyjames

Copy link
Copy Markdown
Author

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