You are not logged in.

#1 2017-05-19 23:56:39

oneindelijk
Member
Registered: 2017-01-29
Posts: 15

Dual monitors act as one screen on nvidia

Hi,

I have two screens attached to my laptop, one on the HDMI port,
the other one on the VGA port.
The Card is an nvidia GT 550M

After logging in, xmonad starts spread across my two monitors

xrandr gives me this:

Screen 0: minimum 8 x 8, current 3600 x 1080, maximum 16384 x 16384
VGA-0 connected (normal left inverted right x axis y axis)
   1024x768      60.00 +
   800x600       72.19    60.32    56.25  
   640x480       59.94  
   512x384       60.00  
   400x300       72.19  
   320x240       60.05  
HDMI-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm
   1920x1080     60.00*+
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00  
   1024x768      75.03    60.00  
   832x624       74.55  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
LVDS-1-1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1-1 connected 1680x1050+1920+30 (normal left inverted right x axis y axis) 473mm x 296mm
   1680x1050     59.95*+
   1600x1000     60.01  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1152x864      75.00  
   1152x720      59.97  
   1024x768      75.03    60.00  
   832x624       74.55  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
DP-1-1 disconnected (normal left inverted right x axis y axis)
  1024x768 (0x4f) 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 (0x52) 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 (0x54) 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
  800x600 (0x5e) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  512x384 (0x62) 32.500MHz -HSync -VSync DoubleScan
        h: width   512 start  524 end  592 total  672 skew    0 clock  48.36KHz
        v: height  384 start  385 end  388 total  403           clock  60.00Hz
  320x240 (0x65) 12.587MHz -HSync -VSync DoubleScan
        h: width   320 start  328 end  376 total  400 skew    0 clock  31.47KHz
        v: height  240 start  245 end  246 total  262           clock  60.05Hz

I currently have this in /etc/X11/xorg.conf.d/20_monitors.conf

Section "Monitor"
    Identifier  "VGA-1-1"
    Option      "PreferredMode" "1680x1050"
    Option      "RightOf" "HDMI-1-1"
EndSection

Section "Monitor"
    Identifier  "HDMI-1-1"
    Option      "PreferredMode" "1920x1080"
    Option      "Primary" "true"
EndSection

Section "Screen"
        Identifier "Screen0"
        Monitor "HDMI-1-1"
        DefaultDepth 24
EndSection

Section "Screen"
        Identifier "Screen1"
        Monitor "VGA-1-1"
        DefaultDepth 24
EndSection

None of these seems to have any effect, because only this nonexisting VGA-0 monitor is turned on
I was able to vnc into my pc and using xrandr correct the monitors
So I put this line in
/etc/lightdm/lightdm.conf

display-setup-script=xrandr --output HDMI-1-1 --auto --left-of VGA-1-1 --output VGA-1-1 --auto --output VGA-0 --off

I used a configfile for xmonad that worked on a previous install of ubuntu
So I suspect the problem is not with xmonad

I tried removing the nvidia driver
and then xmonad is working on two screens


It is however redrawing the screen rather slowly,
like Windows does when there is no driver installed and it's using the default VGA drivers
although

In [10]: !lsmod | grep i915
i915                 1396736  6
drm_kms_helper        126976  1 i915
drm                   303104  5 i915,drm_kms_helper
intel_gtt              20480  1 i915
i2c_algo_bit           16384  1 i915
video                  36864  2 asus_wmi,i915
button                 16384  1 i915

I have been struggling with these problems for a long time,
I've tried many things but now I'm lost as where to look.

By uninstalling the nvidia driver I now lost the ability in blender to use the GPU for rendering,
so what I would like to achieve is to have nvidia installed, but lightdm using the intel drivers

Please tell me what info I should provide to let you help me

Thanks in advance

Offline

Board footer

Powered by FluxBB