If you get all time remark from external display port, the fix is to make a startup script which determines the correct port.
1. Check the display number
ps axu | grep "X "
2. Add the script
#! /bin/sh
export DISPLAY=:0
3. Make the script executable
chmod +x scripname-here
Edit: some reason Mint 20 started to work propebly when I borrowed PCLinuxOS´s /etc/X11/xorg.conf
file. Mint was not able to make as good file as PCLinuxOS.
xorg.conf file:
# File generated by XFdrake (rev 262502)
# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************
Section "ServerFlags"
Option "DontZap" "False" # disable
#DontZoom # disable
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection
Section "Module"
Load "v4l" # Video for Linux
EndSection
Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Monitor"
Identifier "monitor2"
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Device"
Identifier "device1"
VendorName "Advanced Micro Devices, Inc. [AMD/ATI]"
BoardName "ATI Radeon HD 4870 and earlier"
Driver "ati"
Screen 0
BusID "PCI:1:5:0"
Option "DPMS"
EndSection
Section "Device"
Identifier "device2"
VendorName "Advanced Micro Devices, Inc. [AMD/ATI]"
BoardName "ATI Radeon HD 5000 to HD 6300 (radeon/fglrx)"
Driver "ati"
Screen 0
BusID "PCI:2:0:0"
Option "DPMS"
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
EndSection
Section "Screen"
Identifier "screen2"
Device "device2"
Monitor "monitor2"
EndSection
Section "ServerLayout"
Identifier "layout1"
Screen "screen1"
Screen "screen2" RightOf "screen1"
#Option "Xinerama"
EndSection