virtual-display Is a Daemon and CLI tool for fedora to enable a virtual display on an empty connector. This leverages the kernel debug sys paths to set an EDID on an empty connector.
It is available on copr or you can build from source (cargo build).
Also it's experimental and might break on updates!
To display connectors info run:
for connector_path in /sys/class/drm/*/status; do
if [[ "$(cat "$connector_path")" == "unknown" ]]; then continue; fi
status=${connector_path%/status}
connector_name="${status#*/card?-}: "
echo -n " $connector_name"
cat "$connector_path"
doneOr run virtual-display status after install.
This should display the following info for your system. If there are no disconnected connectors, this tool is not going to work.
DP-1: connected
DP-2: disconnected
DP-3: disconnected
HDMI-A-1: connectedUsage: virtual-display <COMMAND>
status Get status
--json Print json
daemon Run daemon commands
start Start the daemon (systemd)
stop Stop the daemon (systemd)
enable Enable virtual display
-c, --connector <CONNECTOR> Name of the display connector
disable Disable virtual display
Check my before-stream.sh script that uses this tool to stream from a 4k virtual display to my tv with Sunshine.
https://copr.fedorainfracloud.org/coprs/pvermeer/virtual-display
