Skip to content

Instantly share code, notes, and snippets.

@VvanGemert
Last active August 29, 2015 14:02
Show Gist options
  • Save VvanGemert/ebafedc346bcd5e35189 to your computer and use it in GitHub Desktop.
Save VvanGemert/ebafedc346bcd5e35189 to your computer and use it in GitHub Desktop.
4K xconf
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
Modeline "3184x2160" 590.04 3184 3440 3792 4400 2160 2161 2164 2235 -HSync +Vsync
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ModeValidation" "AllowNon60hzmodesDFPModes, NoEDIDDFPMaxSizeCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoDFPNativeResolutionCheck, NoMaxSizeCheck, NoMaxPClkCheck, AllowNonEdidModes, NoEdidMaxPClkCheck"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "3840x2160" "1920x1080"
EndSubSection
EndSection
10 gtf 3840x1260 60
11 gtf 3840x2160 60
12 gtf 3840 2160
13 gtf 3840 2160 60
14 gtf 3840 2160 59.90
15 xrandr -q
16 gtf 3840x2160 59.90
17 gtf 3840 2160 59.90
18 xrandr --newmode "3840x2160_59.90" 711.15 3840 4152 4576 5312 2160 2161 2164 2235 -HSync +Vsync
19 xrandr
20 xrandr --addmode HDMI-0 3840x2160_59.90
21 xrandr --addmode DFP1 3840x2160_59.90
22 xrandr --addmode DFP-1 3840x2160_59.90
23 sudo apt-cache search nvidia-334
24 sudo su
25 gtf 3840 2160 30
26 xrandr --newmode "3840x2160_30.00" 339.57 3840 4080 4496 5152 2160 2161 2164 2197 -HSync +Vsync
27 xrandr --addmode
28 xrandr --addmode HDMI-0 3840x2160_30.00
29 gtf 3840 2160 19
30 xrandr --newmode "3840x2160_19.00" 206.48 3840 4008 4408 4976 2160 2161 2164 2184 -HSync +Vsync
31 xrandr --addmode HDMI-0 3840x2160_19.00
32 sudo su
33 gtf 3180 2160 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment