You are not logged in.

#1 2021-01-06 13:52:11

teffysam
Member
Registered: 2018-07-20
Posts: 5

Xrandr shows incorrect DisplaySize for external monitor

UPDATE: Problem "may" be isolated to Alacritty. Editing ~/.config/zoomus.conf with autoScale=false fixed my Zoom client's weird dpi issue. I will address this issue within Alacritty forums and send a final update here if I manage to find a solution. Forgive me for raising a possible non-issue in the Kernel & Hardware section but I think leaving it here may be useful for others going through the same train of thought that I did... Cheers!

I only noticed this issue after I installed Alacritty and moved the terminal window to the other external monitor. The font dpi increased when I did that, at first I thought it was an Alacritty issue but it also appears to be the case with Zoom Video Conferencing client. No other apps I know of have this issue. I am using DWM as my window manager. Any help would be greatly appreciated. Of course, this is a non-issue when I used Plasma or Gnome. Perhaps the issue is with DWM... but I cannot say for certain.

~$ inxi -aG
Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0
           chip ID: 8086:1916
           Device-2: NVIDIA GM108M [GeForce 930M] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:1346
           Device-3: Realtek USB Camera type: USB driver: uvcvideo bus ID: 1-6:4 chip ID: 0bda:57b5 serial: 
           Display: server: X.Org 1.20.10 driver: intel display ID: :0 screens: 1
           Screen-1: 0 s-res: 3840x1080 s-dpi: 182 s-size: 535x300mm (21.1x11.8") s-diag: 613mm (24.1")
           Monitor-1: eDP1 res: 1920x1080 hz: 60 dpi: 143 size: 340x190mm (13.4x7.5") diag: 389mm (15.3")
           Monitor-2: HDMI2 res: 1920x1080 hz: 60 dpi: 305 size: 160x90mm (6.3x3.5") diag: 184mm (7.2")
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.3.2 direct render: Yes

As shown above, HDMI2 is incorrectly set as 160x90mm when in reality it is 535x300mm, so I set this in:

~$ more /etc/X11/xorg.conf.d/41-monitor.conf
Section "Monitor"
    Identifier  "eDP1"
    DisplaySize	 340 190
EndSection
~$ more /etc/X11/xorg.conf.d/42-monitor.conf
Section "Monitor"
    Identifier  "HDMI2"
    DisplaySize	 535 300
    Option "RightOf" "eDP1"
EndSection

If I just mirror the monitors and remove the section with Option "RightOf" "eDP1" the dpi problem does not persist
Using Xrandr on the command line doesn't make a difference either

~$ xrandr --output "HDMI2" --fbmm 535x300

Edit:

~$ xrandr -q
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.05*+  59.93    48.04
   1680x1050     59.88
   1400x1050     59.98
   1600x900      60.00    59.95    59.82
   1280x1024     60.02
   1400x900      59.96    59.88
   1280x960      60.00
   1368x768      60.00    59.88    59.85
   1280x800      59.81    59.91
   1280x720      59.86    60.00    59.74
   1024x768      60.00
   1024x576      60.00    59.90    59.82
   960x540       60.00    59.63    59.82
   800x600       60.32    56.25
   864x486       60.00    59.92    59.57
   640x480       59.94
   720x405       59.51    60.00    58.99
   640x360       59.84    59.32    60.00
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 160mm x 90mm
   1920x1080     60.00*+  50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1600x1200     60.00
   1680x1050     59.88
   1280x1024     60.02
   1440x900      59.90
   1280x960      60.00
   1280x800      59.91
   1280x720      60.00    50.00    59.94
   1024x768      60.00
   800x600       60.32    56.25
   720x576       50.00
   720x480       60.00    59.94
   640x480       60.00    59.94
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

To clarify, this is an Asus laptop connected to a Samsung Syncmaster P2470 vai HDMI. I have not installed the Nvidia drivers and only use Intel graphics.

Here's the Xorg log

~$ more  /var/log/Xorg.0.log
[     6.521] (--) Log file renamed from "/var/log/Xorg.pid-514.log" to "/var/log/Xorg.0.log"
[     6.521]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[     6.521] Build Operating System: Linux Arch Linux
[     6.521] Current Operating System: Linux themachine 5.10.4-arch2-1 #1 SMP PREEMPT Fri, 01 Jan 2021 05:29:53 +0000 x86_64
[     6.521] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=3bfbaf80-488e-45a9-abb2-9eec2d1b3c02 rw intel_iommu=on vfio-pci.ids=10de:1346,8086:9d70 loglevel=3 intel_iommu=on vfio-pci.ids=10de:1346,8086:9d70
[     6.521] Build Date: 14 December 2020  12:10:29PM
[     6.521]
[     6.521] Current version of pixman: 0.40.0
[     6.521] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     6.521] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     6.521] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan  4 23:19:07 2021
[     6.522] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     6.522] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     6.522] (==) No Layout section.  Using the first Screen section.
[     6.522] (==) No screen section available. Using defaults.
[     6.522] (**) |-->Screen "Default Screen Section" (0)
[     6.522] (**) |   |-->Monitor "<default monitor>"
[     6.522] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[     6.522] (**) |   |-->Device "Card0"
[     6.522] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     6.522] (==) Automatically adding devices
[     6.522] (==) Automatically enabling devices
[     6.522] (==) Automatically adding GPU devices
[     6.522] (==) Automatically binding GPU devices
[     6.522] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     6.522] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF,
	/usr/share/fonts/Type1,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[     6.522] (==) ModulePath set to "/usr/lib/xorg/modules"
[     6.522] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     6.522] (II) Module ABI versions:
[     6.522] 	X.Org ANSI C Emulation: 0.4
[     6.522] 	X.Org Video Driver: 24.1
[     6.522] 	X.Org XInput driver : 24.1
[     6.522] 	X.Org Server Extension : 10.0
[     6.522] (++) using VT number 1

[     6.522] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     6.523] (II) xfree86: Adding drm device (/dev/dri/card1)
[     6.531] (II) xfree86: Adding drm device (/dev/dri/card0)
[     6.534] (--) PCI:*(0@0:2:0) 8086:1916:1043:246a rev 7, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[     6.534] (--) PCI: (1@0:0:0) 10de:1346:1043:246a rev 162, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[     6.534] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     6.534] (II) LoadModule: "glx"
[     6.534] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     6.536] (II) Module glx: vendor="X.Org Foundation"
[     6.536] 	compiled for 1.20.10, module version = 1.0.0
[     6.536] 	ABI class: X.Org Server Extension, version 10.0
[     6.536] (II) LoadModule: "intel"
[     6.536] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[     6.536] (II) Module intel: vendor="X.Org Foundation"
[     6.536] 	compiled for 1.20.10, module version = 2.99.917
[     6.536] 	Module class: X.Org Video Driver
[     6.536] 	ABI class: X.Org Video Driver, version 24.1
[     6.536] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[     6.536] (II) intel: Driver for Intel(R) HD Graphics
[     6.536] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[     6.536] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[     6.537] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20200917
[     6.537] (II) intel(0): SNA compiled from 2.99.917-914-ga511f22c
[     6.552] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 520
[     6.552] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 2 threads
[     6.552] (II) intel(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     6.552] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[     6.552] (==) intel(0): RGB weight 888
[     6.552] (==) intel(0): Default visual is TrueColor
[     6.552] (**) intel(0): Option "AccelMethod" "SNA"
[     6.552] (**) intel(0): Option "TearFree" "true"
[     6.553] (II) intel(0): Output eDP1 has no monitor section
[     6.553] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[     6.553] (II) intel(0): Enabled output eDP1
[     6.553] (II) intel(0): Output DP1 has no monitor section
[     6.554] (II) intel(0): Enabled output DP1
[     6.554] (II) intel(0): Output HDMI1 has no monitor section
[     6.554] (II) intel(0): Enabled output HDMI1
[     6.554] (II) intel(0): Output HDMI2 has no monitor section
[     6.554] (II) intel(0): Enabled output HDMI2
[     6.554] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[     6.555] (II) intel(0): Output VIRTUAL1 has no monitor section
[     6.555] (II) intel(0): Enabled output VIRTUAL1
[     6.555] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[     6.555] (**) intel(0): TearFree enabled
[     6.555] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[     6.555] (==) intel(0): DPI set to (96, 96)
[     6.555] (II) Loading sub module "dri3"
[     6.555] (II) LoadModule: "dri3"
[     6.555] (II) Module "dri3" already built-in
[     6.555] (II) Loading sub module "dri2"
[     6.555] (II) LoadModule: "dri2"
[     6.555] (II) Module "dri2" already built-in
[     6.555] (II) Loading sub module "present"
[     6.555] (II) LoadModule: "present"
[     6.555] (II) Module "present" already built-in
[     6.555] (II) intel(0): SNA initialized with Skylake (gen9) backend
[     6.555] (==) intel(0): Backing store enabled
[     6.555] (==) intel(0): Silken mouse disabled
[     6.555] (II) intel(0): HW Cursor enabled
[     6.556] (==) intel(0): DPMS enabled
[     6.556] (==) intel(0): Display hotplug detection enabled
[     6.556] (II) intel(0): [DRI2] Setup complete
[     6.556] (II) intel(0): [DRI2]   DRI driver: i965
[     6.556] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[     6.556] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[     6.556] (II) intel(0): hardware support for Present enabled
[     6.556] (II) Initializing extension Generic Event Extension
[     6.557] (II) Initializing extension SHAPE
[     6.557] (II) Initializing extension MIT-SHM
[     6.557] (II) Initializing extension XInputExtension
[     6.558] (II) Initializing extension XTEST
[     6.558] (II) Initializing extension BIG-REQUESTS
[     6.558] (II) Initializing extension SYNC
[     6.559] (II) Initializing extension XKEYBOARD
[     6.559] (II) Initializing extension XC-MISC
[     6.559] (II) Initializing extension SECURITY
[     6.559] (II) Initializing extension XFIXES
[     6.560] (II) Initializing extension RENDER
[     6.560] (II) Initializing extension RANDR
[     6.561] (II) Initializing extension COMPOSITE
[     6.561] (II) Initializing extension DAMAGE
[     6.561] (II) Initializing extension MIT-SCREEN-SAVER
[     6.561] (II) Initializing extension DOUBLE-BUFFER
[     6.562] (II) Initializing extension RECORD
[     6.562] (II) Initializing extension DPMS
[     6.562] (II) Initializing extension Present
[     6.563] (II) Initializing extension DRI3
[     6.563] (II) Initializing extension X-Resource
[     6.563] (II) Initializing extension XVideo
[     6.563] (II) Initializing extension XVideo-MotionCompensation
[     6.563] (II) Initializing extension GLX
[     6.585] (II) AIGLX: Loaded and initialized i965
[     6.585] (II) GLX: Initialized DRI2 GL provider for screen 0
[     6.585] (II) Initializing extension XFree86-VidModeExtension
[     6.585] (II) Initializing extension XFree86-DGA
[     6.586] (II) Initializing extension XFree86-DRI
[     6.586] (II) Initializing extension DRI2
[     6.589] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[     6.598] (II) intel(0): Setting screen physical size to 508 x 285
[     6.662] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[     6.662] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     6.662] (**) Power Button: Applying InputClass "Elan Touchpad"
[     6.662] (II) LoadModule: "libinput"
[     6.662] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[     6.663] (II) Module libinput: vendor="X.Org Foundation"
[     6.663] 	compiled for 1.20.8, module version = 0.30.0
[     6.663] 	Module class: X.Org XInput Driver
[     6.663] 	ABI class: X.Org XInput driver, version 24.1
[     6.663] (II) Using input driver 'libinput' for 'Power Button'
[     6.663] (**) Power Button: always reports core events
[     6.663] (**) Option "Device" "/dev/input/event2"
[     6.663] (**) Option "_source" "server/udev"
[     6.665] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     6.665] (II) event2  - Power Button: device is a keyboard
[     6.665] (II) event2  - Power Button: device removed
[     6.689] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[     6.689] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     6.689] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     6.689] (II) event2  - Power Button: device is a keyboard
[     6.690] (II) config/udev: Adding input device Asus Wireless Radio Control (/dev/input/event4)
[     6.690] (**) Asus Wireless Radio Control: Applying InputClass "libinput keyboard catchall"
[     6.690] (**) Asus Wireless Radio Control: Applying InputClass "Elan Touchpad"
[     6.690] (II) Using input driver 'libinput' for 'Asus Wireless Radio Control'
[     6.690] (**) Asus Wireless Radio Control: always reports core events
[     6.690] (**) Option "Device" "/dev/input/event4"
[     6.690] (**) Option "_source" "server/udev"
[     6.691] (II) event4  - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[     6.691] (II) event4  - Asus Wireless Radio Control: device is a keyboard
[     6.691] (II) event4  - Asus Wireless Radio Control: device removed
[     6.738] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/input/input4/event4"
[     6.738] (II) XINPUT: Adding extended input device "Asus Wireless Radio Control" (type: KEYBOARD, id 7)
[     6.740] (II) event4  - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[     6.740] (II) event4  - Asus Wireless Radio Control: device is a keyboard
[     6.741] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
[     6.742] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     6.742] (**) Video Bus: Applying InputClass "Elan Touchpad"
[     6.742] (II) Using input driver 'libinput' for 'Video Bus'
[     6.742] (**) Video Bus: always reports core events
[     6.742] (**) Option "Device" "/dev/input/event9"
[     6.742] (**) Option "_source" "server/udev"
[     6.744] (II) event9  - Video Bus: is tagged by udev as: Keyboard
[     6.744] (II) event9  - Video Bus: device is a keyboard
[     6.744] (II) event9  - Video Bus: device removed
[     6.795] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input9/event9"
[     6.795] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[     6.798] (II) event9  - Video Bus: is tagged by udev as: Keyboard
[     6.798] (II) event9  - Video Bus: device is a keyboard
[     6.800] (II) config/udev: Adding input device Video Bus (/dev/input/event10)
[     6.800] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     6.800] (**) Video Bus: Applying InputClass "Elan Touchpad"
[     6.800] (II) Using input driver 'libinput' for 'Video Bus'
[     6.800] (**) Video Bus: always reports core events
[     6.800] (**) Option "Device" "/dev/input/event10"
[     6.800] (**) Option "_source" "server/udev"
[     6.803] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[     6.803] (II) event10 - Video Bus: device is a keyboard
[     6.804] (II) event10 - Video Bus: device removed
[     6.848] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:22/LNXVIDEO:01/input/input10/event10"
[     6.848] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 9)
[     6.853] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[     6.853] (II) event10 - Video Bus: device is a keyboard
[     6.855] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[     6.855] (**) Lid Switch: Applying InputClass "Elan Touchpad"
[     6.855] (II) Using input driver 'libinput' for 'Lid Switch'
[     6.855] (**) Lid Switch: always reports core events
[     6.855] (**) Option "Device" "/dev/input/event0"
[     6.855] (**) Option "_source" "server/udev"
[     6.858] (II) event0  - Lid Switch: is tagged by udev as: Switch
[     6.858] (II) event0  - Lid Switch: device is a switch device
[     6.858] (II) event0  - Lid Switch: device is a switch device
[     6.859] (II) event0  - Lid Switch: device removed
[     6.872] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0/event0"
[     6.872] (II) XINPUT: Adding extended input device "Lid Switch" (type: KEYBOARD, id 10)
[     6.875] (II) event0  - Lid Switch: is tagged by udev as: Switch
[     6.875] (II) event0  - Lid Switch: device is a switch device
[     6.875] (II) event0  - Lid Switch: device is a switch device
[     6.877] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[     6.877] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[     6.877] (**) Sleep Button: Applying InputClass "Elan Touchpad"
[     6.877] (II) Using input driver 'libinput' for 'Sleep Button'
[     6.877] (**) Sleep Button: always reports core events
[     6.877] (**) Option "Device" "/dev/input/event1"
[     6.877] (**) Option "_source" "server/udev"
[     6.880] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[     6.880] (II) event1  - Sleep Button: device is a keyboard
[     6.881] (II) event1  - Sleep Button: device removed
[     6.895] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[     6.895] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 11)
[     6.899] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[     6.899] (II) event1  - Sleep Button: device is a keyboard
[     6.902] (II) config/udev: Adding input device USB Camera: USB Camera (/dev/input/event6)
[     6.902] (**) USB Camera: USB Camera: Applying InputClass "libinput keyboard catchall"
[     6.902] (**) USB Camera: USB Camera: Applying InputClass "Elan Touchpad"
[     6.902] (II) Using input driver 'libinput' for 'USB Camera: USB Camera'
[     6.902] (**) USB Camera: USB Camera: always reports core events
[     6.902] (**) Option "Device" "/dev/input/event6"
[     6.902] (**) Option "_source" "server/udev"
[     6.906] (II) event6  - USB Camera: USB Camera: is tagged by udev as: Keyboard
[     6.907] (II) event6  - USB Camera: USB Camera: device is a keyboard
[     6.907] (II) event6  - USB Camera: USB Camera: device removed
[     6.941] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input6/event6"
[     6.941] (II) XINPUT: Adding extended input device "USB Camera: USB Camera" (type: KEYBOARD, id 12)
[     6.946] (II) event6  - USB Camera: USB Camera: is tagged by udev as: Keyboard
[     6.947] (II) event6  - USB Camera: USB Camera: device is a keyboard
[     6.949] (II) config/udev: Adding input device Elan Touchpad (/dev/input/event7)
[     6.949] (**) Elan Touchpad: Applying InputClass "libinput touchpad catchall"
[     6.949] (**) Elan Touchpad: Applying InputClass "Elan Touchpad"
[     6.949] (II) Using input driver 'libinput' for 'Elan Touchpad'
[     6.949] (**) Elan Touchpad: always reports core events
[     6.949] (**) Option "Device" "/dev/input/event7"
[     6.949] (**) Option "_source" "server/udev"
[     6.953] (II) event7  - Elan Touchpad: is tagged by udev as: Touchpad
[     6.957] (II) event7  - Elan Touchpad: device is a touchpad
[     6.958] (II) event7  - Elan Touchpad: device removed
[     7.008] (**) Option "Tapping" "on"
[     7.008] (**) Option "NaturalScrolling" "true"
[     7.009] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-ELAN1000:00/input/input7/event7"
[     7.009] (II) XINPUT: Adding extended input device "Elan Touchpad" (type: TOUCHPAD, id 13)
[     7.014] (**) Option "AccelerationScheme" "none"
[     7.014] (**) Elan Touchpad: (accel) selected scheme none/0
[     7.014] (**) Elan Touchpad: (accel) acceleration factor: 2.000
[     7.014] (**) Elan Touchpad: (accel) acceleration threshold: 4
[     7.018] (II) event7  - Elan Touchpad: is tagged by udev as: Touchpad
[     7.022] (II) event7  - Elan Touchpad: device is a touchpad
[     7.025] (II) config/udev: Adding input device Elan Touchpad (/dev/input/mouse0)
[     7.025] (**) Elan Touchpad: Applying InputClass "Elan Touchpad"
[     7.025] (II) Using input driver 'libinput' for 'Elan Touchpad'
[     7.025] (**) Elan Touchpad: always reports core events
[     7.025] (**) Option "Device" "/dev/input/mouse0"
[     7.025] (**) Option "_source" "server/udev"
[     7.075] (II) mouse0  - not using input device '/dev/input/mouse0'.
[     7.075] (EE) libinput: Elan Touchpad: Failed to create a device for /dev/input/mouse0
[     7.075] (EE) PreInit returned 2 for "Elan Touchpad"
[     7.075] (II) UnloadModule: "libinput"
[     7.077] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event11)
[     7.077] (**) HDA Intel PCH Headphone: Applying InputClass "Elan Touchpad"
[     7.077] (II) Using input driver 'libinput' for 'HDA Intel PCH Headphone'
[     7.077] (**) HDA Intel PCH Headphone: always reports core events
[     7.077] (**) Option "Device" "/dev/input/event11"
[     7.077] (**) Option "_source" "server/udev"
[     7.080] (II) event11 - HDA Intel PCH Headphone: is tagged by udev as: Switch
[     7.128] (II) event11 - not using input device '/dev/input/event11'.
[     7.128] (EE) libinput: HDA Intel PCH Headphone: Failed to create a device for /dev/input/event11
[     7.128] (EE) PreInit returned 2 for "HDA Intel PCH Headphone"
[     7.128] (II) UnloadModule: "libinput"
[     7.130] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event12)
[     7.130] (**) HDA Intel PCH HDMI/DP,pcm=3: Applying InputClass "Elan Touchpad"
[     7.130] (II) Using input driver 'libinput' for 'HDA Intel PCH HDMI/DP,pcm=3'
[     7.130] (**) HDA Intel PCH HDMI/DP,pcm=3: always reports core events
[     7.130] (**) Option "Device" "/dev/input/event12"
[     7.130] (**) Option "_source" "server/udev"
[     7.134] (II) event12 - HDA Intel PCH HDMI/DP,pcm=3: is tagged by udev as: Switch
[     7.178] (II) event12 - not using input device '/dev/input/event12'.
[     7.178] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=3: Failed to create a device for /dev/input/event12
[     7.178] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=3"
[     7.178] (II) UnloadModule: "libinput"
[     7.180] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event13)
[     7.180] (**) HDA Intel PCH HDMI/DP,pcm=7: Applying InputClass "Elan Touchpad"
[     7.180] (II) Using input driver 'libinput' for 'HDA Intel PCH HDMI/DP,pcm=7'
[     7.180] (**) HDA Intel PCH HDMI/DP,pcm=7: always reports core events
[     7.180] (**) Option "Device" "/dev/input/event13"
[     7.180] (**) Option "_source" "server/udev"
[     7.184] (II) event13 - HDA Intel PCH HDMI/DP,pcm=7: is tagged by udev as: Switch
[     7.221] (II) event13 - not using input device '/dev/input/event13'.
[     7.221] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=7: Failed to create a device for /dev/input/event13
[     7.222] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=7"
[     7.222] (II) UnloadModule: "libinput"
[     7.223] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event14)
[     7.223] (**) HDA Intel PCH HDMI/DP,pcm=8: Applying InputClass "Elan Touchpad"
[     7.223] (II) Using input driver 'libinput' for 'HDA Intel PCH HDMI/DP,pcm=8'
[     7.223] (**) HDA Intel PCH HDMI/DP,pcm=8: always reports core events
[     7.223] (**) Option "Device" "/dev/input/event14"
[     7.223] (**) Option "_source" "server/udev"
[     7.227] (II) event14 - HDA Intel PCH HDMI/DP,pcm=8: is tagged by udev as: Switch
[     7.265] (II) event14 - not using input device '/dev/input/event14'.
[     7.265] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=8: Failed to create a device for /dev/input/event14
[     7.265] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=8"
[     7.265] (II) UnloadModule: "libinput"
[     7.267] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=9 (/dev/input/event15)
[     7.267] (**) HDA Intel PCH HDMI/DP,pcm=9: Applying InputClass "Elan Touchpad"
[     7.267] (II) Using input driver 'libinput' for 'HDA Intel PCH HDMI/DP,pcm=9'
[     7.267] (**) HDA Intel PCH HDMI/DP,pcm=9: always reports core events
[     7.267] (**) Option "Device" "/dev/input/event15"
[     7.267] (**) Option "_source" "server/udev"
[     7.270] (II) event15 - HDA Intel PCH HDMI/DP,pcm=9: is tagged by udev as: Switch
[     7.315] (II) event15 - not using input device '/dev/input/event15'.
[     7.315] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=9: Failed to create a device for /dev/input/event15
[     7.315] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=9"
[     7.315] (II) UnloadModule: "libinput"
[     7.317] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=10 (/dev/input/event16)
[     7.317] (**) HDA Intel PCH HDMI/DP,pcm=10: Applying InputClass "Elan Touchpad"
[     7.317] (II) Using input driver 'libinput' for 'HDA Intel PCH HDMI/DP,pcm=10'
[     7.317] (**) HDA Intel PCH HDMI/DP,pcm=10: always reports core events
[     7.317] (**) Option "Device" "/dev/input/event16"
[     7.317] (**) Option "_source" "server/udev"
[     7.320] (II) event16 - HDA Intel PCH HDMI/DP,pcm=10: is tagged by udev as: Switch
[     7.368] (II) event16 - not using input device '/dev/input/event16'.
[     7.368] (EE) libinput: HDA Intel PCH HDMI/DP,pcm=10: Failed to create a device for /dev/input/event16
[     7.368] (EE) PreInit returned 2 for "HDA Intel PCH HDMI/DP,pcm=10"
[     7.368] (II) UnloadModule: "libinput"
[     7.370] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event8)
[     7.370] (**) Asus WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[     7.370] (**) Asus WMI hotkeys: Applying InputClass "Elan Touchpad"
[     7.370] (II) Using input driver 'libinput' for 'Asus WMI hotkeys'
[     7.370] (**) Asus WMI hotkeys: always reports core events
[     7.370] (**) Option "Device" "/dev/input/event8"
[     7.370] (**) Option "_source" "server/udev"
[     7.374] (II) event8  - Asus WMI hotkeys: is tagged by udev as: Keyboard
[     7.374] (II) event8  - Asus WMI hotkeys: device is a keyboard
[     7.374] (II) event8  - Asus WMI hotkeys: device removed
[     7.421] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input8/event8"
[     7.422] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 14)
[     7.426] (II) event8  - Asus WMI hotkeys: is tagged by udev as: Keyboard
[     7.426] (II) event8  - Asus WMI hotkeys: device is a keyboard
[     7.428] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[     7.428] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[     7.428] (**) AT Translated Set 2 keyboard: Applying InputClass "Elan Touchpad"
[     7.428] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[     7.428] (**) AT Translated Set 2 keyboard: always reports core events
[     7.428] (**) Option "Device" "/dev/input/event3"
[     7.428] (**) Option "_source" "server/udev"
[     7.432] (II) event3  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[     7.433] (II) event3  - AT Translated Set 2 keyboard: device is a keyboard
[     7.436] (II) event3  - AT Translated Set 2 keyboard: device removed
[     7.455] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[     7.455] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 15)
[     7.460] (II) event3  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[     7.460] (II) event3  - AT Translated Set 2 keyboard: device is a keyboard
[     7.464] (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
[     7.464] (**) PC Speaker: Applying InputClass "Elan Touchpad"
[     7.464] (II) Using input driver 'libinput' for 'PC Speaker'
[     7.464] (**) PC Speaker: always reports core events
[     7.464] (**) Option "Device" "/dev/input/event5"
[     7.464] (**) Option "_source" "server/udev"
[     7.467] (II) event5  - PC Speaker: not tagged as supported input device
[     7.501] (II) event5  - not using input device '/dev/input/event5'.
[     7.502] (EE) libinput: PC Speaker: Failed to create a device for /dev/input/event5
[     7.502] (EE) PreInit returned 2 for "PC Speaker"
[     7.502] (II) UnloadModule: "libinput"
[     8.557] (II) intel(0): EDID vendor "AUO", prod id 25581
[     8.557] (II) intel(0): Printing DDC gathered Modelines:
[     8.557] (II) intel(0): Modeline "1920x1080"x0.0  142.00  1920 2028 2076 2100  1080 1090 1100 1126 -hsync -vsync (67.6 kHz eP)
[     8.557] (II) intel(0): Modeline "1920x1080"x0.0  113.60  1920 2028 2076 2100  1080 1090 1100 1126 -hsync -vsync (54.1 kHz e)
[    13.224] (II) event2  - Power Button: device removed
[    13.244] (II) event4  - Asus Wireless Radio Control: device removed
[    13.305] (II) event9  - Video Bus: device removed
[    13.358] (II) event10 - Video Bus: device removed
[    13.411] (II) event0  - Lid Switch: device removed
[    13.438] (II) event1  - Sleep Button: device removed
[    13.465] (II) event6  - USB Camera: USB Camera: device removed
[    13.555] (II) event7  - Elan Touchpad: device removed
[    13.608] (II) event8  - Asus WMI hotkeys: device removed
[    13.665] (II) event3  - AT Translated Set 2 keyboard: device removed
[    13.688] (II) AIGLX: Suspending AIGLX clients for VT switch
[   119.053] (II) UnloadModule: "libinput"
[   119.053] (II) UnloadModule: "libinput"
[   119.053] (II) UnloadModule: "libinput"
[   119.053] (II) UnloadModule: "libinput"
[   119.054] (II) UnloadModule: "libinput"
[   119.054] (II) UnloadModule: "libinput"
[   119.054] (II) UnloadModule: "libinput"
[   119.054] (II) UnloadModule: "libinput"
[   119.054] (II) UnloadModule: "libinput"
[   119.054] (II) UnloadModule: "libinput"
[   119.087] (II) Server terminated successfully (0). Closing log file.

Last edited by teffysam (2021-01-12 04:15:46)

Offline

#2 2021-01-06 14:49:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,024

Re: Xrandr shows incorrect DisplaySize for external monitor

Looks like an optimus setup and the HDMI is likely wired to the nvidia chip?
Please elaborate on the configuration and post your xorg log as well as the complete output of "xrandr -q"
The nvidia driver supports eg. (physical DPI is ~92)

Section "Device"
	Driver	"nvidia"
	Option  "DPI"					"96x96"
	Option	"UseEdidDpi"			"False"
EndSection

Online

#3 2021-01-06 14:49:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,091

Re: Xrandr shows incorrect DisplaySize for external monitor

The names you use for the monitors may be incorrect*, post what seth asked .



* xorg monitor names usually have dashes in them and often additonal letters
example : DisplayPort-1 , HDMI-A-0 .

Last edited by Lone_Wolf (2021-01-06 14:50:53)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2021-01-06 15:58:47

teffysam
Member
Registered: 2018-07-20
Posts: 5

Re: Xrandr shows incorrect DisplaySize for external monitor

Sorry should have mentioned its my laptop and I only use Intel graphics, haven't installed the Nvidia drivers. Or are you implying that the HDMI is physically connected (possibly?) to the laptop's Nvidia GPU and that this might be the cause? Anyway, I edited  my intel.conf file, this didn't fix the issue though.

~$ more /etc/X11/xorg.conf.d/20-intel.conf

Section "Device"
        Option     "AccelMethod"        	"SNA"
	Option     "TearFree"           	"true"# [<bool>]
    	Option     "DPI"			"96x96"
	Option	"UseEdidDpi"			"False"
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection
seth wrote:

Looks like an optimus setup and the HDMI is likely wired to the nvidia chip?
Please elaborate on the configuration and post your xorg log as well as the complete output of "xrandr -q"
The nvidia driver supports eg. (physical DPI is ~92)

Section "Device"
	Driver	"nvidia"
	Option  "DPI"					"96x96"
	Option	"UseEdidDpi"			"False"
EndSection

Last edited by teffysam (2021-01-06 15:59:31)

Offline

#5 2021-01-06 16:04:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,024

Re: Xrandr shows incorrect DisplaySize for external monitor

Do you disable the dedicated GPU in the BIOS?
Please post the requested outputs and file.

The intel or modesetting driver won't respect those options, afaics they're nvidia-only.

Online

#6 2021-01-06 16:17:35

teffysam
Member
Registered: 2018-07-20
Posts: 5

Re: Xrandr shows incorrect DisplaySize for external monitor

I had updated my post with the outputs, but I'll add it here too. To answer your question I cannot disable GPU in the BIOS, my laptop model is the Asus R558UF or Asus X556UF and it does not have option to do so unfortunately.

The xrandr -q output

The Xorg log file

seth wrote:

Do you disable the dedicated GPU in the BIOS?
Please post the requested outputs and file.

The intel or modesetting driver won't respect those options, afaics they're nvidia-only.

Offline

#7 2021-01-06 16:35:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,024

Re: Xrandr shows incorrect DisplaySize for external monitor

The nvidia GPU is ignored in that log and it looks like HDMI2 is wired to the intel chip (lspci probably shows the nvidia chip to be a 3D device, not a VGA one? The hdmi-on-nvidia is just common, not universal)
In addition the HDMI2 output doesn't look to be configured in that log either?

Best workaround would be to skip the positioning in the config and do that w/ an xrandr call when starting the session.
It's a bit weird though…

Online

#8 2021-01-06 16:47:16

teffysam
Member
Registered: 2018-07-20
Posts: 5

Re: Xrandr shows incorrect DisplaySize for external monitor

Yes that's correct

~$ lspci | grep -i  'vga\|3d'
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 930M] (rev a2)
seth wrote:

The nvidia GPU is ignored in that log and it looks like HDMI2 is wired to the intel chip (lspci probably shows the nvidia chip to be a 3D device, not a VGA one? The hdmi-on-nvidia is just common, not universal)
In addition the HDMI2 output doesn't look to be configured in that log either?

Okay I will try this, it's funny because before the issue persisted I was calling xrandr in my .xinitrc and wasn't using #-monitor.conf. Back then there were no issues with Zoom, where it looked normal sized on both displays...
EDIT: tried, it doesn't work either. I will think about rolling back to an older kernel version just to check and as a last option go back to using Gnome if nothing else works. Thank you so much for your time.

if [[ $(xrandr | grep HDMI2 | awk '{print $2}') == 'connected' ]]; then
  xrandr --output eDP1 --auto --left-of HDMI2
  fi

Best workaround would be to skip the positioning in the config and do that w/ an xrandr call when starting the session.
It's a bit weird though…

Last edited by teffysam (2021-01-06 16:54:06)

Offline

Board footer

Powered by FluxBB