<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knowledge Base (Posts about hidpi)</title><link>https://bgstack15.ddns.net/blog/</link><description></description><atom:link href="https://bgstack15.ddns.net/blog/categories/hidpi.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:bgstack15@gmail.com"&gt;bgstack15&lt;/a&gt; 
&lt;a rel="license" href="https://www.gnu.org/licenses/gpl-3.0.html"&gt;
&lt;img alt="GNU General Public License v3.0"
style="border-width:0; margin-bottom:12px;"
src="https://bgstack15.ddns.net/.images/gplv3-127x51.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Sat, 30 May 2026 13:00:36 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Keepass2: fix puffy ui and fonts</title><link>https://bgstack15.ddns.net/blog/posts/2026/05/30/keepass2-fix-puffy-ui-and-fonts/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;It feels like the tech I wish to use wants to fight me. It's getting frustrating. (Or maybe I'm just getting old.)&lt;/p&gt;
&lt;p&gt;I did a medium-dive into DPI on Linux again, because the Mono-based application &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/keepass.info/"&gt;keepass2&lt;/a&gt; wanted to look really puffy and bloated. I have a 1920x1080 display, with no special scaling at all. I know I've had to tell QT applications what scaling to use, because they apparently guess wrong on basic 1920x1080.&lt;/p&gt;
&lt;p&gt;Wrong view (bloated):
&lt;a href="https://bgstack15.ddns.net/blog/2026/scrot-keepass2-bloated.png"&gt;&lt;img alt="" src="https://bgstack15.ddns.net/blog/2026/scrot-keepass2-bloated.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Right view (not bloated):
&lt;a href="https://bgstack15.ddns.net/blog/2026/scrot-keepass2-not-bloated.png"&gt;&lt;img alt="" src="https://bgstack15.ddns.net/blog/2026/scrot-keepass2-not-bloated.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This time, for some dumb reason KeePass wanted everything to look like it's scaled up kinda big and puffy. The solution to this is to uncheck the setting "Force usage of system font (Unix only)."&lt;/p&gt;
&lt;p&gt;The setting:
&lt;a href="https://bgstack15.ddns.net/blog/2026/scrot-keepass2-options-force-usage-of-system-font.png"&gt;&lt;img alt="" src="https://bgstack15.ddns.net/blog/2026/scrot-keepass2-options-force-usage-of-system-font.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don't know why it sometimes flips. Maybe it's like that other &lt;a href="https://bgstack15.ddns.net/blog/posts/2026/04/16/keepass2-2.60-check-update-problem/"&gt;setting that magically changes&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Aborted research&lt;/h2&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;GDK_SCALE=1 GDK_DPI_SCALE=1
xrdb -override &amp;lt;&amp;lt;&amp;lt; "Xft.dpi:96"
xrdb -query
MONO_MWF_NATIVE=1
MONO_OPTIONS="--debug"
&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;Unhelpful references&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/wiki.archlinux.org/title/HiDPI?useskin=vector#Mono_applications"&gt;HiDPI - ArchWiki#Mono applications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/wiki.debian.org/MonitorDPI"&gt;MonitorDPI - Debian Wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/keepass.info/news/n141008_2.28.html"&gt;KeePass 2.28 released - KeePass&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><category>hidpi</category><category>keepass</category><category>narrative</category><category>rant</category><guid>https://bgstack15.ddns.net/blog/posts/2026/05/30/keepass2-fix-puffy-ui-and-fonts/</guid><pubDate>Sat, 30 May 2026 12:59:00 GMT</pubDate></item><item><title>Fix vlc ui scaling problems</title><link>https://bgstack15.ddns.net/blog/posts/2019/04/11/fix-vlc-ui-scaling-problems/</link><dc:creator>bgstack15</dc:creator><description>&lt;h2&gt;Vlc disable hidpi scaling&lt;/h2&gt;
&lt;h3&gt;tl;dr&lt;/h3&gt;
&lt;p&gt;Set the environment variables:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;QT_AUTO_SCREEN_SCALE_FACTOR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;QT_SCREEN_SCALE_FACTORS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;The story&lt;/h2&gt;
&lt;p&gt;I am testing Fluxbox on Devuan on a physical system (instead of just a VM)
with two monitors. I discovered that on one monitor, the ui for vlc is scaled
way wrong. For my left monitor, the buttons are way larger than they should
be. &lt;img alt="VLC with large buttons and normal
menus" src="https://bgstack15.ddns.net/blog/2019/03/vlc_bad_scaling_left.png"&gt;
And on the other monitor, the buttons were normal-sized, but the menus and
other text widgets were way too small. &lt;img alt="VLC with normal buttons and tiny
menus" src="https://bgstack15.ddns.net/blog/2019/03/vlc_bad_scaling_right.png"&gt;
When I set the environment variables as described above, vlc appears in the
correct scaling. At one point, I had some OS or DE installed that showed that
my system viewed the left monitor (HDMI-connected) as a 7" screen with
1920x1080 resolution, which is why the scaling on the left side was messed up.
&lt;img alt="VLC with normal buttons and
menus" src="https://bgstack15.ddns.net/blog/2019/03/vlc_scaling_good.png"&gt; Not
only did I add those variable exports to my ~/.fluxbox/startup file, I also
wrote a wrapper for vlc as &lt;strong&gt;/usr/local/bin/vlc&lt;/strong&gt;&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt;&lt;span class="normal"&gt;1&lt;/span&gt;
&lt;span class="normal"&gt;2&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="ch"&gt;#!/bin/sh&lt;/span&gt;
&lt;span class="nv"&gt;QT_AUTO_SCREEN_SCALE_FACTOR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="nv"&gt;QT_SCREEN_SCALE_FACTORS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt; /usr/bin/vlc
&lt;/code&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;I was not aware that VLC was a QT program. But, after setting some environment
variables,&lt;/p&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;h3&gt;Weblinks&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.videolan.org/viewtopic.php?t=144476"&gt;How to Enable hiDPI Scaling? - The VideoLAN Forums&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Internet searches&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://duckduckgo.com/?q=vlc+disable+hidpi+scaling&amp;amp;t=palemoon&amp;amp;ia=web"&gt;vlc disable hidpi scaling&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><category>graphics</category><category>hidpi</category><category>oneliner</category><category>scaling</category><category>vlc</category><guid>https://bgstack15.ddns.net/blog/posts/2019/04/11/fix-vlc-ui-scaling-problems/</guid><pubDate>Thu, 11 Apr 2019 12:51:14 GMT</pubDate></item></channel></rss>