I was trying to set up gaming to my TV vis sunshine and moonlight. Under windows I have the application Virtual Display Driver to set up a virtual monitor and shutdown my monitor in the other room and play relaxed from the couch.
But as always, i try to get rid of windows and find a solution that works for me under linux.
I don’t know how to set up virtual monitor under linux. There are examples with xrandr, but i use wayland and there is krfb-virutalmonitor. I don’t get it to work with sunshine. Is there an app or command for that, or should i go with a HDMI or DP dummy.
Its still being worked on under linux. I’m using a experimetnal patch by Seas0 which uses pipewire to do it. It still needs work though as it doesn’t seem to be correctly restoring sessions nor does it use the screen sharing portal.I have to use obs which will use the screensharing portal and then make a new virtual monitor with that. From there I can use the experimental branch to screen share the virtual monitor.
Thank you guys for your explanations. I found a solution:
But I am new to linux or editing kernel parameters. So if anybody wants to do it. I used to acer-xv273k-dp1, because i have 3 DP and only one HDMI which I use from time to time.
In the guide above from step 2, i took the EndeavourOS route, so edit the kernel config file in
Restart your PC and you get a virtual EDID monitor which works without problems with sunshine and moonlight.
So now I have the problem that I have a virtual monitor which i don’t need when, I sit at the PC. My next adventure will be writing a udev rule, which sets the resolution the Full HD when DP1 is disabled and set it to the smallest possible when DP1 is enabled, but I guess this will take a while or a script to enable and disable the monitor. The article at the beginning, linked examples which i don’t get yet.
I will not klick solve for a few weeks if i solve the udev rule then i will add it here.
Just use kscreen-doctor to enable and disable the virtual monitor. Example code can be found in the kscreen-doctor --help. I am totally fine writing the one line from time to time, but i am still curious to write a udev rule.
Yeah Im comming from Windows 11 and was using vdd - this caused so many issues and problems that I ended up giving up. Was going to use Apollo potentially as a solution but now I´m on endeavor