-
Notifications
You must be signed in to change notification settings - Fork 38
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
GUI is not HiDPI aware #63
Comments
I see colemickens beat me to it, but I see no response so far and the lack of 4k / HiDPI support is not tolerable! It is really, really hard to read anything! I'm using Gnome Shell and Linux with 4k display. Just compare the normal size text (in the browser) and what Yubikey personalization app shows! On 4k display the text in the browser looks with normal size, while the text in the Yubikey personalization looks unreadably tiny!! |
same story here, version 3.1.24 is unusable on HiDPI display. |
So unfortunately this tool is built with pixel sizes, so fixing this properly might take some work. With QT 5.6 it should be possible to get the application to auto scale (like what happens on a mac) by setting the environment variable QT_AUTO_SCREEN_SCALE_FACTOR=1 when starting. |
Comment regarding QT 5.6 scaling is correct and this is what I am doing now; unfortunately, QT_AUTO_SCREEN_SCALE_FACTOR only takes integers, and value 2 is too big for my screen whilst 1 is too small. |
http://doc.qt.io/qt-5/highdpi.html#high-dpi-support-in-qt details some different ways this can be controlled. Not sure how much it helps, but what I can offer in the short run. |
Workaround for the yubico released windows binaries is setting environment variable QT_DEVICE_PIXEL_RATIO to auto. |
Commenting to report same issue on Surface Pro. GUI is unusable. Is there any way to change the variable mentioned above without downloading QT studio, source code, and compiling? Edit: adding " -platform windows:dpiawareness=0" to the end of the "Target" field of the shortcut properties seems to have fixed the issue on my SP4 running W10. It does look somewhat blurry, however. |
The issue exists as well on Ubuntu 16.04.1 Xenial LTS with a 3200x1800 @ 13.3" monitor (276 DPI). In the Ubuntu settings, the ratio is set to 1.75 (under the Ajuster les menus et barres de titre label): http://imgur.com/4UStDfi Example with the GitHub issue and the Google search homepage for comparision: http://imgur.com/epBbp9S Using Yubico Personalization Tool v. 3.1.23 (the one provided in the official Ubuntu repo) |
Same problem with Fedora 27 on XPS 13 HiDPI laptop. Super tiny GUI |
On Ubuntu 18.04 I found that using
makes the application window taller than the available pixels, and as the window isn't resizeable the controls in the off-screen area are unreachable. It also reports as being deprecated
I then tried
which is a boolean with the same result. I eventually found the solution with
|
I commented on this 2 years ago and it's still an issue. |
4 years ago - yubico are really-really fast fixing issues |
And 2022 still not working |
2023 and still not working |
This worked for me. Using a 2017 vintage HP x360 Spectre 15" with 16:9 aspect ratio screen, 4k UHD, running Windows 10 v. 22H2.
(opens actual shortcut folder)
Double click shortcut to test. The aspect ratio of the initial tiny, illegible box (which originally appeared on my screen as 3-3/16" (3.1875") x 2-3/4 (2.75") for a ratio of .86) changed slightly to .83 or so after the change (7-7/8" (7.875") x 6-9/16" (6.5625") for a ratio of .83 or so), but the app is much more usable than before. I haven't found any options / toggle buttons / margins unusable yet, but please advise if any issues are found that I may have missed. Regards, RC P.S. Granted this is only a Windows solution (vs Linux or Ubuntu, etc), but it might help someone else out there. |
If using Ubuntu, try changing the Exec=yubikey-personalization-gui to Exec=env QT_AUTO_SCREEN_SCALE_FACTOR=2 yubikey-personalization-gui Note: This will only change when rendered from search not the command line. |
Are there any workarounds for this?
See screenshot. I have to squint quite hard to make things out.
https://i.imgur.com/xgqv54K.png
Thanks!
The text was updated successfully, but these errors were encountered: