How to Set Update Rate of NVIDIA 1080ti in Ubuntu16.04

Dear,
I have an NVIDIA 1080ti video card .I need change resolution and refresh rate in ubuntu16.04.
I’ve tried three ways to configure :

  1. xrandr command
    xrandr --newmode “1280x1024_30.00” 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
    xrandr --addmode Virtual “1280x1024_30.00”
    xrandr --output Virtual1 --mode “1280x768_60.00”
  2. nvidia-setting
  3. modify /etc/X11/xorg.conf

None of the above three methods succeeded. Please , How should I configure it?

thanks

On dfp monitors, only edid provided modes are allowed unless you use overrides.
What’s your use case for this?
Please post the output of
xrandr --verbose

Hi, generix:
Here are my detailed steps :

~$ nvidia-smi
Fri Oct 18 17:30:23 2019
±----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1080 Off | 00000000:02:00.0 On | N/A |
| 43% 57C P0 47W / 250W | 334MiB / 8114MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1125 G /usr/lib/xorg/Xorg 265MiB |
| 0 1893 G compiz 66MiB |
±----------------------------------------------------------------------------+

~$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
1920x1080 60.00*+
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
DP-5 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
1920x1080 (0x46) 148.500MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1600x900 (0x4c) 108.000MHz +HSync +VSync
h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz
v: height 900 start 901 end 904 total 1000 clock 60.00Hz
1280x1024 (0x4d) 135.000MHz +HSync +VSync
h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz
1280x1024 (0x4e) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1152x864 (0x4f) 108.000MHz +HSync +VSync
h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
v: height 864 start 865 end 868 total 900 clock 75.00Hz
1024x768 (0x53) 78.750MHz +HSync +VSync
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
1024x768 (0x54) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x55) 49.500MHz +HSync +VSync
h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
v: height 600 start 601 end 604 total 625 clock 75.00Hz
800x600 (0x56) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
640x480 (0x5d) 31.500MHz -HSync -VSync
h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
v: height 480 start 481 end 484 total 500 clock 75.00Hz
640x480 (0x5f) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz

~$ cvt 1280 720 30

1280x720 29.93 Hz (CVT) hsync: 22.03 kHz; pclk: 35.25 MHz

Modeline “1280x720_30.00” 35.25 1280 1320 1440 1600 720 723 728 736 -hsync +vsync

~ xrandr --newmode "1280x720_30.00" 35.25 1280 1320 1440 1600 720 723 728 736 -hsync +vsync ~ xrandr
Screen 0: minimum 8 x 8, current 3840 x 1122, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 1920x1080+1920+42 (normal left inverted right x axis y axis) 509mm x 286mm
1920x1080 60.00*+
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
DP-5 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
1280x720_30.00 (0x270) 35.250MHz -HSync +VSync
h: width 1280 start 1320 end 1440 total 1600 skew 0 clock 22.03KHz
v: height 720 start 723 end 728 total 736 clock 29.93Hz
1920x1080 (0x46) 148.500MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1600x900 (0x4c) 108.000MHz +HSync +VSync
h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz
v: height 900 start 901 end 904 total 1000 clock 60.00Hz
1280x1024 (0x4d) 135.000MHz +HSync +VSync
h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz
1280x1024 (0x4e) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1152x864 (0x4f) 108.000MHz +HSync +VSync
h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
v: height 864 start 865 end 868 total 900 clock 75.00Hz
1024x768 (0x53) 78.750MHz +HSync +VSync
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
1024x768 (0x54) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x55) 49.500MHz +HSync +VSync
h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
v: height 600 start 601 end 604 total 625 clock 75.00Hz
800x600 (0x56) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
640x480 (0x5d) 31.500MHz -HSync -VSync
h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
v: height 480 start 481 end 484 total 500 clock 75.00Hz
640x480 (0x5f) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz

~$ xrandr --addmode DP-4 “1280x720_30.00”
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 60
Current serial number in output stream: 61

Your monitor does not announce that it supports that mode or 30Hz at all so the mode is rejected. If you’re sure your monitor supports this, you can use overrides, AllowNonEDIDModes, NoVertRefreshCheck and possibly more.
https://download.nvidia.com/XFree86/Linux-x86_64/384.98/README/xconfigoptions.html
Keep in mind that those checks are there for safety reasons, overriding them mindlessly to set invalid modes can harm your monitor.

thanks, generix,
In fact, I install dual system of win10+Ubuntu16.04 on my PC. The same monitor can be configured with a refresh rate of 30Hz in the win10 system environment. So I think this monitor should supports this.

Ok, then you’ll have to override the mode checks. You can specify that mode in xorg.conf and also use
Option “ModeDebug” “true”
then the driver will tell in the xorg logs why the mode is rejected so you’ll know which checks to override.
The Windows drivers had those checks disabled after WinXP, AFAIK.

Hi, generix:

First, the contents of the original xorg.conf file are as follows:
Section “ServerLayout”
Identifier “layout”
Screen 0 “nvidia”
Inactive “intel”
EndSection

Section “Device”
Identifier “intel”
Driver “modesetting”
BusID “PCI:0@0:2:0”
Option “AccelMethod” “None”
EndSection

Section “Screen”
Identifier “intel”
Device “intel”
EndSection

Section “Device”
Identifier “nvidia”
Driver “nvidia”
BusID “PCI:2@0:0:0”
Option “ConstrainCursor” “off”
EndSection

Section “Screen”
Identifier “nvidia”
Device “nvidia”
Option “AllowEmptyInitialConfiguration” “on”
Option “IgnoreDisplayDevices” “CRT”
EndSection

After reading the document about X server, I made the following modifications:

Section “ServerLayout”
Identifier “layout”
Screen 0 “Screen0” 0 0
Inactive “intel”
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
Option “Xinerama” “0”
EndSection

Section “InputDevice”
# generated from default
Identifier “Keyboard0”
Driver “kbd”
EndSection

Section “InputDevice”
# generated from default
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/psaux”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”
EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “DELL S2319HS”
Modeline “1280x720_30.00” 35.25 1280 1320 1440 1600 720 723 728 736 -hsync +vsync
Option “DPMS”
EndSection

Section “Device”
Identifier “intel”
Driver “modesetting”
Option “AccelMethod” “None”
BusID “PCI:0@0:2:0”
EndSection

Section “Device”
Identifier “nvidia”
Driver “nvidia”
Option “ConstrainCursor” “off”
BusID “PCI:2@0:0:0”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 1080”
EndSection

Section “Screen”
Identifier “intel”
Device “intel”
Monitor “Monitor0”
Option “UseEDID” “FALSE”
Option “ModeDebug” “true”
EndSection

Section “Screen”
Identifier “nvidia”
Device “nvidia”
Monitor “Monitor0”
Option “AllowEmptyInitialConfiguration” “on”
Option “IgnoreDisplayDevices” “CRT”
Option “UseEDID” “FALSE”
Option “ModeDebug” “true”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “Stereo” “0”
Option “nvidiaXineramaInfoOrder” “DFP-1”
Option “metamodes” “1280x720_30 +0+0”
Option “SLI” “Off”
Option “MultiGPU” “Off”
Option “BaseMosaic” “off”
SubSection “Display”
Depth 24
EndSubSection
EndSection

However, the above operation did not bring a surprise. After the reboot, xorg.conf was restored as original file.

Ples use kernel parameter
nogpumanager
to prevent overwriting xorg.conf.