-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect scaling on Steam Deck screen #4896
Comments
I don't think this can be universally true as I have seen many apps running on the steam deck. Is it related to user configuration or is this a recent problem? |
Any more information at all? Can the user run fyne_demo or otherwise collect scale data from the device? |
I haven't quite had time to research this more. Maybe we can bring in @dalitz-bazalgette can chime in here? |
I did a bit more testing with a fresh install and this scaling issue seems to only happen on X11 (which is what SteamOS uses). I installed Fedora 39 (because it uses KDE 5.X like SteamOS) on my Steam Deck and found that Rymdport and Supersonic scale correctly in wayland but in X11 they exhibit the issue as they do in SteamOS. |
There must be something more specific going on because X11 normally works really well. |
I'm using the Valve Steam Deck. I did a fresh install of SteamOS and Fedora to make sure it wasn't my configuration that caused it. Perhaps it's a combination of X11 and the 800x1280 display that causes it. |
@dalitz-bazalgette Thanks for the testing. Does Fedora 40 (with what I presume is the latest KDE Plasma 6.1 desktop) get the same behaviour? I also find it strange that X11 shows issues but not Wayland. As the app is rendering through XWayland, it is usually as good or slightly worse than a pure X11 session. |
The resolution should not matter - as long as the screen size is reported correctly... my guess is the RandR API has some incorrect data. Is it possible to run the fyne_demo app on the device and choose "Advanced" so we can see what information is being detected? |
Nice work looking into it. Is there any other way to look up scaling and screen sizes on X11? I mean, many of the other applications seem to be working as far as I understand it. |
That is what we are doing, it is being reported incorrectly (as is a known issue with some hardware - though I'm not sure if this is the XWayland or underlying hardware/OS at fault).
Yes. They are doing no attempt at scaling to fit the screen, they are simply 1:1 on pixels, leading to very small text because of the underlying hardware DPI. (see the image above - the desktop text is smaller than Fyne based on a scale of 1 whereas my hacked screen size fix works it out to be 1.7 for the right font size. |
And maybe more? Fixes fyne-io#4896
And maybe more? Fixes fyne-io#4896
The PR has a workaround where the scaling isn't correct according to our aims, but is in-keeping with the tiny text of other apps on the system |
Fixed on |
Checklist
Describe the bug
Copying over from Jacalz/rymdport#159, Fyne applications are entirely unusable on Steam Deck (maybe even other small screens?). This is really problematic because anyone using a Steam Deck and then installing something like Rymdport or Supersonic on Flathub will be very annoyed because the apps have stopped working.
How to reproduce
Screenshots
Example code
Use Fyne demo or install Rymdport or Supersonic from Flathub.
Fyne version
v2.4.5
Go compiler version
1.22.3
Operating system and version
SteamOS
Additional Information
See Jacalz/rymdport#159 for more information.
The text was updated successfully, but these errors were encountered: