Bug 366694 - Kickoff opens too large on high-dpi laptop screen (wayland)
Summary: Kickoff opens too large on high-dpi laptop screen (wayland)
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-wayland (other bugs)
Version First Reported In: 5.7.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-12 08:16 UTC by Igor Poboiko
Modified: 2017-12-06 21:23 UTC (History)
4 users (show)

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


Attachments
weston-info output (1.52 KB, text/plain)
2016-08-12 09:23 UTC, Igor Poboiko
Details
Kickoff screenshot (694.84 KB, image/png)
2016-08-13 09:26 UTC, Igor Poboiko
Details
Yet another screenshot (360.62 KB, image/png)
2016-08-13 11:01 UTC, Igor Poboiko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Poboiko 2016-08-12 08:16:19 UTC
When I start a Plasma/Wayland session, almost all the widgets (both plasmoids and ordinary buttons/etc) are having enormous size, fonts sizes are also too large. 

For example: application launcher popup takes all the height of the screen; calendar popup (plasma widget) takes almost 60% of the screen. It happens even with KSplash: the "K" logo, which is default splash screen here, is also significantly larger compared to Plasma/X11 session. Fonts in i.e. Dolphin are also too large.

Apparently, there is some problem with DPI detection. I've tried looking in "Display configuration" is SystemSettings, and use "Scale Display" option there, but the scale is set to minimum and preview shows normal sizes, which is clearly different from the sizes used.

Reproducible: Always




Unfortunately, I'm not sure how to take screenshots on Wayland, so I can't provide a screenshot; I hope the explanation would be enough.
Please tell if you need more information.
Comment 1 Martin Flöser 2016-08-12 08:20:10 UTC
can you paste me the output of weston-info?
Comment 2 Igor Poboiko 2016-08-12 09:23:39 UTC
Created attachment 100559 [details]
weston-info output
Comment 3 Martin Flöser 2016-08-12 11:20:36 UTC
I assume the reason for what you see is the DPI. You have a screen with 1920x1080 px on a physical size of 31x17 cm. If that is not correct, please yell.

For comparison my screen with 1920x1080 px is 52x29 cm. Thus dpi scaling is applied. If you have set any screen scale settings, unset it: Wayland scales correctly by default.

If it's absolutely wrong you can force a DPI scale in the fonts kcm: that's honored.
Comment 4 Igor Poboiko 2016-08-13 09:26:02 UTC
Created attachment 100574 [details]
Kickoff screenshot

The (In reply to Martin Gräßlin from comment #3)
> I assume the reason for what you see is the DPI. You have a screen with
> 1920x1080 px on a physical size of 31x17 cm. If that is not correct, please
> yell.
It seems correct: it is a 14" laptop screen. Haven't checked it with ruler though :)

> For comparison my screen with 1920x1080 px is 52x29 cm. Thus dpi scaling is
> applied. If you have set any screen scale settings, unset it: Wayland scales
> correctly by default.
> 
> If it's absolutely wrong you can force a DPI scale in the fonts kcm: that's
> honored.
So you're saying that this scaling is intentional and should be like that? 
Well, it isn't really that bad and unusable, I'm just not used to it: both on Plasma/X11 and Windows fonts and widgets are rather small, and that is how it always has been.

BTW, I have found a way to take a screenshot on Wayland using org.kde.kwin.Screenshot DBus interface, so here is an attachment how e.g. Kickoff looks like.
Comment 5 Martin Flöser 2016-08-13 10:30:28 UTC
> So you're saying that this scaling is intentional and should be like that? 

Partially. The panel looks correct to me. What does not look correct to me is Kickoff: it's too large. That's also something I see on my notebook. Kickoff gets larger than the available height although it's full-hd. That's wrong. And because of that I reassign to Plasma.

In general the intended behavior is to scale with the DPI. But there are a few things which scale incorrectly on Wayland. I showed screenshots to our DPI experts last week.

If you don't like the scaling: systemsettings -> fonts -> force dpi -> 96. That should be the same as on X11.
Comment 6 Igor Poboiko 2016-08-13 11:01:06 UTC
Created attachment 100581 [details]
Yet another screenshot

(In reply to Martin Gräßlin from comment #5)
> > So you're saying that this scaling is intentional and should be like that? 
> 
> Partially. The panel looks correct to me. What does not look correct to me
> is Kickoff: it's too large. That's also something I see on my notebook.
> Kickoff gets larger than the available height although it's full-hd. That's
> wrong. And because of that I reassign to Plasma.
Right, the panel and icons are fine to me, and they look the same on Plasma/X11. 

I've noticed you changed the component to Plasma/Kickoff; however, It's not only Kickoff which is affected: all the plasma widgets look the same (calendar, network-management, volume, clipboard, and so on; even tooltips are large).
I am also attaching a screenshot of several other applications and calendar applet. Note the size of the font in Konsole KPart in Dolphin; however, the font is fine in Yakuake (v3.0.2, which IIRC is KF5-based and also uses Konsole-part).

> In general the intended behavior is to scale with the DPI. But there are a
> few things which scale incorrectly on Wayland. I showed screenshots to our
> DPI experts last week.
> 
> If you don't like the scaling: systemsettings -> fonts -> force dpi -> 96.
> That should be the same as on X11.
It did the trick (although I had to restart the session, newly opened applications weren't affected). Thank you!
Comment 7 Michael D 2017-02-10 09:58:09 UTC
This workaround of specifying the DPI in kcm doesn't work for me. I have set both 96 and 141 (I have a 1080p 15.6 screen, hence a 141 dpi), along with a bunch of other values, and the fonts remain the same when restarted or when logging out and back in. I have also tried putting 'export QT_WAYLAND_FORCE_DPI=[DPI]' in my .bashrc to no avail (with both 96 and 141).

I'm running an Intel Broadwell system, Plasma 5.9.1 (Neon User Edition).
Comment 8 Martin Flöser 2017-12-06 21:23:51 UTC
This looks fixed to me with the proper High DPI implementation we have now. If you are still able to reproduce with latest master please reopen.