steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Fractional DPI scaling on Linux (125% etc)

Open Reonu opened this issue 7 years ago • 56 comments

EDIT: I'm using Xorg

Your system information

  • Steam client version (build number or date): Nov. 10 2018
  • Distribution (e.g. Ubuntu): Ubuntu Budgie 18.10
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

On Windows, DPI scaling can be set to 125%, 150%, etc. On Linux you can only do 200%, there's no middle ground. Other programs such as Chrome handle fractional scaling fine on Linux.

Steps for reproducing this issue:

  1. Have a 1440p 25" monitor or anything that requires 125% scaling
  2. Use Steam
  3. Suffer

Reonu avatar Nov 18 '18 16:11 Reonu

Can confirm this on Ubuntu 18.04.2 KDE with 14'' 1080p laptop screen.

robinhad avatar Feb 18 '19 19:02 robinhad

Confirmed on Arch Linux. Gnome 3.32 just support fractional scaling recently, however it is still flagged as 'experimental'. Other gtk apps in gnome will follow dconf configuration "org.gnome.desktop.interface text-scaling-factor" for font size scaling. Maybe the development team could use the similar approach on Gnome?

ttc0419 avatar Jun 03 '19 14:06 ttc0419

I've got dual boot with Windows because of this issue, almost makes me want to give up my 4K monitor!

Bushstar avatar Aug 24 '19 09:08 Bushstar

As a user with a 4k monitor I can confirm that while 2x scaling makes things clearer, it's just too big on my 27" screen. Almost every other application under KDE Neon supports fractional scaling just fine using X11, it would be nice to have feature parity with Windows users and support fractional scaling under Steam on Linux.

Bulletdust avatar Aug 28 '19 00:08 Bulletdust

Although the Steam client is using gtk but does not use the system text scaling or sizes. It uses its own skin and css for text

The only solution is to use double size GDK scaling for the time being. It still looks better than other applications that are double size.

howdev avatar Nov 16 '19 02:11 howdev

The new Steam UI scales on my 4K monitor, this is no longer an issue for me.

Bushstar avatar Nov 16 '19 07:11 Bushstar

It scales...At 2x, which looks absolutely huge - In fact it looks horrible enough that I prefer no scaling at all.

Bulletdust avatar Nov 16 '19 09:11 Bulletdust

sigh, windows wins again.

jarrard avatar Dec 17 '19 23:12 jarrard

Hi, although I set text and icons to enabled, steam is still barely readable with 150% and 125%. should this be fixed by now, or where is my mistake?

Pop!_Os 19.10

Bildschirmfoto von 2020-03-02 17-24-25 Bildschirmfoto von 2020-03-02 17-27-54

Okay, GDK_SCALE=2x steam or GDK_SCALE=3x steam in terminal has helped me. how can I always start steam like this without going through the terminal?

Thanks

Bondarz avatar Mar 02 '20 16:03 Bondarz

I just want steam to have a %125/133/150 scaling options.

jarrard avatar Mar 04 '20 14:03 jarrard

@Bondarz to start Steam with 2x scale all the time you should edit its desktop entry:

~/.local/share/application/steam.desktop

Exec=GDK_SCALE=2 steam-runtime -console -silent %U

murlakatamenka avatar Mar 14 '20 07:03 murlakatamenka

Fractional scaling at 100% on a 720p TV Screenshot from 2020-04-27 18-11-12

Fractional scaling at 125% on a 720p TV (The fonts should be scaling larger, not smaller) Screenshot from 2020-04-27 18-10-54

sockbot avatar Apr 28 '20 01:04 sockbot

Maybe you can try GDK_SCALE=2, might compensate for the reduction in size. I haven't see this myself because I use Plasma as my main desktop.

jarrard avatar Apr 28 '20 04:04 jarrard

An important clarification should be made on this thread. Looks like op's request is specifically Linux with Xorg, (and not Linux with Wayland).

Would you mind editing the title? This is specific to that environment. Proper support for scaling on other Linux setups are completely unrelated, and all the workarounds and information provided here are Xorg-specific.

WhyNotHugo avatar Jun 26 '20 13:06 WhyNotHugo

An important clarification should be made on this thread. Looks like op's request is specifically Linux with Xorg, (and not Linux with Wayland).

Would you mind editing the title? This is specific to that environment. Proper support for scaling on other Linux setups are completely unrelated, and all the workarounds and information provided here are Xorg-specific.

I would gladly change the title but apparently I can't

Reonu avatar Jun 26 '20 13:06 Reonu

Still waiting for this, I run my 4k monitors at 150% scaling (144 DPI) and steam is pretty much the only application I use that doesn't respect the scaling factor and launches at 200% scaling (192 DPI) which makes it look giant in comparison to everything else, it's extremely annoying. Steam's fractional scaling works perfectly on windows so I don't see why fractional scaling can't also work on Linux given that integer scaling is already supported.

starcraft66 avatar Oct 02 '20 20:10 starcraft66

Same problem for me. Im on KDE Plasma 5.20.2 with a 14" 1920x1080p screen, either everything is too small (100% scaling) or the steam window doesn't fit in the screen (200%). Still waiting for this to get fix.

LEONIDAS-0117 avatar Nov 11 '20 16:11 LEONIDAS-0117

@LEONIDAS-0117 seemed to be the case. at 200% only big monitor can fit steam window

howdev avatar Nov 11 '20 22:11 howdev

Bumping this annoying issue. Hope it'll get fixed soon.

Edit: ~~GDK_SCALE=2x steam~~ doesn't even work for me!

7RST1 avatar Nov 26 '20 22:11 7RST1

Bumping this annoying issue. Hope it'll get fixed soon.

Edit: GDK_SCALE=2x steam doesn't even work for me!

GDK_SCALE only accepts integer values, therefor "2x" will be ignored. If you want an application to be scaled to 200% use GDK_SCALE=2 instead.

elias1710 avatar Nov 29 '20 13:11 elias1710

Bumping this annoying issue. Hope it'll get fixed soon. Edit: GDK_SCALE=2x steam doesn't even work for me!

GDK_SCALE only accepts integer values, therefor "2x" will be ignored. If you want an application to be scaled to 200% use GDK_SCALE=2 instead.

Oops, that makes sense! Copied from this post which must have mistakenly added the Xs. They might want to edit their post for less confusion.

Edit: It still doesn't work for me though..

7RST1 avatar Nov 29 '20 18:11 7RST1

I don't see why Steam cannot do fractional scaling, since it is a internet browser. It doesn't need to use system GTK scaling. Chrome and Firefox has its own fractional scaling. I am sure Steam uses Webkit.

On a 4k monitor, 2x scaling becomes 1080p screen space which is way too big. You need 5120x2880 resolution to have 2x scaling with same screen space as 2560x1440

howdev avatar Nov 29 '20 22:11 howdev

Same problem on Ubuntu 20.04. Scale set to 125% and the text in Steam client is totally unreadable.

image

(Steam client and a normal browser for compare)

Xiangze-Li avatar Feb 09 '21 11:02 Xiangze-Li

I've been suffering from this issue, too :(

There is a workaround, though (at least in GNU/Linux) - run it via GDK_SCALE=2 steam and it's OK, mostly. But, best option (most reliable) for me is simply change desktop resolution back to default fractional scaling 200% and only then run Steam.

crysman avatar Apr 04 '21 18:04 crysman

That is the way I solved this issue for me (Dual Screen, both 4K and fraction scaling on 175% with KDE):

Global (For all GDK based applications): /etc/environment (reboot needed?)

GDK_SCALE=2 <- Must be an integer GDK_DPI_SCALE=0.5 <- Maybe you have to fiddle around with this value to increase or decrease the font size

Or just for the steam application by changing: /usr/share/applications/steam.desktop Change line "Exec=" to:

Exec=GDK_SCALE=2 GDK_DPI_SCALE=0.5 steam steam://open/friends

Screenshot_20210404_205755

elias1710 avatar Apr 04 '21 19:04 elias1710

@belgrid GDK_DPI_SCALE does nothing on my system (Arch with KDE)

At this point I've mostly gotten used to running it at 2x even though it looks stupidly huge on my 4k monitor. Still waiting for proper fractional scaling though. At this point, Steam is the only application left on my system that doesn't support fractional scaling.

emberquill avatar Apr 09 '21 04:04 emberquill

I'd recommend switching to Wayland session with it running in XWayland, but the Steam window is a tad blurry and currently also have this issue which is annoying to deal with. Might be worth it for some though.

7RST1 avatar Apr 09 '21 07:04 7RST1

@7RST1 I could not set other than 100 or 200% scaling in Wayland, both unusable, I do need like 150% for my display...

crysman avatar Apr 09 '21 08:04 crysman

@7RST1 I could not set other than 100 or 200% scaling in Wayland, both unusable, I do need like 150% for my display...

It is possible to enable fractional scaling for Wayland. I'm using 100% and 150% across my two displays and it's working fine, except the non-Wayland windows are a tad blurry on the 150% scaled display. I recommend this setup, I just cannot find the article I used to enable fractional scaling.

7RST1 avatar May 03 '21 04:05 7RST1

@7RST1 I could not set other than 100 or 200% scaling in Wayland, both unusable, I do need like 150% for my display...

It is possible to enable fractional scaling for Wayland. I'm using 100% and 150% across my two displays and it's working fine, except the non-Wayland windows are a tad blurry on the 150% scaled display. I recommend this setup, I just cannot find the article I used to enable fractional scaling.

I was told to use the FONT DPI for scaling on Wayland (at least with plasma) which resolves the blur issue. If that still exists.

Really hope Valve can add in a 125 / 133 / 150 percent scale option.

I use XOrg because atm Wayland still has a few outstanding issues, and also I need display gamma control which is not present for plasma.

jarrard avatar Jun 21 '21 06:06 jarrard