Skip to content

Instantly share code, notes, and snippets.

@dinhoabreu
Last active June 20, 2018 21:09
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 dinhoabreu/f123487b9616c2fbd7b7128bc3177afc to your computer and use it in GitHub Desktop.
Save dinhoabreu/f123487b9616c2fbd7b7128bc3177afc to your computer and use it in GitHub Desktop.
UltraWide display configuration

Linux

Ubuntu 18.04

xrandr --newmode "2560x1080"  159.84  2560 2567 2591 2720  1080 1083 1093 1119 +hsync +vsync
xrandr --addmode HDMI-1 2560x1080
xrandr --output HDMI-1 --mode 2560x1080

Create file in HOME ~/.xprofile

Ubuntu 16.04

xrandr --newmode "2560x1080"  159.84  2560 2567 2591 2720  1080 1083 1093 1119 +hsync +vsync
xrandr --addmode HDMI1 2560x1080
xrandr --output HDMI1 --mode 2560x1080

Create file /etc/X11/xorg.conf.d/10-monitor.conf

Section "Monitor"
    Identifier "HDMI1"
    Modeline "2560x1080"  159.84  2560 2567 2591 2720  1080 1083 1093 1119 +hsync +vsync
    Option "PreferredMode" "2560x1080"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "HDMI1"
    DefaultDepth 24
    SubSection "Display"
        Modes "2560x1080"
    EndSubSection
EndSection

Section "Device"
    Identifier "Device0"
    Driver "intel"
EndSection

macOS

Disable System Integrity Protection SIP

You boot in recovery mode by pressing ⌘ + R when starting up your Mac. Open your terminal and run:

csrutil disable
reboot

Fixing switchResx reference

find ~/Library -iname '*switchres*' -delete

Install switchResx again download

Create new custom resolution with these values:

Pixel clock: 159.84
Active:
  - Horizontal: 2560
  - Vertical: 1080
Front porch:
  - Horizontal: 48
  - Vertical: 7
Sync width:
  - Horizontal: 32
  - Vertical: 20
Back porch:
  - Horizontal: 80
  - Vertical: 12
Blanking:
  - Horizontal: 160
  - Vertical: 39
Total:
  - Horizontal: 2720
  - Vertical: 1119
Scan rate:
  - Horizontal: 58.765
  - Vertical: 52.515
Positive sync.:
  - Horizontal: true
  - Vertical: true

See the window captured with custom resolution:

cap01

After create new configuration, reboot to apply your modification.

Reenable System Integrity Protection SIP

You boot in recovery mode by pressing ⌘ + R when starting up your Mac. Open your terminal and run:

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