Hi,
I’m doing AI developments and moved from Ubuntu to Manjaro, which works really, really great; love it.
So, after installing Anaconda, I was facing issues regarding the DPI scaling of Anaconda on my 4K Display. Fonts / Icons are way too large.
0.0 Just in case here are the steps to install it:
Install some packages, needed by Anaconda with:
pacman -Sy libxau libxi libxss libxtst libxcursor libxcomposite libxdamage libxfixes libxrandr libxrender mesa-libgl alsa-lib libglvnd
Download the package from https://www.anaconda.com/products/individual
https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
After Download, change the execution flag
chmod +x ~/Downloads/Anaconda3-2021.11-Linux-x86_64.sh
and start the script, saying “yes” to everything. However, after installation I was facing the issues as described above.
Here’s how I fixed it; hope it may help some others:
1.0 Edit the Anaconda config:
nano ~/.anaconda/navigator/anaconda-navigator.ini
and set:
enable_high_dpi_scaling = True
2.0 Create an Anaconda startup file
nano ~/anaconda.desktop"
and paste the following lines into it:
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda
Exec=/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=1.5 /home/uwuertz/anaconda3/bin/anaconda-navigator Icon=/home/uwuertz/anaconda3/lib/python3.9/site-packages/anaconda_navigator/app/icons/Icon1024.png
Terminal=false
Even if you have this already:
There is a different command line for starting up Anaconda: “Exec=/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=1.5 /home/uwuertz/anaconda3/bin/anaconda-navigator” !
Please check and change the directory “/home/uwuertz/…” to your needs and double check the python version.
Install it with:
sudo desktop-file-install anaconda.desktop
Caution: This fix will only work, if you start Anaconda via the icon.
2.1 If you want to execute Anaconda from cli, you have to set the scaling factor manually
export QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_SCALE_FACTOR=1.5 anaconda-navigator
2.2 In case you get messages after executing Anaconda, such as:
“libGL error: MESA-LOADER: failed to open iris:…”
then execute:
mv ~/anaconda3/lib/libstdc++.so.6 ~/anaconda3/lib/libstdc++.so.6.bck
to fix this issue.
At least on my Manjaro, this has worked perfect for me. Hope it helps for some others.