You are not logged in.
Hey everyone:
I am using a laptop with 15.6 inch screen,1920x1080 resolution.
And I am using KDE on Xorg session.
Here is the problem,the default DPI was 96,and default global scale was 100%,but I can't see words very clearly in some pages,especially in web browser.
So I changed the scale to 125%,which is the same scale with windows,but it did not fixed the problem,so I did some research on it,I saw an article,got a formula to calculate my DPI,I did the calculation,got my DPI 112.97,so I changed the DPI again,into 113 with 125% global scale,but did't work.
[ali@arch ~]$ cat .Xresources
Xft.dpi: 113[ali@arch ~]$ xdpyinfo | grep -B2 resolution
screen #0:
dimensions: 1920x1080 pixels (508x285 millimeters)
resolution: 96x96 dots per inchNeed help,thank you all
Last edited by nurali (2022-12-06 16:07:25)
Offline
I don't remeber if nowadays Plasma is capable of Fractional Scaling... Anyway, could you have a look at this?: https://wiki.archlinux.org/title/HiDPI#KDE_Plasma
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
You'll want to set the DPI of the server itself as well: https://wiki.archlinux.org/title/Xorg#D … ze_and_DPI
Offline
I don't remeber if nowadays Plasma is capable of Fractional Scaling... Anyway, could you have a look at this?: https://wiki.archlinux.org/title/HiDPI#KDE_Plasma
Thanks for replying,I have read that,I don't very understand,what is "desired size"?It showing unclear fonts with the defaults,how should I get the "desired size" to drag it?
Teach me plz if you know something about that
Offline
You'll want to set the DPI of the server itself as well: https://wiki.archlinux.org/title/Xorg#D … ze_and_DPI
Thanks for replying,I'll take a look at that
Offline
You'll want to set the DPI of the server itself as well: https://wiki.archlinux.org/title/Xorg#D … ze_and_DPI
Section "Monitor"
Identifier "eDP"
DisplaySize 345 194 # In millimeters
EndSectionAfter I write this,96x96 changed into
[ali@arch ~]$ xdpyinfo | grep -B2 resolution
screen #0:
dimensions: 1920x1080 pixels (345x194 millimeters)
resolution: 141x141 dots per inchI call it a success,thank you!
Solved most of the problem,and could you please tell me what size I should set to DPI when I use 125% scale?
I am little bit confused by connection of those things
Last edited by nurali (2022-12-06 15:53:24)
Offline
Up to you. Configuring the DPI correctly (according to the size of the monitor) should lead to an improvement across the board without explicitly scaling additionally but if you feel elements are still to small you can relevantly bump things a bit by scaling things up additionally.
Offline
In my experience, it's better to change as little as possible through KDE systemsettings, but you do have to play around somewhat, especially if you use both QT and GTK applications as they can pull in opposite directions.
My DPI works out to 176x176. I don't force font DPI in KDE settings, though I do check anti-aliasing. I use sddm and set QT's high-DPI scaling to true. I then use very small fonts in KDE settings (6 and 7pt). I used to set scaling separately for GTK applications and use larger fonts, but I don't seem to be doing that any longer.
I am not claiming this is an especially good way to do it. Just that it works reasonably well for me. What's odd is that some things still come up too big and others too small. So a certainly amount of bespoke fiddling still seems required, but it is getting better, I think.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
In my experience, it's better to change as little as possible through KDE systemsettings, but you do have to play around somewhat, especially if you use both QT and GTK applications as they can pull in opposite directions.
My DPI works out to 176x176. I don't force font DPI in KDE settings, though I do check anti-aliasing. I use sddm and set QT's high-DPI scaling to true. I then use very small fonts in KDE settings (6 and 7pt). I used to set scaling separately for GTK applications and use larger fonts, but I don't seem to be doing that any longer.
I am not claiming this is an especially good way to do it. Just that it works reasonably well for me. What's odd is that some things still come up too big and others too small. So a certainly amount of bespoke fiddling still seems required, but it is getting better, I think.
Thanks for your advice
I found that my true DPI is 142×141,I'm going to try that.
There is a weird thing happened,when global scale set to 100%,xrandr outputs correct display size(by mm),but when it go to 125%,xrandr shows an odd display size.
I don't know what is the commection between global scale and dpi,I am preparing to leave scale with 100%,just change dpi.
Offline
As V1del said, you will probably have better luck keep DPI matching your actual DPI and scaling if required. My DPI is higher than yours because I have a screen with the same resolution which is physically smaller. That is, I have 1920x1080 pixels in a 12.5" screen. So my native DPI is going to be higher than yours. But the general principle of sticking with a DPI which matches your display's DPI is likely to be better in both cases i.e. you'll get better results at 141 and I'll get better results at 176.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
As V1del said, you will probably have better luck keep DPI matching your actual DPI and scaling if required. My DPI is higher than yours because I have a screen with the same resolution which is physically smaller. That is, I have 1920x1080 pixels in a 12.5" screen. So my native DPI is going to be higher than yours. But the general principle of sticking with a DPI which matches your display's DPI is likely to be better in both cases i.e. you'll get better results at 141 and I'll get better results at 176.
OK,thans for explaining,it is understandable
Offline