Bug 427880 - Font too small after installing Nvidia driver
Summary: Font too small after installing Nvidia driver
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.20.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-17 17:08 UTC by voojj3054
Modified: 2021-07-12 04:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
BUG (381.05 KB, image/png)
2020-10-17 17:14 UTC, voojj3054
Details

Note You need to log in before you can comment on or make changes to this bug.
Description voojj3054 2020-10-17 17:08:36 UTC
SUMMARY


STEPS TO REPRODUCE
1. Install any kde based distro
2. Use Nvidia proprietary driver (450,455)
3. 

OBSERVED RESULT
Some fonts too small to see anything
If I open fonts and increase the size
It will increase the other normal fonts 
And the system will be unusable.


EXPECTED RESULT
Normal behaviour like xfce or gnome that
Fixed this on Ubuntu 20.04



SOFTWARE/OS VERSIONS
Windows: no!
macOS: never.
Linux/KDE Plasma: 5 latest
(available in About System)
KDE Plasma Version: kde neon tried too
KDE Frameworks Version: latest
Qt Version:latest

ADDITIONAL INFORMATION
Ryzen 7 1700 
GTX 1070
24 GB ram 
ASRock x370 sli killer

I put as critical because I can't use
Any kde distro because of that
I tried everything to fix
Changing scale etc doesn't work
And I don't want use Mesa driver
Comment 1 voojj3054 2020-10-17 17:14:09 UTC
Created attachment 132490 [details]
BUG
Comment 2 Nicolas Fella 2020-10-17 18:50:09 UTC
I've experienced this regularly in the past with the nvidia driver, not only with Plasma as desktop.

What worked for me was forcing the DPI to 96 in xorg.conf. see https://wiki.archlinux.org/index.php/xorg#Display_size_and_DPI

In particular these lines:

Section "Monitor"
    Identifier             "Monitor0"
    Option                 "DPI" "96 x 96"
EndSection
Comment 3 voojj3054 2020-10-17 19:19:44 UTC
I will try that but I hope new releases of kde does that automatically if dpi is lower. I Prefer bigger than invisible
Comment 4 voojj3054 2020-10-17 19:55:56 UTC
How I do that for Kde neon (ubuntu based)

screen #0:
  dimensions:    1920x1080 pixels (1626x914 millimeters)
  resolution:    30x30 dots per inch

My screen returns 30x30
Comment 5 voojj3054 2020-10-17 19:57:26 UTC
How I do that for Kde neon (ubuntu based)

screen #0:
  dimensions:    1920x1080 pixels (1626x914 millimeters)
  resolution:    30x30 dots per inch

I tried the force dpi in the kde menu but it didnt work
Comment 6 voojj3054 2020-10-17 20:11:49 UTC
I Found another bug:

Sometimes the "Force DPI" Doesnt stay, if you change twice for example before rebooting. 

I highly suggest you guys making dpi 96 as default or make a pop-up with big font asking if resolution is correct or not, if not then it will go 96 DPI force.
Comment 7 voojj3054 2020-10-17 21:38:23 UTC
just to complement here. 
Xubuntu 20.04 is the only one that I didnt get any problem, but I saw DPI forced to 96 at boot.

I guess this should be the default  config for kde too so new users like me doesnt have this "issue"
Comment 8 Nate Graham 2020-10-21 04:18:06 UTC
Well that won't work if your DPI is in fact higher than 96. :)

Erik or Aaron, would either of you be able to investigate this?
Comment 9 voojj3054 2020-10-21 12:09:59 UTC
(In reply to Nate Graham from comment #8)
> Well that won't work if your DPI is in fact higher than 96. :)
> 
> Erik or Aaron, would either of you be able to investigate this?

it is not higher than 96, my xubuntu dpi is set forced on 96 by default. 
Also after trying several times to set dpi to 96 in kde it seems to work. That's why I think it should have come 96 dpi by default to avoid nvidia drivers problem now and in the future.
Comment 10 Christoph Feck 2020-10-30 18:53:16 UTC
Why is this ticket confirmed? As far as I know, kwin doesn't determine the font size.
Comment 11 Nate Graham 2020-10-30 22:34:39 UTC
No, but we have seen similar graphical anomalies in QML-based software due to its use of an openGL rendering pipeline which goes through the GPU. It seems to happen with Nvidia hardware a lot more often than it does with Intel and AMD graphics hardware, for reasons that I do not know.
Comment 12 Christoph Feck 2020-10-30 23:18:52 UTC
Previous comment provides no confirmation that the issue is in kwin; changing status.
Comment 13 David Edmundson 2021-06-12 21:52:08 UTC
Please only tag the Nvidia devs after investigation proves them to be at fault. We don't want to abuse their time.
Comment 14 David Edmundson 2021-06-12 21:55:58 UTC
This is most definitely not a kwin bug, but I'll leave here till we can move it.

Please include output of :

xrdb -q |& grep -i dpi
~/.config/kdeglobals
xrandr -q
Comment 15 Bug Janitor Service 2021-06-27 04:33:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 16 Bug Janitor Service 2021-07-12 04:33:43 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!