You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vehicle template selection does not render correctly on linux HiDPI displays when not using a uv created venv #544
My monitor is 4K, with 3840x2160 resolution. I use 200% scaling in Cinnamon (so Linux Mint users with HiDPI monitors will likely also be affected). GUI doesn't render fonts in some selector windows correctly.
Steps To Reproduce
Buy 4K monitor
Set HiDPI/scaling to suit the tiny pixels and make everything readable and pretty
Run ardupilot_methodic_configurator
Click "Skip FC connection.."
Click selector under "Source Template directory:"
Observe incorrectly spaced text and obscured text
If I set display scaling back to 100% (which makes everything look tiny), then that selector renders correctly.
Expected behavior
Ideally ardupilot_methodic_configurator would play nice with HiDPI/Scaled displays. I realise this may not be easy with the chosen GUI software.
Screenshots / Logs
Fonts in the template selection screen look like this:
Tried to run DEBIAN 12 in general with a NUC on our 55" 4K TV. WIN 11 is OK, but DEBIAN is a hassle and I finally gave up.
Don't think, it is a MethodicConfigurator problem.
@Merga189 1920x1080 on a 27" display is not HiDPI and doesn't require display scaling to be readable. Also Xfce desktop environment is a long way removed from Cinnamon (which uses a compositor with hardware acceleration).
I've been using Linux on the desktop for over 20 years, and would concede that Debian isn't the ideal place to start. Suggest Linux Mint if you're looking for something a bit friendlier.
ETA: I suspect this is an issue with TKinter not detecting HiDPI and setting suitable scaling.
Therefore I am with my applications on such a small screen. And with Xfce, because it keeps things simple. Started with Kubuntu, then PCLos, changed to Debian starting with Wheezy, Jessie and Stretch and so on. Had LM one year on a TP some years ago, but LM is too much beating around the bush (for me).
@amilcarlucas thanks for giving this your attention.
Unfortunately #571 does not seem to have resolved this issue on my HiDPI setup. My laptop runs the same desktop environment, without HiDPI, and the template selection box renders correctly there.
I suspect Windows and Cinnamon on Linux handle scaling in different ways.
Linux thinks the monitor is 96dpi. "Monitor Scale" display setting in Cinnamon is set to 200%. Default fonts are 9-11 pt, and "Text Scaling Factor" is 1.0.
> xdpyinfo | grep -B 2 resolution
screen #0:
dimensions: 3840x2160 pixels (1016x571 millimeters)
resolution: 96x96 dots per inch
Actual monitor screen size is approximately 62x34cm. Obviously 62cm != 42 inches | 1016 mm. Actual DPI is roughly 160.
@OmkarSarkar204 can you test this on macOS? select HiDPI and see if the software still displays correctly.
Its working but my display is 2560x1600 Retina and not 4K so i tried scaling and its working perectly in that too.
I think it also fixes the "Open selected vehicle configuration directory button" , previously it was not showing sometimes and i have to increasse the size of the modal to click the button, but will test more and report if it happens again...
changed the title [-]Template selection box does not render correctly on HiDPI displays with scaling (Linux - Debian)[/-][+]Template selection box does not render correctly on HiDPI displays with scaling (Linux - Debian 12)[/+]on Mar 24, 2026
I've very recently updated from Debian 12 to LMDE7 (which is based on Debian 13). I am still using the Cinnamon environment (with X), but now using an Nvidia GPU, replacing my venerable AMD Radeon HD7790 (circa 2014, but GCN architecture). Monitor configuration is as before, with 200% scaling.
Using UV for the python environment (3.13.13), these are the results. Whilst not perfect, this is a big improvement!
Previously I had tested in a virtualenv using python built against the system tk libraries, so I thought I'd try that again.
As you can see, the results are practically the same as I was getting back in July last year.
System Python on Debian uses libtk8.6 (libtk9.0 is available, but Python depends on 8.6), whilst the UV Python uses libtk9.0.
changed the title [-]Template selection box does not render correctly on HiDPI displays with scaling (Linux - Debian 12)[/-][+]Vehicle template selection does not render correctly on HiDPI displays when not using a uv created venv[/+]on Jun 5, 2026
changed the title [-]Vehicle template selection does not render correctly on HiDPI displays when not using a uv created venv[/-][+]Vehicle template selection does not render correctly on linux HiDPI displays when not using a uv created venv[/+]on Jun 5, 2026
It'd be nice if the "Double-click the template.." text was scaled properly, but in terms of being usable, yes, installing with UV seems to be a solution.
I'd investigate further, but the lack of proprietary Nvidia drivers on the Mint & Ubuntu live disks means that I can't just spin those up and test. If only I'd known before taking the AMD card out..
Activity
Merga189 commentedon Jun 10, 2025
Not a problem here, but it could be a DPI thing on your side.
EIZO 27" with
Tried to run DEBIAN 12 in general with a NUC on our 55" 4K TV. WIN 11 is OK, but DEBIAN is a hassle and I finally gave up.
Don't think, it is a MethodicConfigurator problem.
gwvr commentedon Jun 10, 2025
@Merga189 1920x1080 on a 27" display is not HiDPI and doesn't require display scaling to be readable. Also Xfce desktop environment is a long way removed from Cinnamon (which uses a compositor with hardware acceleration).
I've been using Linux on the desktop for over 20 years, and would concede that Debian isn't the ideal place to start. Suggest Linux Mint if you're looking for something a bit friendlier.
ETA: I suspect this is an issue with TKinter not detecting HiDPI and setting suitable scaling.
Merga189 commentedon Jun 10, 2025
Therefore I am with my applications on such a small screen. And with Xfce, because it keeps things simple. Started with Kubuntu, then PCLos, changed to Debian starting with Wheezy, Jessie and Stretch and so on. Had LM one year on a TP some years ago, but LM is too much beating around the bush (for me).
Might find help at https://www.python.org/community/forums/
Found great help there when struggling building AP under Debian from the sources last year .....
Hope you get that issue solved - br
amilcarlucas commentedon Jun 12, 2025
See file ardupilot_methodic_configurator/frontend_tkinter_template_overview.py line 89 to 134
feat(HiDPI support): Support Hi DPI monitors
gwvr commentedon Jul 4, 2025
@amilcarlucas thanks for giving this your attention.
Unfortunately #571 does not seem to have resolved this issue on my HiDPI setup. My laptop runs the same desktop environment, without HiDPI, and the template selection box renders correctly there.
I installed using
so I presume that should include #571 ?
amilcarlucas commentedon Jul 4, 2025
Can you post a new screenshot? I tested it at different DPI on windows and it worked fine.
gwvr commentedon Jul 6, 2025
I suspect Windows and Cinnamon on Linux handle scaling in different ways.
Linux thinks the monitor is 96dpi. "Monitor Scale" display setting in Cinnamon is set to 200%. Default fonts are 9-11 pt, and "Text Scaling Factor" is 1.0.
Actual monitor screen size is approximately 62x34cm. Obviously 62cm != 42 inches | 1016 mm. Actual DPI is roughly 160.
amilcarlucas commentedon Jul 6, 2025
Thanks, I will try to reproduce it on Ubuntu 20.04 LTS
10 remaining items
OmkarSarkar204 commentedon Mar 21, 2026
I think it also fixes the "Open selected vehicle configuration directory button" , previously it was not showing sometimes and i have to increasse the size of the modal to click the button, but will test more and report if it happens again...
amilcarlucas commentedon Mar 23, 2026
I finally found a way to activate HiDPI on my Ubuntu Mate 20.04 computer:
It works fine with v2.10.2
gwvr commentedon Mar 23, 2026
Still no change on my machine. v2.10.2, still on Debian 12. I'll revisit this when I've got a fresh Debian 13 or LMDE7 install.
[-]Template selection box does not render correctly on HiDPI displays with scaling (Linux - Debian)[/-][+]Template selection box does not render correctly on HiDPI displays with scaling (Linux - Debian 12)[/+]amilcarlucas commentedon Mar 24, 2026
This works on Ubuntu 20.04 and other users tested it on other ubuntu versions.
So currently looks as it is a Debian 12 specific issue. I'll keep it open, I want to fix this.
feat(gui): correct HiDPI scaling via Win32 API and centralize geometr…
gwvr commentedon Jun 4, 2026
I've very recently updated from Debian 12 to LMDE7 (which is based on Debian 13). I am still using the Cinnamon environment (with X), but now using an Nvidia GPU, replacing my venerable AMD Radeon HD7790 (circa 2014, but GCN architecture). Monitor configuration is as before, with 200% scaling.
Using UV for the python environment (3.13.13), these are the results. Whilst not perfect, this is a big improvement!

gwvr commentedon Jun 4, 2026
Previously I had tested in a virtualenv using python built against the system tk libraries, so I thought I'd try that again.

As you can see, the results are practically the same as I was getting back in July last year.
System Python on Debian uses libtk8.6 (libtk9.0 is available, but Python depends on 8.6), whilst the UV Python uses libtk9.0.
amilcarlucas commentedon Jun 5, 2026
So looks like the solution is to use a UV created virtual environment and run that, instead of installing to system and running without uv?
[-]Template selection box does not render correctly on HiDPI displays with scaling (Linux - Debian 12)[/-][+]Vehicle template selection does not render correctly on HiDPI displays when not using a uv created venv[/+]amilcarlucas commentedon Jun 5, 2026
And many thanks for testing and reporting this again.
[-]Vehicle template selection does not render correctly on HiDPI displays when not using a uv created venv[/-][+]Vehicle template selection does not render correctly on linux HiDPI displays when not using a uv created venv[/+]gwvr commentedon Jun 5, 2026
It'd be nice if the "Double-click the template.." text was scaled properly, but in terms of being usable, yes, installing with UV seems to be a solution.
I'd investigate further, but the lack of proprietary Nvidia drivers on the Mint & Ubuntu live disks means that I can't just spin those up and test. If only I'd known before taking the AMD card out..