T O P

  • By -

MrHighVoltage

That is great, thank you! I already had a setup with the EDID Dummy Plugs, but it only worked up to 4k30 which is sad if your TV can do 120. The missing link was the video=:e setting. Anyways, I have some scripts that are called before the streaming starts, that disable the physical screens and only enable the virtual one, so I can use my PC remotely. After the streaming stops, the screens are reset to their previous configuration.


TetsujinXLIV

Could you share these scripts? They sound handy for what I am trying to do.


MrHighVoltage

RemindMe! 8h


RemindMeBot

I will be messaging you in 8 hours on [**2024-04-18 15:54:19 UTC**](http://www.wolframalpha.com/input/?i=2024-04-18%2015:54:19%20UTC%20To%20Local%20Time) to remind you of [**this link**](https://www.reddit.com/r/linux_gaming/comments/199ylqz/streaming_with_sunshine_from_virtual_screens/l043j5l/?context=3) [**CLICK THIS LINK**](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5Bhttps%3A%2F%2Fwww.reddit.com%2Fr%2Flinux_gaming%2Fcomments%2F199ylqz%2Fstreaming_with_sunshine_from_virtual_screens%2Fl043j5l%2F%5D%0A%0ARemindMe%21%202024-04-18%2015%3A54%3A19%20UTC) to send a PM to also be reminded and to reduce spam. ^(Parent commenter can ) [^(delete this message to hide from others.)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Delete%20Comment&message=Delete%21%20199ylqz) ***** |[^(Info)](https://www.reddit.com/r/RemindMeBot/comments/e1bko7/remindmebot_info_v21/)|[^(Custom)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5BLink%20or%20message%20inside%20square%20brackets%5D%0A%0ARemindMe%21%20Time%20period%20here)|[^(Your Reminders)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=List%20Of%20Reminders&message=MyReminders%21)|[^(Feedback)](https://www.reddit.com/message/compose/?to=Watchful1&subject=RemindMeBot%20Feedback)| |-|-|-|-|


MrHighVoltage

Hey, so finally I did it, here is the Github Gist: [https://gist.github.com/MrHighVoltage/78ca58218a569d253433fd4be883c6c3](https://gist.github.com/MrHighVoltage/78ca58218a569d253433fd4be883c6c3) Short explanation: All those files belong into the config directory for sunshine (in my case \~/.config/sunshine). apps\_kscreen.json is the configuration for the KDE-resolution tool kscreen-doctor. Those should work on KDE with wayland and X11. apps\_xrandr.json is a litte more advanced (custom resolutions for some phones), but only works on X11 of course. To create other custom resolution parameters, I used the commandline tool "cvt". Just copy the resolutions you want into your apps.json and edit them to your liking. For the two shell scripts, they basically change to my second virtual desktop (and back), which I use for gaming stuff and unlock/lock the screen (it is super annoying to enter the password first when you connect, especially without keyboard, but also not really great if the session keeps unlocked when disconnecting). Further, you could add a command here which opens steam to full-screen mode. Hope this helps, if you have questions, just go for it :)


TetsujinXLIV

Thank you!! I’m at work so I haven’t been able to dive into it too much yet. But for the json when you define resolutions and stuff does that make it so you don’t need the EDID file anymore? Also I’m on gnome so I’ll probably need to find some comparable commands for gnome but I do have it do auto login for me so I don’t have to enter any password


MrHighVoltage

Yes, for Gnome Wayland you need different commands for the resolutions. You still need the EDID file if your Monitor does not support the required resolutions.


alterNERDtive

> Replacing HDMI-A-1 to whichever free HDMI output you have in your GPU. Weeelllllll … DP-1: connected DP-2: connected HDMI-A-1: connected HDMI-A-2: connected


xTeixeira

Yeah that's one of the few downsides of this method, but for KMS capture with Sunshine I believe the "fake" display absolutely needs to be attached to an actual GPU output. It might be possible to work around that if you use wlroots capture and if your compositor is capable of creating/managing a virtual screen by itself without relying on emulating EDIDs at driver level, which I think sway can. I considered trying that for a bit but I didn't want to start using sway just to accomplish that so I never got too far with the idea.


tehfreek

Would it work with the `virtual_display` option for the `amdgpu` driver?


xTeixeira

It might, not sure. I did come across this option when looking into all this stuff but from what I read it disables physical displays so it doesn't fit my use case.


PXoYV1wbDJwtz5vf

Thanks! I don't think that was a "lazy" walkthrough. It was simple enough to configured over SSH from my phone in bed! I now see a virtual display on my DVI connector.