Nvidia driver detected wrong monitor resolution!

My laptop has the following VGA controller:

01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K1000M] (rev a1)

After upgrading my NixOs to 21.05, I found my NixOs very lazy and slow in detecting my second monitor. So I decided to install the NVidia driver:

  services.xserver.videoDrivers = [ "nvidia" ];

After that, that problem solved and now, I can plugin in my second monitor instantly and it will affect under the second.

But now, I have another problem. The Nvidia driver cannot detect my second monitor’s maximum resolution.

So what should I do? Does anyone have an idea to fix this problem?

My second monitor is LG 29UM68-P 29" 21:9 UltraWide which with a 2560 x 1080 resolution. But the Nvidia driver detects that as a 1920x1080 screen.

When I click on the resolution menu list, the maximum resolution is not 2560x1080:

Here is the output of xrandr -q:

Screen 0: minimum 8 x 8, current 3520 x 1080, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected 1600x900+0+180 (normal left inverted right x axis y axis) 345mm x 194mm
   1600x900      60.03*+  40.02  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1920x1080+1600+0 (normal left inverted right x axis y axis) 798mm x 334mm
   1920x1080     60.00*+  59.94    50.00    29.97    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
DP-6 disconnected (normal left inverted right x axis y axis)

Does another OS detect the resolution properly using same port, cable and screen?

Perhaps some parts don’t support necessary data rates?

1 Like

Before upgrading to 21.05, It was on 20.09 without Nvidia driver. My screen was ok and without any problem. After upgrading to 21.05 I found that changing between dual monitor to single monitor or switching between them is very slow on 21.05. But the resolution was ok.

So I decided to install Nvidia. After that, the first problem fixed and now I can switch between monitors very fastly without any defect. But the second problem occurred and the driver cannot detect the exact resolution of my external monitor.