Set custom resolution KDE - no gamescope
Hi everyone, could someone help me setting a custom resolution please?
KDE only displays 4 options for my monitor but I know it works on windows on custom res. I also have a dummy hdmi plug.
I tried the options offered here and none worked as I have a 1080ti and gamescope doesn't work (bazzite nvidia image)
The reason is that I want to set a custom 1920x1440*85 for sunshine to stream to my phone. I tried everything on sunshine and it only works and scales well with games etc if the whole monitor or dummy hdmi is also set to that resolution
I also tried sudo rpm-ostree kargs --append-if-missing video=DP-1:1920x1440@85 but it does not work
9 Replies
rpm-ostree kargs --append-if-missing video=DP-1:1920x1440@85
this command is wrong if you wrote it like that
should be rpm-ostree kargs --append-if-missing="video=DP-1:1920x1440@85"
other than that i dont know because wayland is still limited in the ability to add custom resolutionsFake resolutions are, well… fake. Ever since CRTs went out of fashion at least. They might work when the display upscales or downscales the image. Or when the compositor (or even the driver) does that instead. But overall its a hack.
Since your goal is to just get the proper resolution for your phone, maybe you don't need to force your monitor into any of that?
A proper solution would be for Sunshine to just use a virtual display, but I'm not sure how feasible that is currently – the guides I've seen rely on X.org (example). Also some people (especially on Windows) work around the problem by using HDMI dummy plugs.
LizardByte
Remote SSH Headless Sunshine Setup | LizardByte
This is a guide to setup remote SSH into host to startup X server and Sunshine without physical login and dummy plug. The virtual display is accelerated by the NVidia GPU using the TwinView configuration. Attention This guide is specific for Xorg and NVidia GPUs. I start the X server...
@HikariKnight Do you think a container that provides a headless X.org session + Sunshine would work here?
this command is wrongHuh?
glib
should see those as the literally exact same thing…xorg will run through xwayland and will show a black screen
im just following the rpm-ostree documentation
No no, I mean a separate containerized X.org which doesn't see the main (Wayland) session. It would "display" to a virtual output (from vendor specific configuration since the
xf86-video-dummy
for exampledummy
doesn't do HW rendering) for Sunshine to capture.not sure how it would work but i know containers have issues with controllers
Alright. I'll do more research and if anything comes out of that I'll send a PR
Yeah, that idea was way too complicated. Something along those lines would be the best approach – a proper and clean solution to the underlying problem. Sunshine just needs to e.g. accept pipewire video from Wayland compositors. It's actively being explored and even worked on to some extent. (also rel)
@Luc You might also find
kscreen-doctor
helpful. And btw, does KDE pick up and use that dummy plug?
And this might be helpful as well: https://libreddit.tux.pizza/r/linux_gaming/comments/199ylqz/streaming_with_sunshine_from_virtual_screens/. It says it's for AMD, but people in the comments report it works for Nvidia as well (maybe the HDR parts are AMD-specific?). Also, some of the steps will definitely need adjustments to work on an atomic OS like Bazzite.
In short, it's about loading custom EDID profiles and using them with an unused video output on your GPU.Oh wow so much help thanks folks! I am leaving for a trip now but I'll give all of that a try and report back in 2 weeks thank you so much!
Yeah the dummy plugin works for streaming through bazzite but I can either get 1920x1020-120 or 1920x1440-60, I tried writing an edid on it directly but it's protected. On windows I created as custom res for both my monitor and the dummy plugin and either works great
Hope you'll get it working!
Just beware it's only the last (and maybe the first) link that can help you directly. The other ones were just me speculating a bit and then looking at how it will be solved in future version of Sunshine.