You are not logged in.

#1 2019-05-20 16:56:40

LeonardoSidney
Member
From: Brazil, SC
Registered: 2019-05-16
Posts: 6

[SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

I'm having problems with my GT610 video card and the proprietary nvidia driver, my second monitor showing an incorrect resolution.
I have a full HD display with 1920x1080 resolution connected to HDMI-0 which correctly displays the resolution, and I also have a "FLATRON E1941" monitor with 1366x768 resolution connected to VGA-0, however this one encounters problems, the nvidia driver auto-detects 1280x720 and the closest native resolution is 1368x768, when I use the nouveau driver the resolution in VGA-0 is detected correctly.
Some exits:

$ cvt 1366 768
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
$ xrandr
Screen 0: minimum 8 x 8, current 3200 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1280x720+1920+312 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00 +
   1600x900      59.82  
   1400x900      59.88  
   1368x768      59.88    59.85  
   1280x800      59.91    59.81  
   1280x720      59.86*   59.74  
   1024x576      59.90    59.82  
   960x540       59.82    59.63  
   864x486       59.92    59.57  
   800x600       72.19    60.32    56.25  
   800x450       59.82  
   700x450       59.88  
   684x384       59.88    59.85  
   640x480       59.94  
   640x400       59.98    59.88  
   640x360       59.86    59.83  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.82    59.63  
   432x243       59.92    59.57  
   400x300       72.19  
   320x240       60.05  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1400x1050     59.98  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93

Last edited by LeonardoSidney (2019-05-30 14:40:00)

Offline

#2 2019-05-20 19:26:21

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

It doesn't seem as if you added the mode, but its among the detected resolutions.
However the default is 1024x768 (from VESA requirements) and you're running it at 1280x720

Please post xorg logs w/ nvidia and nouveau.

Also just running "xrandr --output VGA-0 --mode 1368x768 --right-of HDMI-0" will get you the desired mode.

Offline

#3 2019-05-20 20:44:52

LeonardoSidney
Member
From: Brazil, SC
Registered: 2019-05-16
Posts: 6

Re: [SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

seth wrote:

It doesn't seem as if you added the mode, but its among the detected resolutions.
However the default is 1024x768 (from VESA requirements) and you're running it at 1280x720

Probably this is the result of almost a month searching the internet trying to solve this problem

seth wrote:

Please post xorg logs w/ nvidia and nouveau.

This part I did not quite understand, but

Nvidia log:
https://pastebin.com/bC8knKcs

Nouveau log:
https://pastebin.com/DYcrj36T

seth wrote:

Also just running "xrandr --output VGA-0 --mode 1368x768 --right-of HDMI-0" will get you the desired mode.

this causes a poor rendering on my secondary screen (VGA-0), basically the pixels are cut

thanks for the reply

Offline

#4 2019-05-20 20:57:13

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

[    78.315] (II) NVIDIA(0): Setting mode "HDMI-0: nvidia-auto-select @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}, VGA-0: 1368x768 @1368x768 +1920+0 {ViewPortIn=1368x768, ViewPortOut=1368x768+0+0}"

Initially the desired modes are selected. Also I don't like

this causes a poor rendering on my secondary screen (VGA-0), basically the pixels are cut

I suspect interference from your desktop session - KDE?
Try to suspend the compositor before altering the mode (Shift+Alt+F12)

Offline

#5 2019-05-21 11:02:24

LeonardoSidney
Member
From: Brazil, SC
Registered: 2019-05-16
Posts: 6

Re: [SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

seth wrote:

I suspect interference from your desktop session - KDE?
Try to suspend the compositor before altering the mode (Shift+Alt+F12)

I got to test with several DE's (gnome, Cinnamon, deepin) this problem appears in all DE's

Offline

#6 2019-05-21 11:44:04

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

Well, the posted xorg log doesn't explain the xrandr output. Something *must* happen inbetween.
Cut out your DM (use startx, post the used xinitrc) and all DE cruft (just run an xterm. openbox, if you must).
Esp. ensure you're not running some arandr daemon.

Offline

#7 2019-05-30 14:19:39

LeonardoSidney
Member
From: Brazil, SC
Registered: 2019-05-16
Posts: 6

Re: [SOLVED] Driver nvidia-390xx dual monitor incorrect resolution on VGA

seth wrote:

Well, the posted xorg log doesn't explain the xrandr output. Something *must* happen inbetween.
Cut out your DM (use startx, post the used xinitrc) and all DE cruft (just run an xterm. openbox, if you must).
Esp. ensure you're not running some arandr daemon.

Sorry for delay. I found the solution with your request to show my nouveau.log. thanks

What did I do?

First I looked in the file(https://pastebin.com/DYcrj36T) for the correct resolution, which I found on the line: 271

[    33.692] (II) NOUVEAU(0): Modeline "1366x768"x59.8   85.50  1366 1436 1579 1792  768 771 774 798 +hsync +vsync (47.7 kHz eP)

although the command cvt 1366 768 return 1368 768, using the resolution I found in the file I gave the following command:

xrandr --newmode "1366x768"   85.50  1366 1436 1579 1792  768 771 774 798 +hsync +vsync
xrandr --addmode VGA-0 1366x768
xrandr --output VGA-0 --mode 1366x768

And this works, i found in my DE the correct resolution for my secondary monitor
well, command cvt 1366 768 still returns 1368 768

Last edited by LeonardoSidney (2019-06-03 11:18:46)

Offline

Board footer

Powered by FluxBB