Git Product home page Git Product logo

Comments (15)

Consolatis avatar Consolatis commented on June 10, 2024

When wlr-randr shows a scale factor of 1, does the game then provide the correct resolution?

from labwc.

dinotheextinct avatar dinotheextinct commented on June 10, 2024

Yes it does. So how can I achieve both?

from labwc.

ahesford avatar ahesford commented on June 10, 2024

You ask the author of the game for proper scaling support, or you manually switch to unit scale before you start the game. wdisplays is a helpful tool. I don't think this is a labwc problem.

from labwc.

dinotheextinct avatar dinotheextinct commented on June 10, 2024

Its not a single game, its all games with steam.

from labwc.

ahesford avatar ahesford commented on June 10, 2024

Then that sounds like a problem with Steam.

from labwc.

dinotheextinct avatar dinotheextinct commented on June 10, 2024

Just fyi. the problem doesn't exist on KDE Wayland session.

from labwc.

droc12345 avatar droc12345 commented on June 10, 2024

KDE is not a wlroots based compositor and they might very well have added workarounds for steam.

Have you tried any other wlroots based compositor, sway, hyprland, wayfire, etc?

from labwc.

ahesford avatar ahesford commented on June 10, 2024

It's come to my attention that Steam is an X11 application, and the problem you're seeing is common to all X11 applications with Xwayland.

from labwc.

dinotheextinct avatar dinotheextinct commented on June 10, 2024

Yes exactly and it makes labwc unuseable as desktop WM if you have a HiDPI screen. If I understand the settings correctly you are describing in the manual, the wlr-randr scale should not affect XWayland applications. For that purpose you have the xprop and GDK Scale options? Here is how KDE is doing it: https://wiki.archlinux.org/title/HiDPI#Xwayland_2

Also the scaling for apps like signal-desktop from flatpak looks much more crisp on KDE with scaling like this:
image

After reading some more this might actually not be fixable by labwc:
https://wiki.archlinux.org/title/HiDPI#Official_HiDPI_support
https://libreddit.oxymagnesium.com/r/linux_gaming/comments/1cj9dsf/the_elephant_in_the_room_scaling_on_hidpi_screens/l2eopdh/?context=3
https://wiki.archlinux.org/title/Steam/Troubleshooting#Blurry_text_and_graphics_with_Xwayland_and_HiDPI

from labwc.

ahesford avatar ahesford commented on June 10, 2024

If it's unusable, use something else. This is not a labwc issue.

from labwc.

Consolatis avatar Consolatis commented on June 10, 2024

While technically correct, this is kind of a wlroots / xwayland and thus labwc issue.

If I understand the settings correctly you are describing in the manual, the wlr-randr scale should not affect XWayland applications.

It will affect xwayland applications by wlroots scaling the xwayland buffers up by the scale factor. Thus they look blurry, there needs to be some solution in the longer term.

from labwc.

winteriscariot avatar winteriscariot commented on June 10, 2024

For games, using gamescope should be a viable workaround as it has built-in scaling options independent from labwc

from labwc.

dinotheextinct avatar dinotheextinct commented on June 10, 2024

For games, using gamescope should be a viable workaround as it has built-in scaling options independent from labwc

Sadly I haven't found a solution with gamescope which works for me. With capital width and height the game still doesn't offer the correct resolution in game or doesn't even start properly (the later is probably a problem of the game).

from labwc.

sascha-wi avatar sascha-wi commented on June 10, 2024

Might this solve this issue in the future? https://www.phoronix.com/news/XWayland-Rootful-HiDPI-Merged

Also is there any work on the integration of this or how does one check if rootful xwayland is supported by labwc?

from labwc.

Consolatis avatar Consolatis commented on June 10, 2024

rootful xwayland is supported by labwc (and should be the same for any other wayland compositor as its basically just a regular wayland client from what I remember):

Xwayland -decorate -noreset :55
DISPLAY=:55 dbus-run-session openbox-session

Rather than starting openbox-session you could obviously start whatever you like.
Note that this will not show the windows within that X11 session in A-Tab, render labwc decorations or similar. It might be fine to run that fullscreen for a single game though, never tested that approach and also can't say anything about the performance.

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.