Command to cheat Fedora to indicate that have connected a secondary monitor?

Hello Friends.

Introduction

a laptop normally can have as a display port connector either VGA or HDMI, some laptops even both. Well if in this laptop is connected a secondary monitor then you are able to drag and drop any window from the primary to the secondary monitor and work in peace. It applies for any workspace as well too.

Situation

Through Remmina is possible get remote access from a Host laptop to a target laptop - for simplicity it in the same LAN - in peace. The situation is that the target laptop does not have a secondary monitor and the host laptop has a secondary monitor. Therefore:

Host Laptop --- --- --->>> Target Laptop 
1 Secondary    Remmina      0 Secondary  
 Monitor                      Monitor  

Goal

I want need to know if is possible execute a command in the target laptop to cheat Fedora to indicate that it has connected a secondary monitor based on the same settings than the one connected in the Host laptop. Of course, there is no a secondary monitor connected in the Target Laptop.

Therefore the “fake” scenario should be the same as if exists two identical displays/monitors and each one is connected to each laptop. Thus in the Host laptop is possible drag and drop any window to the secondary monitor - it without matter if really the Target monitor does not have a real secondary monitor connected.

Is possible accomplish this goal?

Thank You.

Maybe you can use xorg-x11-drv-dummy:

% doas dnf info xorg-x11-drv-dummy.x86_64
Last metadata expiration check: 1:59:50 ago on Thu Jun 29 14:02:39 2023.
Available Packages
Name : xorg-x11-drv-dummy
Version : 0.3.7
Release : 18.fc38
Architecture : x86_64
Size : 17 k
Source : xorg-x11-drv-dummy-0.3.7-18.fc38.src.rpm
Repository : fedora
Summary : Xorg X11 dummy video driver
URL : http://www.x.org
License : MIT
Description : X.Org X11 dummy video driver.

1 Like

Thank you, I am going to do a research about that … if it works, your answer is going to be marked as valid.