Blury Interface with Gnome Wayland and fractional scaling

Hi, this is not an issue isolated to anki, but i think more generally to Qt-Apps with Wayland and fractional scaling.

I have a somewhat unusual Display Resolution (2256x1504@13.5 inches) and therefore somewhat a HiDPI screen. This means for a useable interface i use a fractional scaling of 150%. Unfortunately this results in a blurry interface with qt-apps like KeePassXC or Anki. I guess this is because of Wayland and maybe XWayland. It would be really nice if the Anki developers could see if they can get a native Wayland support and if this would resolve the Issue. Programs like firefox, thunderbird or TLP-UI don’t have this issue.

Appended is a screenshot that should help explain the issue better.

System information:
Manjaro Gnome 41.5
Kernel 5.17
Screen 2256x1504 with Scaling 150%
Graphics Mesa Intel

Anki 2.1.50 (26d40c3a) Python 3.10.4 Qt 6.2.3 PyQt 6.2.3
also tested with 2.1.49, makes no difference

Is this bug on the aggenda or is there some known workaround for this? Maybe turn of the scaling for this program specifically and use the anki internal upscaling?

You can force wayland mode with QT_QPA_PLATFORM=wayland ANKI_WAYLAND=1 in a terminal. If it does not help, it’s doubtful there is anything Anki can do about it.

1 Like

It does indeed help with the sharpness of the interface, it looks very good. Unfortunately Anki is otherwise unusable, window title bar doesn’t render correctly and the full screen mode shows no window at all, but is transparent instead.

But thank you for your answer.

The transparent space in the second screenshot does in reality also show the desktop, it is, you could say, transparent.

I can confirm the second issue and have added it to the issue tracker: Wayland issues · Issue #1767 · ankitects/anki · GitHub

Also, for me the Qt5 build requires setting QT_QPA_PLATFORM=wayland ANKI_WAYLAND=1 whereas Qt6 doesn’t.

1 Like