Skip to content

Instantly share code, notes, and snippets.

@banasiak
Created March 11, 2018 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banasiak/15fee00123dc8808163269f35a321b03 to your computer and use it in GitHub Desktop.
Save banasiak/15fee00123dc8808163269f35a321b03 to your computer and use it in GitHub Desktop.
Dell XPS 15 4K Monitor Resolutions (Fedora)
Section "Monitor"
Identifier "eDP-1"
Modeline "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
Modeline "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Option "PreferredMode" "2560x1440_60.00"
EndSection
Section "Screen"
Identifier "Screen0"
Monitor "eDP-1"
DefaultDepth 24
SubSection "Display"
Modes "3840x2160_60.00" "2560x1440_60.00" "1920x1080_60.00"
EndSubSection
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection

Determining Xorg Modelines

cvt 3840 2160

# 3840x2160 59.98 Hz (CVT 8.29M9) hsync: 134.18 kHz; pclk: 712.75 MHz
Modeline "3840x2160_60.00"  712.75  3840 4160 4576 5312  2160 2163 2168 2237 -hsync +vsync

cvt 2560 1440

# 2560x1440 59.96 Hz (CVT 3.69M9) hsync: 89.52 kHz; pclk: 312.25 MHz
Modeline "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync

cvt 1920 1080

# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

UHD-1 (4K) Resolution

xrandr --newmode "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync

xrandr --addmode eDP-1 3840x2160_60.00

xrandr --output eDP-1 --mode 3840x2160_60.00

WQHD Resolution

xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync

xrandr --addmode eDP-1 2560x1440_60.00

xrandr --output eDP-1 --mode 2560x1440_60.00

Full HD Resolution

xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

xrandr --addmode eDP-1 1920x1080_60.00

xrandr --output eDP-1 --mode 1920x1080_60.00

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