Dual Monitor problems with MSI laptop

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Dual Monitor problems with MSI laptop

Post by interdigitated » Thu Feb 09, 2017 2:20 pm

Hello, I am having some strange problems when attempting to use an external monitor with my MSI laptop.
I have found people with similar issues, but not identical issues.

Hardware: Nvidia GTX 1060 AND intel HD onboard graphics (low performance power saving mode) The problem exists when using either driver/mode

Software: linux mint 18.1 64x, cinnamon 3.2.7, kernel 4.4.0-53-generic, Nvidia Prime and Nvidia driver-367
If I switch to the open source driver, the external monitor doesn't detect anything.

The problem:
So when I go to Display settings, I see both monitors, and I can activate both, but when I do the mouse is trapped on the external monitor, and instead of moving over to the laptop screen it scrolls the desktop over within the external monitor.
I can click on the task bar, but I cannot interact with the desktop under and circumstances.
If I set them to Mirrored, it works for a few minutes, gets laggy then crashes Xserver

If I go into the NVIDIA X Server settings, it only detects 1 monitor (the external)

any suggestions?
Last edited by interdigitated on Sun Feb 12, 2017 5:44 pm, edited 1 time in total.

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Fri Feb 10, 2017 3:58 pm

1. Use this command in the Terminal and post the output:

Code: Select all

xrandr --verbose
2. What is the brand and model number of the monitor, and how is it connected, including any adapter.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Sun Feb 12, 2017 5:37 pm

I'll have to get back to you on the model of the monitor as it is at work.
I am using an HDMI (Laptop) to DVI (Monitor) connect them. I also tried a co-workers thunderbolt (mini DVI) to VGA adapter resulting in the same problem.

terminal output of xrandr --verbose:


Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
Identifier: 0x207
Timestamp: 19647
Subpixel: unknown
Clones:
CRTCs: 1 2 3 4
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: TMDS
supported: TMDS
ConnectorType: HDMI
ConnectorNumber: 1
_ConnectorLocation: 1
DP-0 disconnected (normal left inverted right x axis y axis)
Identifier: 0x208
Timestamp: 19647
Subpixel: unknown
Clones:
CRTCs: 1 2 3 4
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: DisplayPort
supported: DisplayPort
ConnectorType: DisplayPort
ConnectorNumber: 3
_ConnectorLocation: 3
DP-1 disconnected (normal left inverted right x axis y axis)
Identifier: 0x209
Timestamp: 19647
Subpixel: unknown
Clones:
CRTCs: 1 2 3 4
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: TMDS
supported: TMDS
ConnectorType: DisplayPort
ConnectorNumber: 3
_ConnectorLocation: 3
eDP-1-1 connected primary 1920x1080+0+0 (0x44) normal (normal) 344mm x 193mm
Identifier: 0x42
Timestamp: 19647
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0 5 6
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff000daed21500000000
1219010495221378024205ac4f44ac28
0c505400000001010101010101010101
010101010101b43b804a713834406442
6a0058c110000018000000fe004e3135
364847452d45414c0a20000000fe0043
4d4e0a202020202020202020000000fe
004e3135364847452d45414c0a2000df
scaling mode: Full aspect
supported: None, Full, Center, Full aspect
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
1920x1080 (0x44) 152.840MHz -HSync -VSync *current +preferred
h: width 1920 start 2020 end 2086 total 2250 skew 0 clock 67.93KHz
v: height 1080 start 1086 end 1096 total 1132 clock 60.01Hz
1920x1080 (0x45) 138.500MHz +HSync -VSync
h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 66.59KHz
v: height 1080 start 1083 end 1088 total 1111 clock 59.93Hz
1680x1050 (0x46) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1680x1050 (0x47) 119.000MHz +HSync -VSync
h: width 1680 start 1728 end 1760 total 1840 skew 0 clock 64.67KHz
v: height 1050 start 1053 end 1059 total 1080 clock 59.88Hz
1600x1024 (0x48) 103.125MHz +HSync +VSync
h: width 1600 start 1600 end 1656 total 1664 skew 0 clock 61.97KHz
v: height 1024 start 1024 end 1029 total 1030 clock 60.17Hz
1400x1050 (0x49) 122.000MHz +HSync +VSync
h: width 1400 start 1488 end 1640 total 1880 skew 0 clock 64.89KHz
v: height 1050 start 1052 end 1064 total 1082 clock 59.98Hz
1280x1024 (0x4a) 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
1440x900 (0x4b) 106.500MHz -HSync +VSync
h: width 1440 start 1520 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
1280x960 (0x4c) 108.000MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.00KHz
v: height 960 start 961 end 964 total 1000 clock 60.00Hz
1360x768 (0x4d) 84.750MHz -HSync +VSync
h: width 1360 start 1432 end 1568 total 1776 skew 0 clock 47.72KHz
v: height 768 start 771 end 781 total 798 clock 59.80Hz
1360x768 (0x4e) 72.000MHz +HSync -VSync
h: width 1360 start 1408 end 1440 total 1520 skew 0 clock 47.37KHz
v: height 768 start 771 end 781 total 790 clock 59.96Hz
1152x864 (0x4f) 81.620MHz -HSync +VSync
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.70KHz
v: height 864 start 865 end 868 total 895 clock 60.00Hz
1024x768 (0x50) 133.475MHz -HSync +VSync DoubleScan
h: width 1024 start 1100 end 1212 total 1400 skew 0 clock 95.34KHz
v: height 768 start 768 end 770 total 794 clock 60.04Hz
1024x768 (0x51) 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
960x720 (0x52) 117.000MHz -HSync +VSync DoubleScan
h: width 960 start 1024 end 1128 total 1300 skew 0 clock 90.00KHz
v: height 720 start 720 end 722 total 750 clock 60.00Hz
928x696 (0x53) 109.150MHz -HSync +VSync DoubleScan
h: width 928 start 976 end 1088 total 1264 skew 0 clock 86.35KHz
v: height 696 start 696 end 698 total 719 clock 60.05Hz
896x672 (0x54) 102.400MHz -HSync +VSync DoubleScan
h: width 896 start 960 end 1060 total 1224 skew 0 clock 83.66KHz
v: height 672 start 672 end 674 total 697 clock 60.01Hz
960x600 (0x55) 77.000MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 74.04KHz
v: height 600 start 601 end 604 total 617 clock 60.00Hz
960x540 (0x56) 69.250MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 66.59KHz
v: height 540 start 541 end 544 total 555 clock 59.99Hz
800x600 (0x57) 81.000MHz +HSync +VSync DoubleScan
h: width 800 start 832 end 928 total 1080 skew 0 clock 75.00KHz
v: height 600 start 600 end 602 total 625 clock 60.00Hz
800x600 (0x58) 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
800x600 (0x59) 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
840x525 (0x5a) 73.125MHz -HSync +VSync DoubleScan
h: width 840 start 892 end 980 total 1120 skew 0 clock 65.29KHz
v: height 525 start 526 end 529 total 544 clock 60.01Hz
840x525 (0x5b) 59.500MHz +HSync -VSync DoubleScan
h: width 840 start 864 end 880 total 920 skew 0 clock 64.67KHz
v: height 525 start 526 end 529 total 540 clock 59.88Hz
800x512 (0x5c) 51.562MHz +HSync +VSync DoubleScan
h: width 800 start 800 end 828 total 832 skew 0 clock 61.97KHz
v: height 512 start 512 end 514 total 515 clock 60.17Hz
700x525 (0x5d) 61.000MHz +HSync +VSync DoubleScan
h: width 700 start 744 end 820 total 940 skew 0 clock 64.89KHz
v: height 525 start 526 end 532 total 541 clock 59.98Hz
640x512 (0x5e) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 664 end 720 total 844 skew 0 clock 63.98KHz
v: height 512 start 512 end 514 total 533 clock 60.02Hz
720x450 (0x5f) 53.250MHz -HSync +VSync DoubleScan
h: width 720 start 760 end 836 total 952 skew 0 clock 55.93KHz
v: height 450 start 451 end 454 total 467 clock 59.89Hz
640x480 (0x60) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 688 end 744 total 900 skew 0 clock 60.00KHz
v: height 480 start 480 end 482 total 500 clock 60.00Hz
640x480 (0x61) 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
680x384 (0x62) 42.375MHz -HSync +VSync DoubleScan
h: width 680 start 716 end 784 total 888 skew 0 clock 47.72KHz
v: height 384 start 385 end 390 total 399 clock 59.80Hz
680x384 (0x63) 36.000MHz +HSync -VSync DoubleScan
h: width 680 start 704 end 720 total 760 skew 0 clock 47.37KHz
v: height 384 start 385 end 390 total 395 clock 59.96Hz
576x432 (0x64) 40.810MHz -HSync +VSync DoubleScan
h: width 576 start 608 end 668 total 760 skew 0 clock 53.70KHz
v: height 432 start 432 end 434 total 447 clock 60.06Hz
512x384 (0x65) 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
400x300 (0x66) 20.000MHz +HSync +VSync DoubleScan
h: width 400 start 420 end 484 total 528 skew 0 clock 37.88KHz
v: height 300 start 300 end 302 total 314 clock 60.32Hz
400x300 (0x67) 18.000MHz +HSync +VSync DoubleScan
h: width 400 start 412 end 448 total 512 skew 0 clock 35.16KHz
v: height 300 start 300 end 301 total 312 clock 56.34Hz
320x240 (0x68) 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

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Sun Feb 12, 2017 6:28 pm

The xrandr output doesn't list any external monitor connected. I need to see some additional info. Use these commands and post the output:

Code: Select all

1. inxi -SMCGxI
2. lspci -nnk |egrep -A3 -i "3D|VGA"
3. dpkg -l |grep -i nvidia
4. ls /etc/modprobe.d
5. ls /etc/X11
6. Open the File Manager and go to /home/your-user-name/.config and post the monitors.xml file, if it exists.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Wed Feb 15, 2017 5:59 pm

1. $ inxi -SMCGxI

System: Host: #omitted# Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.1)
Distro: Linux Mint 18.1 Serena
Machine: Mobo: Micro-Star model: MS-16JB v: REV:1.0
Bios: American Megatrends v: E16JBIMS.106 date: 09/26/2016
CPU: Quad core Intel Core i7-6700HQ (-HT-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 20735
clock speeds: max: 3500 MHz 1: 1163 MHz 2: 1102 MHz 3: 950 MHz
4: 1099 MHz 5: 1017 MHz 6: 899 MHz 7: 899 MHz 8: 1849 MHz
Graphics: Card-1: Intel Skylake Integrated Graphics bus-ID: 00:02.0
Card-2: NVIDIA Device 1c20 bus-ID: 01:00.0
Display Server: X.Org 1.18.4 driver: nvidia
Resolution: 1920x1080@60.01hz
GLX Renderer: GeForce GTX 1060/PCIe/SSE2
GLX Version: 4.5.0 NVIDIA 367.57 Direct Rendering: Yes
Info: Processes: 226 Uptime: 1:17 Memory: 1111.7/15923.3MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.461) inxi: 2.2.35

2. $ lspci -nnk |egrep -A3 -i "3D|VGA"

00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake Integrated Graphics [8086:191b] (rev 06)
DeviceName: Onboard IGD
Subsystem: Micro-Star International Co., Ltd. [MSI] Skylake Integrated Graphics [1462:11d5]
Kernel driver in use: i915_bpo
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c20] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:11d5]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_367, nvidia_367_drm

3. $ dpkg -l |grep -i nvidia

ii bbswitch-dkms 0.8-3ubuntu1 amd64 Interface for toggling the power on NVIDIA Optimus video cards
ii libcuda1-367 367.57-0ubuntu0.16.04.1 amd64 NVIDIA CUDA runtime library
ii nvidia-367 367.57-0ubuntu0.16.04.1 amd64 NVIDIA binary driver - version 367.57
ii nvidia-opencl-icd-367 367.57-0ubuntu0.16.04.1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.2linuxmint1 amd64 Tools to enable NVIDIA's Prime
ii nvidia-prime-applet 1.0.6 all An applet for NVIDIA Prime
ii nvidia-settings 361.42-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver

4. ls /etc/modprobe.d

alsa-base.conf dkms.conf
blacklist-ath_pci.conf fbdev-blacklist.conf
blacklist.conf intel-microcode-blacklist.conf
blacklist-firewire.conf iwlwifi.conf
blacklist-framebuffer.conf mlx4.conf
blacklist-modem.conf nvidia-graphics-drivers.conf
blacklist-oss.conf vmwgfx-fbdev.conf
blacklist-rare-network.conf xboxdrv.conf
blacklist-watchdog.conf

5. ls /etc/X11

app-defaults xorg.conf.01202017 Xresources
default-display-manager xorg.conf.01232017 Xsession
fonts xorg.conf.02012017 Xsession.d
rgb.txt xorg.conf.02042017 Xsession.options
xinit xorg.conf.02092017 xsm
xkb Xreset
xorg.conf Xreset.d

6. monitors .xml

<monitors version="1">
<configuration>
<clone>no</clone>
<output name="HDMI-0">
</output>
<output name="DP-0">
</output>
<output name="DP-1">
</output>
<output name="eDP-1-1">
<vendor>CMN</vendor>
<product>0x15d2</product>
<serial>0x00000000</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
</configuration>
<configuration>
<clone>no</clone>
<output name="HDMI-0">
</output>
<output name="DP-0">
<vendor>SAM</vendor>
<product>0x058a</product>
<serial>0x59435559</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>1920</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
<output name="DP-1">
</output>
<output name="eDP-1-1">
<vendor>CMN</vendor>
<product>0x15d2</product>
<serial>0x00000000</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
</configuration>
<configuration>
<clone>no</clone>
<output name="HDMI-0">
<vendor>SAM</vendor>
<product>0x058b</product>
<serial>0x59435559</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
<output name="DP-0">
</output>
<output name="DP-1">
</output>
<output name="eDP-1-1">
<vendor>CMN</vendor>
<product>0x15d2</product>
<serial>0x00000000</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>1920</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
</configuration>
<configuration>
<clone>yes</clone>
<output name="HDMI-0">
<vendor>SAM</vendor>
<product>0x058b</product>
<serial>0x59435559</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
<output name="DP-0">
</output>
<output name="DP-1">
</output>
<output name="eDP1">
<vendor>CMN</vendor>
<product>0x15d2</product>
<serial>0x00000000</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>1920</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
<output name="VIRTUAL1">
</output>
</configuration>
</monitors>

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Thu Feb 16, 2017 9:24 am

The Integrated Intel graphics is also enabled. Go into the BIOS and disable it.

Code: Select all

Graphics: Card-1: Intel Skylake Integrated Graphics bus-ID: 00:02.0
Card-2: NVIDIA Device 1c20 bus-ID: 01:00.0
Then using the inxi -Gx command should only show the Nvidia card:

Code: Select all

Card-1: NVIDIA Device 1c20 bus-ID: 01:00.0
Check if the two displays are working correctly. If not, then use this command in the Terminal:

Code: Select all

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1 --mode 1920x1080 --right-of HDMI-0
Check if the two displays are working correctly. If not, then use this command, which switches the position of the two displays:

Code: Select all

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1 --mode 1920x1080 --left-of HDMI-0
This is just a test and the effect will only last for one session.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Thu Feb 16, 2017 2:03 pm

It does not appear that I can disable the integrated graphics from the bios, I've attached a picture.
I updated the bios just in case that would help, but there is still nothing in the menu that is related to GPU, integrated graphics, or chipset.
IMG_20170216_094148.jpg


Also, i'm back at work so here is the output when the external monitor is attached:


xrandr --verbose

Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (0x24a) normal (normal left inverted right x axis y axis) 531mm x 298mm panning 3840x1080+0+0
Identifier: 0x207
Timestamp: 1015992
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0 1 2 3
Panning: 3840x1080+0+0
Tracking: 3840x1080+0+0
Border: 0/0/0/0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff004c2d8b0559554359
2b14010380351e782a6041a6564a9c25
1250542308008100814081809500a940
b30001010101023a801871382d40582c
4500132a2100001e000000fd00383c1e
5111000a202020202020000000fc0053
796e634d61737465720a2020000000ff
0048564e5a4130313531380a202001f1
02010400023a80d072382d40102c4580
132a2100001e011d007251d01e206e28
5500132a2100001e011d00bc52d01e20
b8285540132a2100001e8c0ad0902040
31200c405500132a210000188c0ad08a
20e02d10103e9600132a210000180000
00000000000000000000000000000000
00000000000000000000000000000013
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: TMDS
supported: TMDS
ConnectorType: HDMI
ConnectorNumber: 1
_ConnectorLocation: 1
1920x1080 (0x24a) 148.500MHz +HSync +VSync *current +preferred
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
1920x1080 (0x24b) 148.500MHz +HSync +VSync
h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz
v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz
1680x1050 (0x46) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1600x1200 (0x24c) 162.000MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.00KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.00Hz

I removed the rest of the modes from the post.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Thu Feb 16, 2017 6:13 pm

I think I may have found a reasonable work around, by using these two commands you provided

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1 --mode 1920x1080 --right-of HDMI-0

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1 --mode 1920x1080 --left-of HDMI-0


I can switch between the situation I initially described where the external scrolls across the desktop and the laptop screen is inaccessible, and a much more usable state where the desktop spans the two screens but everything else behaves normally. Using the window docking (left or right) it allows me to full screen windows on the external or laptop display emulating a non-spanning dual screen setup.

I realize that this isn't what those commands should do, but this is an acceptable end for me.
If you want a full resolution to this I can keep trying stuff, but otherwise thanks for all of your help.

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Thu Feb 16, 2017 8:39 pm

I suggest to continue using the xrandr commands because there is an obvious configuration problem with the X.Org X Server.
You can choose which one that you want to have executed automatically after each system restart, by adding it to the Default file. Use this command to open it:

Code: Select all

gksudo xed /etc/mdm/Init/Default
Add the command at the bottom, just above the last line that says "exit 0".

Do you need to use both commands? If yes, then the second can be added to a desktop script.

Here's a tip in case you're not aware of it, while using the Terminal. Press the UP key to display previously typed and executed commands, so you won't need to retype them.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Mon Feb 20, 2017 1:32 pm

Ok, bad news.
Now when I attempt my workaround I get the the following error for either command:
warning: output eDP1 not found; ignoring

I fixed it for now, but I think it's going to get worse.
I noticed in the display settings window my laptop display is now called eDP-1-1

So I entered this command:
xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP-1-1 --mode 1920x1080 --right-of HDMI-0

which had no effect and no errors.

so then I entered:
xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP-1-1 --mode 1920x1080 --left-of HDMI-0

which made the monitors mirrored.

then I repeated the first command:
xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP-1-1 --mode 1920x1080 --right-of HDMI-0

which returned it to the state where the desktop is evenly stretched over two monitors in a functional state.

This behavior is very bizarre. I am anticipating that in a few weeks my monitor will be named eDP-1-1-1-1-1-1-1-1-1 or something ridiculous like that.

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Mon Feb 20, 2017 3:54 pm

The connected output name can change, depending on which graphics driver is enabled. You have dual graphics with both Intel and Nvidia GPUs, so you must have switched GPUs since my last post. There will only be the two names EDP1 and EDP1-1 and no others. If you plan on switching GPUs sometimes, then it would probably be better to remove the xrandr command from the /etc/mdm/Init/Default file and then use one of these two methods.

1. First type and execute both xrandr commands in the Terminal. After that you can simply press the UP Arrow key to display whichever one you need to use. You can also type history to display all previously executed commands and then copy and paste the correct one. Type history -c to remove the list of all saved commands.

2. Create two desktop launchers. One would be activated when the Nvidia GPU was enabled and the other activated when the Intel GPU is enabled.
To create a launcher, right click on the desktop and select “Create a new launcher here...”. For the Name, type Nvidia. For the Command, type the command below that works:

Code: Select all

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1 --mode 1920x1080 --right-of HDMI-0
xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1-1 --mode 1920x1080 --right-of HDMI-0
Click OK. Right click on the launcher icon and select Properties > Permissions. Check that the checkbox next to “Allow executing file as a program” is marked.

Repeat the steps for the second launcher but for the Name use Intel.

If you want to use the Nvidia logo icon, then go to /usr/share/linuxmint/mintdrivers/icons/nvidia.png
If you want to use the Intel logo icon, then download it from here: http://imgur.com/z2vaKtY
Click on the 3 dots and select Download Post.
Last edited by roblm on Wed Feb 22, 2017 10:30 am, edited 1 time in total.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Mon Feb 20, 2017 4:25 pm

I had not switched GPUs since the last post as I only use the Intel GPU when I need extended battery life. That situation is infrequent and has not occurred for more than 2 weeks.

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Mon Feb 20, 2017 4:34 pm

That's the only situation I can remember where I've seen a connected output name change.

Do you see the same display problem if you run a live session using the Mint installation DVD or USB?

If not, then you can try re-installing Mint, but sometimes what you see in the live session is not the same after an actual installation to disk.

EDITED: However, you will be using the nouveau driver and won't be able to install the Nvidia driver to test.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Tue Feb 21, 2017 7:25 pm

I haven't had time to try a live disk yet, but I'm on it.

So today, my work around failed resulting in a new state where the laptop-screen is accessible, the desktop is 'one large screen' but the external scrolls over when I move over to the laptop side of things.

However, I discovered that if I enter the command:

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP-1-1 --mode 1920x1080 --left-of HDMI-0

I get mirrored display, if I repeat the command I get a fully functioning desktop that is not 'one big screen' but two monitors working together on an extended desktop they way they should. (except my monitor is now physically on the wrong side of my laptop... no big deal provided this state isn't temporary)

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Wed Feb 22, 2017 9:41 am

First post the Xorg.0.log file. Open the System Log to view it. Press Ctrl+A to select the entire file contents. Right click on the screen and select “Copy”. Don't save it to a file. Open the Mint Forum reply window and select “Code” in the menu. Press Ctrl+V to paste the lines between the two code words. If you have problems posting that long file, then upload it to github.com by using this command:

Code: Select all

pastebin /var/log/Xorg.0.log

Post the URL link that displays in the Terminal window.

I checked the monitors.xml file again and there are 4 different configurations, which means you had made 4 changes in System Settings > Display previously. The first 3 configs was using eDP1-1 and the most recent config was using eDP1, which is what I used in the xrandr commands. That output name should not have changed without a graphics driver change. It's possible the first 3 configs were with the default nouveau driver enabled and the last one with the Nvidia driver enabled. However, to add more confusion, the output name HDMI-0 was the same.

Other steps you can try:
Upgrading the kernel. Go to Update Manager > View > Linux kernels and install the 4.8 kernel and reboot.

Use a different Nvidia driver instead of nvidia-367 . If none are listed in Driver Manager, then add the graphics-drivers PPA, using these commands:

Code: Select all

sudo apt-add-repository ppa:graphics-drivers/ppa		
sudo apt update
Then check in Driver Manager for newer drivers.


User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Wed Feb 22, 2017 2:47 pm

The last section in the monitors.xml file, listing eDP1, must be a misconfiguration, so the file should be deleted. The log file shows eDP1-1. Go to /home/your-user-name/.config and delete it.

Log out and back in and check if the screens are displaying correctly. If not, then use this command:

Code: Select all

xrandr --output HDMI-0 --mode 1920x1080 --primary --output eDP1-1 --mode 1920x1080 --right-of HDMI-0
Then go to System Settings > Display and click the Apply button, which will create a new monitors.xml file. Log out and back in again. Check if the screens are displaying correctly.


EDITED: if not correct, then post the monitors.xml file.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Wed Feb 22, 2017 3:15 pm

Ok, two things:

I deleted the monitors.xml and the scrolling problem disappeared.
Now my monitors are always oriented correctly, but the problem that I cannot maximize windows to the laptop monitor persists, and is very frustrating.

Also, now when I change drivers in the Driver Manager, the process never finishes. It says applying changes, gets close to the end, but never finishes. If I close the window and log off, X crashes, then I restart and the selected driver is apparently running at that point.

User avatar
roblm
Level 9
Level 9
Posts: 2701
Joined: Sun Feb 24, 2013 2:41 pm

Re: Dual Monitor problems with MSI laptop

Post by roblm » Wed Feb 22, 2017 3:21 pm

Did you use the xrandr command? If not, then use it and do the other steps.

interdigitated
Level 1
Level 1
Posts: 44
Joined: Thu Feb 09, 2017 1:59 pm

Re: Dual Monitor problems with MSI laptop

Post by interdigitated » Wed Feb 22, 2017 4:08 pm

yes I tried both and neither have solved the issue entirely, but I am much closer

I am now using Linux Kernel 4.8.0-39 with no observable changes
Different drivers didn't change anything either.

I am much closer now, the xrandr commands no longer have a weird intermediate mirrored state or do different things when executed two or more times in a row.
I have not attempted to test or use the intel driver, that will eventually come up but probably not for awhile.

The only problem I have now is that I cannot maximize anything in my laptop screen. I can get icons on both, access the desktop on both, but if I snap to or maximize anything in the laptop screen, it maximizes into the external monitor. Other than this one problem they are behaving as 2 monitors, AND my nvidia driver is recognizing both are there for the first time ever! It calls it PRIME display

Post Reply

Return to “Graphics Cards & Monitors”