Hello,
I’m trying to config dual screen in RHEL8 but when I try export DISPLAY=redhat8:0.1 and then run a program (nvidia-settings for example) it says:
"Unable to init server: Could Not connect: Connection refused
ERROR: The control display is undefined; please run ‘nvidia-settings --help’ for usage information"
When I run xrandr (after expor display) says “Can’t open display redhat8:0.1”
If I run xrandr without export Display this happened:
[root@redhat8 ~]# xrandr
Screen 0: minimum 8 x 8, current 1280 x 1024, maximum 32767 x 32767
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-6 disconnected (normal left inverted right x axis y axis)
DP-7 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 380mm x 300mm
1280x1024 60.02*+ 75.02
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32
640x480 75.00 72.81 59.94
As you can see, it skips “DP-5” and it’s the second monitor (I can see it in nvidia-settings and my main monitor is DP-7 but it’s says connected).
I’ve tried unable the noveau drivers, I’m using lightdm, and this is my xorg.conf:
[root@redhat8 X11]# cat xorg.conf
nvidia-xconfig: X configuration file generated by nvidia-xconfig
nvidia-xconfig: version 525.85.05
Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
Screen 1 “Screen0 (1)” RightOf “Screen0”
Screen 2 “Screen0 (2)” RightOf “Screen0 (1)”
Screen 3 “Screen0 (3)” RightOf “Screen0 (2)”
Inactive “InactiveDevice1”
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection
Section “Files”
FontPath “/usr/share/fonts/default/Type1”
EndSection
Section “InputDevice”
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section “InputDevice”
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection
Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro P2200”
BusID “PCI:33:0:0”
Screen 0
EndSection
Section “Device”
Identifier “Device0 (1)”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro P2200”
BusID “PCI:33:0:0”
Screen 1
EndSection
Section “Device”
Identifier “Device0 (2)”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro P2200”
BusID “PCI:33:0:0”
Screen 2
EndSection
Section “Device”
Identifier “Device0 (3)”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro P2200”
BusID “PCI:33:0:0”
Screen 3
EndSection
Section “Device”
Identifier “InactiveDevice1”
Driver “modesetting”
VendorName “Unknown”
EndSection
Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “AllowEmptyInitialConfiguration” “True”
SubSection “Display”
Depth 24
EndSubSection
EndSection
Section “Screen”
Identifier “Screen0 (1)”
Device “Device0 (1)”
Monitor “Monitor0”
DefaultDepth 24
Option “AllowEmptyInitialConfiguration” “True”
SubSection “Display”
Depth 24
EndSubSection
EndSection
Section “Screen”
Identifier “Screen0 (2)”
Device “Device0 (2)”
Monitor “Monitor0”
DefaultDepth 24
Option “AllowEmptyInitialConfiguration” “True”
SubSection “Display”
Depth 24
EndSubSection
EndSection
Section “Screen”
Identifier “Screen0 (3)”
Device “Device0 (3)”
Monitor “Monitor0”
DefaultDepth 24
Option “AllowEmptyInitialConfiguration” “True”
SubSection “Display”
Depth 24
EndSubSection
EndSection
I’ve dualscreen.conf too:
[root@redhat8 X11]# cat xorg.conf.nvidia.dualscreen
nvidia-settings: X configuration file generated by nvidia-settings
nvidia-settings: version 460.73.01
nvidia-xconfig: X configuration file generated by nvidia-xconfig
nvidia-xconfig: version 460.73.01
Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
Option “Xinerama” “0”
EndSection
Section “Files”
FontPath “/usr/share/fonts/default/Type1”
EndSection
Section “InputDevice”
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section “InputDevice”
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “HP LP1965”
HorizSync 30.0 - 80.0
VertRefresh 50.0 - 60.0
Option “DPMS”
EndSection
Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “Acer EK240Y”
HorizSync 30.0 - 80.0
VertRefresh 50.0 - 60.0
EndSection
Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro P2200”
BusID “PCI:33:0:0”
Screen 0
EndSection
Section “Device”
Identifier “Device1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro P2200”
BusID “PCI:33:0:0”
Screen 1
EndSection
Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “UseEdidFreqs” “True”
Option “UseEdid” “True”
Option “Stereo” “0”
Option “metamodes” “DP-7: 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 “metamodes” “DP-5: nvidia-auto-select +0+0 {AllowGSYNC=Off}”
Option “SLI” “Off”
Option “MultiGPU” “Off”
Option “BaseMosaic” “off”
SubSection “Display”
Depth 24
EndSubSection
EndSection
Here you are the monitors in nvidia settings:
Could you help me? please