Bug 464028 - Global scale 100% large icons and fonts
Summary: Global scale 100% large icons and fonts
Status: RESOLVED NOT A BUG
Alias: None
Product: KScreen
Classification: Plasma
Component: common (other bugs)
Version First Reported In: 5.26.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-08 23:39 UTC by gareginra
Modified: 2023-01-17 17:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of 100% Global scale (985.55 KB, image/png)
2023-01-10 03:09 UTC, gareginra
Details
kdeglobals (5.19 KB, text/plain)
2023-01-11 01:00 UTC, gareginra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gareginra 2023-01-08 23:39:31 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Set desktop Global scale to 100%
2. Reboot
3. 

OBSERVED RESULT
Icons and some window fonts (not all) are inadequately large. Even though I can change the sizes of fonts and icons manually (to some degree), they do not correspond to their specified sizes and they change in a bizarre fashion. Like, I want to make some fonts smaller, but then other fonts that were normal become almost unreadable.

EXPECTED RESULT
I started to use Global scale 106.5% (a step up) and it is normal, like it always was. I want the same at no scale.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-01-09 22:35:47 UTC
And are you using X11 or Wayland?

Have you manually changed the "Force Font DPI" setting"?

Can you attach a screenshot that shows the problem after going to 100% scale and rebooting?
Comment 2 gareginra 2023-01-10 03:09:22 UTC
Created attachment 155171 [details]
Screenshot of 100% Global scale

I am using X11. The 'Force font DPI' changes automatically with scaling, otherwise it is default.
Comment 3 Nate Graham 2023-01-10 22:06:00 UTC
How bizarre. Can you attach your ~/.config/kdeglobals file?
Comment 4 gareginra 2023-01-11 01:00:46 UTC
Created attachment 155201 [details]
kdeglobals

So, I checked it out as well. Apparently, what happens when I change Global scale to 100% is 'ScaleFactor' line (182) gets deleted. However, I tried setting it manually to 1 and it worked fine. No large icons, everything is perfect (at least at first glance). Before that I tried it only through System Settings.
Comment 5 Nate Graham 2023-01-11 16:34:20 UTC
Interesting. I wonder if you have a kdeglobals file elsewhere with a bad ScaleFactor line in it that the system is falling back to when you remove your local override for that line.

Can you paste the output of:

sudo find / -type f -name kdeglobals -exec grep -H 'ScaleFactor=' {} \;
Comment 6 gareginra 2023-01-13 01:45:57 UTC
(In reply to Nate Graham from comment #5)
> Interesting. I wonder if you have a kdeglobals file elsewhere with a bad
> ScaleFactor line in it that the system is falling back to when you remove
> your local override for that line.
> 
> Can you paste the output of:
> 
> sudo find / -type f -name kdeglobals -exec grep -H 'ScaleFactor=' {} \;

With all settings I've used it shows this. If there was no ScaleFactor in kdeglobals, that line would be absent in the result.

find: ‘/run/user/1000/gvfs’: Permission denied
/home/*username*/.config/kdeglobals:ScaleFactor=1 
find: ‘/proc/617/net’: Invalid argument
find: ‘/proc/618/task/618/net’: Invalid argument
find: ‘/proc/618/net’: Invalid argument
find: ‘/proc/619/task/619/net’: Invalid argument
find: ‘/proc/619/net’: Invalid argument
find: ‘/proc/620/task/620/net’: Invalid argument
find: ‘/proc/620/net’: Invalid argument
Comment 7 Nate Graham 2023-01-13 16:10:23 UTC
Well I'm awfully confused then. Thanks for checking.

Any ideas, David?
Comment 8 gareginra 2023-01-13 16:37:55 UTC
Another thing worthy of mentioning, my Xorg starts after login. Before this bug I had a problem where my desktop wouldn't load properly on start. I was greeted with a black screen and could only launch anything via Alt+F2, but I could fix it by applying the Global Theme again in System Settings every time. It was annoying, but I don't reboot that much. Also, some windows would freeze after excessive use, which I believe had to do with that bug. Then it got fixed with an update, and I believe for a while everything was alright. There was some sound driver problem earlier, but my friend helped me fix that. All bugs appeared after and due to updates.
Comment 9 Nate Graham 2023-01-17 17:30:00 UTC
Oh, this is probably the problem. On X11, scaling changes aren't live; the app needs to be restarted after it's changed. If Xorg is starting after the scaling environment variables get set, this is not gonna work properly, yeah.

I would recommend debugging whatever is causing Xorg to launch too late. Perhaps ask Arch folks for help.