Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Information cut off by narrow columns in HiDPI scaled desktop #26

Open
taprobane99 opened this issue Apr 8, 2021 · 3 comments
Open
Labels
bug Something isn't working

Comments

@taprobane99
Copy link

Font size is too small, and the first 4 columns too narrow on my system (KDE plasma, 125% scaling, 144 dpi font) cutting off some of the information displayed.

Is is possible to either scale correctly with font DPI, or have adjustable font size in the GUI and adjustable column width?

@rockowitz
Copy link
Owner

Thank you for the report. A couple questions. Is the font size too small everywhere, or just in the Features view. Are you using the 0.2.0-dev branch, which was close to release, or the 0.1.2 release, which is quite ancient? If the latter, can you confirm the problem on 0.2.0-dev?

I have to admit that this project is the first time I've used Qt, and it's been a struggle to get things to format adequately. ddcui could use input from someone who's fluent in Qt.

@taprobane99
Copy link
Author

taprobane99 commented Apr 8, 2021

Screenshot_20210408_213948

I'm using the ddcui-git AUR package built today.

Screenshot attached to show problem. Hopefully it's an easy fix.

btw. I am not using system display scaling but have forced my font dpi to a higher value than default.

edit: same result using system display scaling >100%

@rockowitz
Copy link
Owner

rockowitz commented Apr 11, 2021

I have looked into the hidpi issue. A a proper general solution is non-trivial and would greatly delay upcoming release 0.2.0. For now, I suggest that you experiment with setting environment variables before executing ddcui. The environment variables are
QT_AUTO_SCREEN_SCALE_FACTOR, QT_SCALE_FACTOR, QT_SCREEN_SCALE_FACTORS.

Qt 5.14 saw significant enhancements to hidpi support, and added the following environment variables: QT_ENABLE_HIDPI_SCALING, QT_DEVICE_PIXEL_RATIO.

Notes:

  • QT_AUTO_SCREEN_SCALE_FACTOR and QT_ENABLE_HIDPI_SCALING are boolean, only the values 1 or 0 make sense.
  • Scaling factors need not be an integer, but should be (approximately) a multiple of 1/6, e.g. 1.33, to avoid artifacts.
  • QT_SCREEN_SCALE_FACTORS is a comma delimited list of factors the to apply to each screen. You will have to experiment to find the proper ordering. Note that the meaning of the factors values here is not the same as QT_SCALE_FACTOR.

Examples:

$ QT_ENABLE_HIDPI_SCALING=1 ddcui
$ QT_SCALE_FACTOR=1.33 ddcui
$ QT_SCREEN_SCALE_FACTORS=1,2

For more detailed documentation, see HighDPIDisplays

@rockowitz rockowitz added bug Something isn't working enhancement New feature or request and removed enhancement New feature or request labels Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants