Bug 451193 - HiDPI: wrong sizes for several UI element
Summary: HiDPI: wrong sizes for several UI element
Status: RESOLVED DUPLICATE of bug 356446
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-06 10:08 UTC by Éric Brunet
Modified: 2022-03-22 03:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
With Intel driver and PLASMA_USE_QT_SCALING=1 (693.04 KB, image/jpeg)
2022-03-06 10:08 UTC, Éric Brunet
Details
With Intel driver and PLASMA_USE_QT_SCALING unset (752.63 KB, image/jpeg)
2022-03-06 10:09 UTC, Éric Brunet
Details
With Modesetting driver (718.20 KB, image/jpeg)
2022-03-06 10:10 UTC, Éric Brunet
Details
kmail with Intel driver (300.42 KB, image/jpeg)
2022-03-06 11:19 UTC, Éric Brunet
Details
kmail with modesetting driver (211.58 KB, image/jpeg)
2022-03-06 11:20 UTC, Éric Brunet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Éric Brunet 2022-03-06 10:08:53 UTC
Created attachment 147321 [details]
With Intel driver and PLASMA_USE_QT_SCALING=1

I have a XPS 13 Dell laptop with 3840x2160 resolution, and its hidpi screen brings some issues: UI elements such as icons in front of menu items and checkboxes in dialog boxes are sometimes too small, and there does not seem any easy way to fix it.

I am running an uptodate fedora 35 linux, with XOrg (not wayland!) and plasma kde, but the problem has been present for several revision.
The global scale on the display configuration box is set to 250%, and I am forcing 240dpi in the fonts settings.

* When I set  PLASMA_USE_QT_SCALING=1 and run the intel driver for XOrg, sizes are pretty good both for contextual menu icons and checkboxes.

* When I don't set PLASMA_USE_QT_SCALING and run the intel driver, sizes are wrong for contextual menu icons, but good for checkboxes.

* When I run the modesetting driver for Xorg, PLASMA_USE_QT_SCALING seems to have no effect, and sizes for contextual menu icons and checkboxes are wrong.

Please see the attached screenshots. Notice the icons in front of the menu items in the bottom right contextual menu. Notice the checkboxes in the dialog box.

Notice also that the small icons (battery, volume, etc...) in the taskbar: depending on the display driver, they fit in one or two columns. Notice also the size of the configuration windows: in each time, I made it as small as possible. This minimal size is nice and fit for the Modesetting driver, and way too large for the Intel driver.

I believe that the behaviour of plasma should not depend on the low level hardware driver of Xorg
I believe that I shouldn't have to set (or not) environment variables such as PLASMA_USE_QT_SCALING to get things right or not.
I suspect that there is a bug around PLASMA_USE_QT_SCALING, since it has an effect for one Xorg driver and not for the other.
I believe there should be an easy way to change the size of UI elements such as contextual menu icons and checkboxes, in case the automatic scaling fails.

Nota: I used to live happily using th eIntel driver, but I am now experiencing an independant bug with Intel which forces me back to modesetting...
Comment 1 Éric Brunet 2022-03-06 10:09:33 UTC
Created attachment 147322 [details]
With Intel driver and PLASMA_USE_QT_SCALING unset
Comment 2 Éric Brunet 2022-03-06 10:10:07 UTC
Created attachment 147323 [details]
With Modesetting driver
Comment 3 Éric Brunet 2022-03-06 11:19:34 UTC
Created attachment 147324 [details]
kmail with Intel driver
Comment 4 Éric Brunet 2022-03-06 11:20:51 UTC
Created attachment 147325 [details]
kmail with modesetting driver

Nota: it is not plasma only, but the whole of KDE which behaves differently with Intel and Modesetting driver. I have attached, as an illustration, two screenshot of kmail's editor with both drivers.
Comment 5 Nate Graham 2022-03-22 03:34:25 UTC

*** This bug has been marked as a duplicate of bug 356446 ***