Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 11596  / 1 Year ago, thu, december 15, 2022, 1:01:11

What is the proper way to set DPI value now? gnome-tweak allows to set only scaling factor, which is unsatisfactory and also not all applications take that into account (Chrome for example).



I would like to pass "-dpi" flag to Xorg when it starts, but can't find a way to configure "lightdm" to do so. Is it possible?


More From » xorg

 Answers
3

In /etc/lightdm/lightdm.conf, you can override the xserver-command parameter (which usually defaults to simply "X"). Here is mine:



xserver-command=X -dpi 75


This has the intended effect of scaling my entire desktop, gnome programs included. Desktop effects are fine, no odd artifacts. It also sets the xdpyinfo, but xft.dpi must be set separately:



$ xdpyinfo|grep dots
resolution: 75x75 dots per inch
$ xrdb -query|grep dpi
Xft.dpi: 96


See madmuffin's answer for how to set Xft.dpi appropriately.


[#42537] Thursday, December 15, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
neasinient

Total Points: 491
Total Questions: 120
Total Answers: 93

Location: The Bahamas
Member since Mon, Aug 2, 2021
3 Years ago
neasinient questions
;