ecc83,
Pilot6, спасибо вам за помощь!
Какое значение DPI тебе нужно установить?
Да, хочется 55 как есть на самом деле.
Покажи:
kofesutra@kofesutra-server:~$ cat /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[Seat:*]
# Dump core
xserver-command=X -core
Давно такого файла ни у кого нет.
На счёт "ни у кого" это вы погорячились. NVIDIA Settings его создаёт.
Да, действительно, NVidia его создаёт
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 381.22 (buildmeister@swio-display-x86-rhel47-02) Thu May 4 01:29:00 PDT 2017
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
Option "UseEdidDpi" "false"
Option "DPI" "55x55"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Например если нужно установить DPI 55...
Сделал как Вы сказали, теперь такие разночтения:
kofesutra@kofesutra-server:~$ cat /var/log/Xorg.0.log | grep DPI
[ 29219.051] (**) NVIDIA(0): Option "DPI" "55x55"
[ 29219.901] (**) NVIDIA(0): DPI set to (55, 55); computed from "DPI" X config option
kofesutra@kofesutra-server:~$ xdpyinfo | grep -B1 dot
dimensions: 1920x1080 pixels (508x286 millimeters)
resolution: 96x96 dots per inch
Вторая команда выводит неправду и по dpi и по физическому размеру экрана.
К слову сказать, галочка "настройка\внешний вид\шрифты\задать dpi" неактивна. Впрочем, её включение/выключение не влияет на выхлоп этих команд.