You are not logged in.

#1 2018-10-04 18:26:30

Swiftie
Member
From: Ukraine
Registered: 2013-04-27
Posts: 22

DPI different behavior

Hello!
Recently i bought HP Omen 15 dc0051nr (15.6" 1920x1080) and installed latest Arch Linux on it (Lightdm, awesome).
And i have problem with dpi. I've adjusted dpi to 120 (default used by pre-installed windows 10). Because the default calculated value (141) makes some applications "too big".
But i got different scale in applications. For example screenshots of Arch Wiki on two browsers here.
And there is no extra Xorg configs exists (except for touchpad and keyboard).

How i can achieve same results in both Chrome? Thanks!

xdpyinfo | grep -B resolution

screen #0:
  dimensions:    1920x1080 pixels (341x191 millimeters)
  resolution:    143x144 dots per inch

xorg.conf 20-nvidia.conf

Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName "GeForce GTX 1060 Mobile"
        Option "UseEdidDpi" "False"
	Option "DPI" "120 x 120"
EndSection

.Xresources

Xft.dpi: 120
*.font: -*-tamsyn-medium-r-normal--16-*-*-*-*-*-*-*,xfg:FontAwesome-13:size=13:pixelsize=13,xft:Inconsolata for Powerline-13:pixelsize=13

Last edited by Swiftie (2018-10-04 19:13:31)

Offline

#2 2018-10-04 21:41:49

seth
Member
Registered: 2012-09-03
Posts: 51,216

Re: DPI different behavior

"120x120" - if the blanks are not the problem, something resets the resolution (check the xorg log about the nvidia configlet and possible errors reg. the DPI value)
You can update it at runtime "xrandr --dpi 120", but that's oc. suboptimal.

Offline

#3 2018-10-05 11:37:40

Swiftie
Member
From: Ukraine
Registered: 2013-04-27
Posts: 22

Re: DPI different behavior

Checked Xorg.log, seems nothing. DPI is set by "Option DPI".
Found that only some GTK apps has the issue.

[     4.255] (II) NVIDIA dlloader X Driver  410.57  Tue Sep 18 23:30:38 CDT 2018
[     4.255] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     4.261] (II) Loading sub module "fb"
[     4.261] (II) LoadModule: "fb"
[     4.261] (II) Loading /usr/lib/xorg/modules/libfb.so
[     4.262] (II) Module fb: vendor="X.Org Foundation"
[     4.262] 	compiled for 1.20.1, module version = 1.0.0
[     4.262] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     4.262] (II) Loading sub module "wfb"
[     4.262] (II) LoadModule: "wfb"
[     4.262] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     4.263] (II) Module wfb: vendor="X.Org Foundation"
[     4.263] 	compiled for 1.20.1, module version = 1.0.0
[     4.263] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     4.263] (II) Loading sub module "ramdac"
[     4.263] (II) LoadModule: "ramdac"
[     4.263] (II) Module "ramdac" already built-in
[     4.264] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     4.264] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[     4.264] (==) NVIDIA(0): RGB weight 888
[     4.264] (==) NVIDIA(0): Default visual is TrueColor
[     4.264] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     4.264] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[     4.264] (**) NVIDIA(0): Option "UseEdidDpi" "False"
[     4.264] (**) NVIDIA(0): Option "DPI" "120 x 120"
[     4.264] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[     4.264] (**) NVIDIA(0): Enabling 2D acceleration
[     4.264] (II) Loading sub module "glxserver_nvidia"
[     4.264] (II) LoadModule: "glxserver_nvidia"
[     4.264] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[     4.288] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[     4.288] 	compiled for 4.0.2, module version = 1.0.0
[     4.288] 	Module class: X.Org Server Extension
[     4.288] (II) NVIDIA GLX Module  410.57  Tue Sep 18 23:27:13 CDT 2018
[     5.309] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[     5.309] (--) NVIDIA(0):     DFP-0
[     5.309] (--) NVIDIA(0):     DFP-1 (boot)
[     5.309] (--) NVIDIA(0):     DFP-2
[     5.309] (--) NVIDIA(0):     DFP-3
[     5.309] (--) NVIDIA(0):     DFP-4
[     5.309] (--) NVIDIA(0):     DFP-5
[     5.311] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1060 (GP106-A) at PCI:1:0:0 (GPU-0)
[     5.311] (--) NVIDIA(0): Memory: 6291456 kBytes
[     5.311] (--) NVIDIA(0): VideoBIOS: 86.06.66.00.71
[     5.311] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[     5.311] (--) NVIDIA(GPU-0): DFP-0: disconnected
[     5.311] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[     5.311] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[     5.311] (--) NVIDIA(GPU-0): 
[     5.311] (--) NVIDIA(GPU-0): CMN (DFP-1): connected
[     5.311] (--) NVIDIA(GPU-0): CMN (DFP-1): Internal DisplayPort
[     5.311] (--) NVIDIA(GPU-0): CMN (DFP-1): 960.0 MHz maximum pixel clock
[     5.311] (--) NVIDIA(GPU-0): 
[     5.311] (--) NVIDIA(GPU-0): DFP-2: disconnected
[     5.311] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[     5.311] (--) NVIDIA(GPU-0): DFP-2: 960.0 MHz maximum pixel clock
[     5.311] (--) NVIDIA(GPU-0): 
[     5.312] (--) NVIDIA(GPU-0): DFP-3: disconnected
[     5.312] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[     5.312] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[     5.312] (--) NVIDIA(GPU-0): 
[     5.312] (--) NVIDIA(GPU-0): DFP-4: disconnected
[     5.312] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[     5.312] (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
[     5.312] (--) NVIDIA(GPU-0): 
[     5.312] (--) NVIDIA(GPU-0): DFP-5: disconnected
[     5.312] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[     5.312] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[     5.312] (--) NVIDIA(GPU-0): 
[     5.313] (==) NVIDIA(0): 
[     5.313] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[     5.313] (==) NVIDIA(0):     will be used as the requested mode.
[     5.313] (==) NVIDIA(0): 
[     5.313] (II) NVIDIA(0): Validated MetaModes:
[     5.313] (II) NVIDIA(0):     "DFP-1:nvidia-auto-select"
[     5.313] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[     5.316] (**) NVIDIA(0): DPI set to (120, 120); computed from "DPI" X config option
[     5.316] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[     5.316] (II) NVIDIA:     access.
[     5.335] (II) NVIDIA(0): Setting mode "DFP-1:nvidia-auto-select"
[     6.240] (==) NVIDIA(0): Disabling shared memory pixmaps
[     6.240] (==) NVIDIA(0): Backing store enabled
[     6.240] (==) NVIDIA(0): Silken mouse disabled

Offline

Board footer

Powered by FluxBB