Emulating a custom resolution for Sunshine streaming

As the title suggests, I’d like to be able to match my Sunshine stream to a custom resolution.
Basically, I have my main workstation in my office and I’d like to be able to somehow stream my desktop to my laptop in the laptop’s screen res.

Both machines are using Linux Mint, and the workstation I’m streaming from has a 4096x2160 monitor, while the laptop has a 2880x1800 monitor.

Is there any way to create a custom resolution for streaming? My current workaround is that my monitor luckily accepts 1920x1200, and that at least matches the aspect ratio of the laptop, but ideally I’d like to find a way to recreate my laptop’s native resolution so I can do proper work on it and be able to judge everything knowing the resolutions are matched. (I do creative work)

I don’t mind having to set the resolution up manually before enabling Sunshine, I would just like to have the option for it. Even if I have to cobble together a bash script that I can run is all good.

I bought a HDMI dummy plug hoping to reprogram it somehow to present the 2.8K resolution, but that has proven to be a dead end. Also using xrandr doesn’t seem to work either as it won’t accept the modeline because the 4K monitor doesn’t support it. (I think)

At this point I’m even wondering if it’s worth just ordering the same panel off AliExpress with an eDP adapter. :sweat_smile:

Any suggestions would be great!

I remember doing something like this using parsec on windows, I think they have a linux version too

Xrandr can create any resolution you want.

You just need to configure the details of it. This article goes into details.

this won’t work on Wayland, I’m not sure about the process there

1 Like

Valve’s gamescope could be of help as well. Might have to build it yourself on mint though, although I have seen some ppa’s providing a binary before. The next version will likely have it in the repos since the new ubuntus already do. Edit: apparently they don’t, so scratch that.
GitHub - ValveSoftware/gamescope: SteamOS session compositing window manager