#StackBounty: #multiple-monitors #xorg #xorg.conf No way to create second X screen assigned to second graphics card

Bounty: 50

It seems that the X server only allows one X screen on this PC, A second Section "Screen" Identifier "Screen1" does nothing but the GPU-1 and its connected monitors get to be recognized even though they can’t be activated.
I’m using the following setup:

  1. RTX3090 on PCI:1:0:0 (GPU-0)
    • DP-2: Samsung LC49G95T
  2. RTX3090 on PCI:78:0:0 (GPU-1)
    • HDMI-1-2: ASUS VG27AQL1A
    • HDMI-1-1: ASUS XG17A
  • Monitor setup should be like this: (after running the arandr script obviously throws XRandR failed error message: XRandR failed: XRandR returned error code 1: b'xrandr: Configure crtc 4 failedn')

arandr

  • Using nvidia-settings‘s configuration file after reboot it is still no use

nvidia-settings

  • X screen 0 must contain DP-2 and X screen 1, HDMI-1-1 with HDMI-1-2
  • /etc/X11/xorg.conf.d/* has nothing but 00-keyboard.conf and 30-touchpad.conf, both containing InputClass sections
  • Have tried moving the xorg.conf file to xorg.conf.d but the bad effect still remains, both HDMI monitors can’t be activated.
  • I want to use the nfancurve script to control both GPU’s fan speed, hence "Coolbits" "4"
  • Surprisingly, connecting the three monitors into one GPU makes them available, and activating them is achievable.
  • Also, replacing the identifiers "Device0" to "Device1" and vice versa makes HDMI-1 and HDMI-2 monitors being able to activate, but DP-1-2 only being recognized but can’t be activated. As if this machine won’t allow me to use some GPU-1
  • I suspect my xorg.conf lacks something (maybe EDID off?) and after some googling, there is a user that had the same "no X screen 1" problem, but after upgrading video-nvidia drivers could achieve X server to recognize a second X screen. Still, I’m not willing to upgrade (or downgrade) to a ‘beta’ driver for manjaro, also, not sure how to do that.

/etc/X11/xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 465.31

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" 5120 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     "Samsung"
    ModelName      "Samsung LC49G95T"
    HorizSync       357.0 - 357.0
    VertRefresh     60.0 - 240.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Asus ROG"
    ModelName      "AUS ASUS XG17A"
    HorizSync       30.0 - 255.0
    VertRefresh     48.0 - 240.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Screen          0
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3090"
    BusID          "PCI:1:0:0"
#    Option         "UseDisplayDevice" "DP-2"
#    Option         "ConnectedMonitor" "DP-2"
    Option         "Coolbits" "4"
EndSection

Section "Device"
    Identifier     "Device1"
    Screen          1
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3090"
    BusID          "PCI:78:0:0"
#    Option         "UseDisplayDevice" "HDMI-1-2"
#    Option         "ConnectedMonitor" "HDMI-1-2, HDMI-1-1"
    Option         "Coolbits" "4"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "Stereo" "0"
    Option         "metamodes" "5120x1440_120 +0+0 {AllowGSYNC=Off}"
    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" "HDMI-1-2: nvidia-auto-select +0+0 {AllowGSYNC=Off}, HDMI-1-1: nvidia-auto-select +1440+0 {rotation=left}"
    #    Option         "metamodes" "HDMI-1-1: 1920x1080_240 +2560+960 {rotation=left}, HDMI-1-2: 2560x1440_144 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

~/.local/share/xorg/Xorg.1.log:
https://pastebin.com/PQZV0Hiq


Get this bounty!!!

#StackBounty: #windows-10 #multiple-monitors #thinkpad #usb-c #lg-monitor Connect LG 27UL850-W monitor through USB-C to ThinkPad X1 Yog…

Bounty: 50

I’m using a LG 27UL850-W with a ThinkPad X1 Yoga Gen.2 on Windows 10.
I need to get the monitor working through USB-C but I’m only getting "No signal detected".

What I tried:

  • Installing the driver ("LG HDR 4K Win 10 Driver LG_HDR_4K.zip") failed because the monitor is not detected.
  • HDMI works, so the monitor works (but no 4K)
  • Different USB-C ports
  • Different USB-C cables, inkl. the one shipped with the monitor


Get this bounty!!!

#StackBounty: #drivers #sound #usb #multiple-monitors #hdmi screen not displaying with Startech hdmi to usb adapter

Bounty: 50

I bought a startech hdmi to usb adapter a few weeks ago.

I’ve installed the driver for my ubuntu, display was doing fine.

However, a few weeks later, the screen is now, not displaying any images.

Funny part is that the star tech adapter is recognized when I plugged it in and the strange thing is that the sound channel is using the startech adapter.

Not sure, what is wrong.

When I type xrandr, no additional HDMI plugin is seen.

This is the plugin I’m talking about.

I’ve done all the required updates through apt update.

If you have any ideas, I’m more than glad to hear them.

PS: I was thinking to have a look at the BIOS but not sure, what I should be looking for.


Get this bounty!!!

#StackBounty: #nvidia #20.04 #multiple-monitors #xorg #display saving a X config file for nvidia setting disables my PRIME internal dis…

Bounty: 50

I’m on ubuntu 20.04. I’m using an external monitor with a laptop as shown in nvidia-settings here:
enter image description here

nominally this works. But, to get rid of tearing on the external display, I need to select "Force Composition Pipeline" under Advanced. This is fine, but when I try to save the X config file, a restart would remove my PRIME display completely. Only my external monitor works.

I would have to delete /etc/X11/xorg.conf to get the display back.

Is there a way to save this config and keep the prime display?


Get this bounty!!!

#StackBounty: #nvidia #multiple-monitors #display #suspend How to get external monitor to reconnect after sleep or power off

Bounty: 50

Problem:
On an Ubuntu based laptop, when I sleep or disconnect power to my external monitor then power up the system or reconnect the monitor again, the display doesn’t come on.

Poor man’s solution:
The only way I’ve found to get the external display to work (aside from reboot) is to switch from Joined Display to Mirror Display. As soon as the monitor comes alive I can simply cancel the change to Mirror Displays, monitor settings revert, and the external monitor works as usual.

Grievance:
Unfortunately this causes windows that were on my external monitor to be misarranged across desktop workspaces (PopOS here, Ubuntu 20.10). It’s a fair bit of effort to re-arrange workspaces after the mirror/cancel process.

Hopeful question:
Are there any command line utilities that might force the external monitor to reset without the need to change from Joined Display to Mirror?


Get this bounty!!!

#StackBounty: #xubuntu #multiple-monitors #xfce #display-resolution #xrandr Running xrandr –output eDP1 –scale 0.75×0.75 blacks out m…

Bounty: 50

The DPI of my primary monitor is unreasonably large, so at boot I run xrandr --output eDP1 --scale 0.75x0.75. This is done automatically due to a ~/.config/autostart/xrandr.desktop file that I have containing this command on my Xubuntu 20.04 machine. However, only if my secondary monitor is plugged in, this blacks out the screen on my primary monitor, such that I can only see the mouse. This also makes the secondary monitor a bit glitchy, with extreme screen flickering. This issue can be prevented by waiting to plug in the secondary monitor until the command has already been run, but if the issue has occurred, I believe that the only fix is to log out, unplug the secondary monitor, and log back in.

Where can I begin diagnosing the cause of this issue? Is it a known bug?


Get this bounty!!!

#StackBounty: #multiple-monitors #xorg #display #intel-graphics #vnc x11vnc with virtual display causes window trail

Bounty: 50

I’m using x11vnc on my ubuntu 20.04 to connect my tablet to my virtual display, which I created with xrandr as follows:

xrandr --newmode "2000x1200_60.00"  201.50  2000 2136 2352 2704  1200 1201 1204 1242  -HSync +Vsync 
xrandr --addmode HDMI-1 2000x1200_60.00 
xrandr --output HDMI-1 --mode 2000x1200_60.00 --below eDP-1 
adb reverse tcp:5900 tcp:5900 
x11vnc -clip 2000x1200+0+1080 -viewonly

However, the windows are not rendered properly and I end up getting window trails as shown below:
Window trail in vnc client

I also cannot maximize the windows. According to this post it seems that I need to create virtual displays instead of using HDMI output.
I did try creating a xorg.conf file with dummy driver and also with the intel driver, but I either get glitches or the screen gets black after I reboot.
Most solutions in this forum seem to be outdated. Is there a safer way to create virtual displays? I have this intel graphics card: Mesa Intel® HD Graphics 620.

Also: is there a way to use vnc and virtual desktops with Wayland?
Using x11vnc -rawfb console shows a black screen on my vnc client. Is it even possible to mirror the desktop in Wayland?


Get this bounty!!!

#StackBounty: #windows-10 #multiple-monitors #nvidia-graphics-card #touchscreen Nvidia GPU scaling messes up touch screen calibration

Bounty: 250

Windows 10 computer with 3 monitors attached: one touch screen with native resolution 1280×1024 and 2 identical monitors with native resolution 1920×1080. The touch screen is set as Clone Source in the Nvidia Control Panel, and the 2 other monitors are cloned with it so the setup looks like this:

enter image description here

The 2 monitors should display the exact same image as the touch screen (not considering differences in hardware pixel size), i.e they should display the 1280×1024 image centered with black bands around it to fill the rest of the screen. But the monitors do not have a ‘non-scaling’ mode where they just center the resolution which comes in so using the Nvidia Control Panel they are set to no scaling, and perfoming scaling on the GPU:

enter image description here

This looks exactly as it should. However the result is touch input on the touch screen does not work correctly anymore: it gets scaled somehow. Likely according to the resolution difference. What happens is that touching the center of the screen is ok, but the further away one taps from the center, the further the tap gets registered. Visually:

enter image description here

So the black points are drawn (in Paint, but all other software behaves the same) with the mouse, number 1 being the center of the screen. The red points are the positions where touch input was registered when touching those black points on the touch screen (I offsetted the red points a bit vertically so they are easier to see). Vertically a similar scaling occurs but it’s much less obvious, likely because the difference between 1080 / 1024 is much smaller than 1920 / 1280. This obviously renders touch useless. Turning off GPU scaling makes the problem go away (but makes the 2 monitors display the original image stretched out so not ok), so doe turning off the 2 non-touch monitors.

What exactly causes this? Is there be a solution? Note that calibrating in the Tablet PC settings is not a viable option to fix this because the 2 other monitors might not always be present and we cannot go back and forth, plus I tried calibrating but it’s really hard to even start since one has to guess where to tap to get the points to activate 🙂


Get this bounty!!!

#StackBounty: #multiple-monitors #top-bar Ubuntu 20.04 show date/time/volume on every screen

Bounty: 50

Since the update to 20.04 from 16.04, I see top bar with date and time and volume control — but only on the primary screen of my computer. On the other screens, the top bar is not shown.

I’ve searched with duckgo and google but didn’t find a solution.

This was asked before, but without an answer.

To be clear, I’m looking for something in a package manager or official channel, and not a custom script I can sideload.


Get this bounty!!!

#StackBounty: #multiple-monitors #display #hdmi #display-resolution Issue conecting my PC to a TV

Bounty: 50

I’m running Ubuntu on a PC that I which to connect to a TV. I had trouble making my TV recognize the PC. It says that the resolution of the external device is not supported. Since I could not get an image, I plugged a old monitor to my computer and adjusted the resolution using the monitor. It worked. I got the image on the TV as I wanted, but if a unplug the monitor from my computer, I get the same error on my TV. Apparently, if my monitor is not plugged in, Ubuntu messes up the resolution that I had set and my TV does not show the picture. I think it has something to do with the refresh rate, because I could only get it to work, when I set the refresh rate to 60 hz.

My goal is to use the TV exclusive and have no monitors plugged in my computer. I have no idea of what is happening. I’ve unplugged the power cord from the monitor and everything still works, but if I unplug the dvi cable, Ubuntu changes the resolution and my TV does not display the image.

Can anyone help me?

Here is some more clarification on the situation:

The problem is not the 60Hz refresh rate. I’m fine with the value, the problem is that Ubuntu apparently changes this value automatically when I unplug the monitor, this change in value renders my TV unable to display the image from the PC.

My problem is that I want to have only a TV plugged to my computer, without the need to have a monitor plugged in as well. Even with the monitor completely turned off (with no power cord), if I unplug the DVI cable, Ubuntu changes the resolution and the image stops showing on my TV.

The TV is a Samsung TV (Samsung 50TU8000) and it is connect to the PC using a HDMI cable.

The command xrandr prints the following:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DVI-I-1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  59.96    50.00    59.94    59.93  
   1680x1050     69.88    59.95    59.88  
   1600x1024     60.17  
   1400x1050     74.76    70.00    59.98  
   1600x900      59.95    60.00    59.82  
   1280x1024     75.02    60.02  
   1440x900      59.89    59.90  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      75.00    75.00    70.00    60.00  
   1280x720      60.00    59.99    59.86    60.00    50.00    59.94    59.74  
   1024x768      75.05    60.04    75.03    70.07    60.00  
   960x720       75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   832x624       74.55  
   960x540       59.96    59.99    59.63    59.82  
   800x600       75.00    70.00    65.00    60.00    72.19    75.00    60.32    56.25  
   840x525       74.96    69.88    60.01    59.88  
   864x486       59.92    59.57  
   720x576       50.00  
   800x512       60.17  
   700x525       74.76    70.06    59.98  
   800x450       59.95    59.82  
   720x480       60.00    59.94  
   640x512       75.02    60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    75.00    72.81    75.00    66.67    60.00    59.94  
   720x405       59.51    58.99  
   720x400       70.08  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       75.00    75.00    70.00    60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       75.03    70.07    60.00  
   512x288       60.00    59.92  
   416x312       74.66  
   480x270       59.63    59.82  
   400x300       72.19    75.12    60.32    56.34  
   432x243       59.92    59.57  
   320x240       72.81    75.00    60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DVI-I-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 1872mm x 1053mm
   1920x1080     59.97    59.96    60.00*   50.00    59.94    59.93    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     74.89    69.88    59.95    59.88  
   1600x1024     60.17  
   1400x1050     74.76    70.00    59.98  
   1600x900      59.99    59.94    59.95    60.00    59.82  
   1280x1024     75.02    60.02  
   1440x900      59.89    59.90  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      75.00    75.00    70.00    60.00  
   1280x720      60.00    59.99    59.86    60.00    50.00    59.94    59.74  
   1024x768      75.05    60.04    75.03    70.07    60.00  
   960x720       75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   832x624       74.55  
   960x540       59.96    59.99    59.63    59.82  
   800x600       75.00    70.00    65.00    60.00    72.19    75.00    60.32    56.25  
   840x525       74.96    69.88    60.01    59.88  
   864x486       59.92    59.57  
   720x576       50.00  
   800x512       60.17  
   700x525       74.76    70.06    59.98  
   800x450       59.95    59.82  
   720x480       60.00    59.94  
   640x512       75.02    60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    75.00    72.81    75.00    66.67    60.00    59.94  
   720x405       59.51    58.99  
   720x400       70.08  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       75.00    75.00    70.00    60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       75.03    70.07    60.00  
   512x288       60.00    59.92  
   416x312       74.66  
   480x270       59.63    59.82  
   400x300       72.19    75.12    60.32    56.34  
   432x243       59.92    59.57  
   320x240       72.81    75.00    60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
VGA-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)

The TV does not show BIOs screen when loading. The first image it shows, when I use this set up (with the monitor plugged in and turned off) is the Ubuntu loading screen.


Get this bounty!!!