It is dedicated to Arch Linux, but the tips are common between all modern distros or can be easily adapted. The ratio has to be well-defined to make shapes fit into. You might not be aware of this fact, but every frame, digital video, canvas, responsive design, and image often has a rectangular shape that is exceptionally precise in proportion (or ratio). The DPI can be set to what you want under Settings - Appearance - Font.įor further reading, I recommend you to refer to this page. Use this ratio calculator to check the dimensions when resizing images. The scaling-factor parameter allows only whole numbers to be set. Open a new terminal window and execute the command: gsettings set scaling-factor 2 However, xrandr may have issues with certain display drivers. Xresources file is not processed, add the following line to your startup file (e.g.xinitrc or some window manager-specific file) xrdb -merge ~/.XresourcesĪlternatively, you can try with the following line: xrandr -dpi 144 Here and in all examples below, substitute the 144 portion with your actual DPI value. If you are running a window manager without a full featured DE (for example, Fluxbox), you must create or modify the /home/your user name/.Xresources file and add the following line: Xft.dpi: 144 No desktop environment/barebones window manager I'll review some common cases which will give you an idea of what to do.
#Find screen dpi how to
How to change the DPI valueĭepending on the graphical desktop environment you are using, the procedure can be different. For my screen, I need to use 144 as my DPI value.
![find screen dpi find screen dpi](https://149584678.v2.pressablecdn.com/wp-content/uploads/2021/10/Settings-System-Display-Scale-1.png)
Finally, divide your screen resolution values by inch values.In my case, the values are as follows: 13.39in x 7.48in. The output contains the physical display size in millimeters. Get your screen size in millimeters by running the command: xrandr | grep -w connected.To calculate the proper DPI value, do the following. If this value is not correct, you can calculate it yourself. The line "resolution" shows the actual value. Type or copy-paste the following command: xdpyinfo | grep -B 2 resolution.
![find screen dpi find screen dpi](https://1.bp.blogspot.com/-Xobnr-FWb0o/XbXkKw99zoI/AAAAAAAAG90/n_zEmJUvyrIkbStlElX4ZZpaWjdfDFn3wCNcBGAsYHQ/s450/screen-zoom.jpg)
To find the current DPI value of the screen used by Xserver, do the following.