The latest version of Kali 2020.3 has high DPI zoom, how to adjust the desktop text is too small?

HiDPI (High Points per Inch) Display After
starting Kali Linux, some things (Windows/buttons or text/fonts) may look smaller than expected. This may be because of HiDPI (aka High DPI). It all depends on the software in question and its manufacturing method (eg GTK2, GTK3, Qt5, etc.). This can happen due to various reasons, such as graphics card drivers and/or monitor configuration files.

If things look bigger than what you would believe is "normal", please refer to our fixed DPI guide.

This guide will introduce single-screen settings. We do not have the hardware to write a guide for testing multiple display outputs. Therefore, we are seeking help from the community. If you have hardware and expertise, please edit this guide!

Desktop environment-
Xfce Xfce does support HiDPI monitors. Although you may need to change some locations, you should make it work according to its hardware, version, and problems.
Insert picture description here

To simplify this process, Kali now provides HiDPI mode. This mode can adjust the zoom ratio of GTK, QT and even Java-based interfaces, so users do not need to manually modify each interface. You can switch it by opening "Kali HiDPI Mode" from the application menu or running kali-hidpi-mode from the terminal.

Insert picture description here
Even if kali-hidpi-mode can change the zoom factor without restarting, it is still recommended to close the session and log in again to ensure all changes are applied correctly.

Below are more instructions on manual settings.

After the scale factor
GTK
logs in to Kali, the wallpaper may look "normal", but all other content may be "small".
Increasing the "zoom ratio" from "x1" to "x 2" should solve this problem. You can perform the following two operations through the command line or graphically:

In a terminal window, run the following command:

kali@kali:~$ echo export GDK_SCALE=2 >> ~/.xsessionrc
kali@kali:~$
kali@kali:~$ xfconf-query -c xfwm4 -p /general/theme -s Kali-Dark-xHiDPI
kali@kali:~$
kali@kali:~$ xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -n -t 'int' -s 2
kali@kali:~$

Graphics:
Kali->Settings->Appearance->Settings->Windows Scale
Kali->Settings->Appearance->Window Manager->Theme: Kali-Dark-xHiDPI

Insert picture description here
The fastest way to clear all remaining artifacts is to log out and log in again.

t
Some applications (such as qTerminal) do not use the scale factor described above, so they need to be configured separately.

To do this, you need to set the following environment variables in the ~/.xsessionrc file:

kali@kali:~$ echo export QT_SCALE_FACTOR=2 >> ~/.xsessionrc
kali@kali:~$

Cursor size
Enabling the HiDPI setting may cause some problems with the mouse size, and you may see how its size changes, depending on the application placed.

To solve this problem, you can use the following command to force the cursor size:

kali@kali:~$ echo export XCURSOR_SIZE=48 >> ~/.xsessionrc

Login Screen-LightDM
Do you encounter problems when the login screen (lightdm) is smaller than "normal"?

Insert picture description here

可能的解决方案是将“ xft-dpi”设置为“ 180(或更高)”:

kali@kali:~$ grep xft-dpi /etc/lightdm/lightdm-gtk-greeter.conf
xft-dpi = 96
kali@kali:~$
kali@kali:~$ sudo vim /etc/lightdm/lightdm-gtk-greeter.conf
kali@kali:~$
kali@kali:~$ cat /etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
...SNIP...
xft-dpi = 180
...SNIP...
kali@kali:~$

You may need to try increasing the value from 180.

Guess you like

Origin blog.csdn.net/vanarrow/article/details/108893868