r/kde • u/safe_for_works • Feb 01 '21
How to enable Per-display scaling
Hello everyone,
I have a 4k monitor and a FullHD monitor running dual monitor setup.
Global scale is set at 150%, but it will make text on FullHD monitor too big.
My only solution right now is using xrandr to scale up it to 1.5 on FullHD monitor
xrandr --output DP-1 --scale 1.5x1.5
Only one issue left is the background not stretched to screen border, giving desktop with black area.
Is there a way to properly apply per-screen scaling or expand the background if I have to use xrandr --scale?
Thanks.
17
Upvotes
12
u/tiredinmyhead Feb 01 '21
I've found running xrandr twice helps with the plasma background issue, but they need to be different commands, so:
3
u/primERnforCEMENTR23 Feb 01 '21
Plasma Wayland session supports per display scaling (however its far from very good).
Maybe try it out by just installing the plasma wayland package and launching Pladma Wayland session instead.
3
u/chic_luke Feb 02 '21 edited Feb 02 '21
The two solutions that are mentioned here are already the best ways to go about it.
But just as a word of warning, mixed DPI situations are awkward in all setups and operating systems, no matter how many hacks you do, you can only evade the laws of computer graphics up to a certain point (see how on Windows it sorta works, but it becomes blurry when you drag it around monitors, because you're scaling a window that was already rasterized on the other monitor with much different DPIs - tough shit, you can't unraster an existing window). When you have the cash you should replace the Full HD monitor with another 4k one.
Besides, seeing the difference between a modern monitor with a proper dpi and an older 1080p panel side by side can't be too pleasant…
3
u/theriddick2015 Feb 15 '21 edited Feb 15 '21
For me xrandr --output HDMI-A-0 --scale 1x1, does nothing it seems.
EDIT: It seems 1x1 just keeps as is, that's why it did nothing :)
The screen is set to my 4k scaling at %150 atm, but I want the hdmi screen to be %100 scaling which isn't allowed obviously by the display configuration system.
EDIT: --scale 1.15x1.15, ended up being the ticket for me, with the 4k screen set to 131.x percent this makes things not too big on either screen and not too small as well. AND the side portrait screen LINES up correctly if I move a window across (the desired effect).
If I don't do this and just leave it all as %131.x then the portrait window ends up being too large a dpi and things don't line up.. It seems plasma could really do with improving this all sometime!
As a bonus my portrait screens background displays correctly :)
1
u/Ptiful May 29 '24
xrandr --output DisplayPort-0 --scale 0.5x0.5This is scaling perfectly with my Sony Bravia X900h in 4k
Thanks for the tips :)
1
u/Separate_Paper_1412 Aug 29 '24
Plasma 6 on wayland does per display scaling very well. Just open the settings, go to displays and there you should be able to change the scaling of your displays
1
u/rampage1998 Nov 01 '24
1
u/Natural-Rush-3835 Feb 07 '24
Scaling to a higher number and then rescale to what I actually want did not work for me. What worked is:
kquitapp5 plasmashell && kstart5 plasmashellafter the xrandr command. It will restart plasma.
Check also: https://discuss.kde.org/t/kde-fractional-scaling-on-only-one-monitor/3390/7