16.04.3 - GTX 1050 - dual monitor problems

I am not quite sure if this is the right forum section, lets try.

So this is my setup:
-Ubuntu Mate 16.04.3 (Fresh install)
-Gigabyte Geforce GTX 1050
-Nvidia proprietary driver: 384.111 (exactly same problem with newer drivers)
-Kernel: 4.13.0-32-generic
-Xorg version: 1.19.5
-Dual monitor, main monitor on right. Left monitor is screen (desktop) 1, Right monitor is screen (desktop) 0 (This is how nvidia settings display them, so let’s use these.)
-Separate x screen (set via Nvidia settings GUI program)
-No compiz activated yet (left as is after the fresh install)

I need two separate working desktops, need two independent compiz cubes.

I have it working somehow, desktop #0 (right / main) works fine, but desktop #1 (Left) is the problem. If I try to start anything via taskbar menu on desktop #1, it starts on desktop #0
Workaround is to start terminal, and run (for example start Firefox):

DISPLAY=:0.1 firefox

It starts okay on desktop #1 and everything works.

Obviously this is not what I want

I can not start anything with my mouse, when clicking button 2 on desktop #1.

There is also background image missing. So something is not starting on second (left / #1) desktop.

Last combo that I can get separate X screen to work was Mint 17.2 Mate, and before that very old Ubuntu (Gnome). None of the newer Mint or Ubuntu I tried works perfectly. I decided to use Ubuntu Mate now, since it is almost working, and I do like the look and feel of it.

Here is the current /etc/X11/xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings# nvidia-settings:  version 361.42  (buildd@lgw01-18)  Tue Apr  5 14:33:28 UTC 2016


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 1920 0
    Screen      1  "Screen1" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection


Section "Files"
EndSection


Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
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 "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection


Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Acer AL2423W"
    HorizSync       31.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection


Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Samsung SMS27A650"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection


Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection


Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection


Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-2"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Please ask what you need to know. Or tell me if you had similar problem, and know how to fix it :rolling_eyes: