https://bugs.kde.org/show_bug.cgi?id=486585
--- Comment #2 from Jakub Piecuch <j.piecuc...@gmail.com> ---
I dug into how the X server determines the monitor's physical size and it
appears that the logic is as follows:
1. Find the first detailed timing section with sane physical width and height
(the code sanity checks the aspect ratio) and use that as the monitor's width
and height [1].
2. If no such section was found, fall back to using the width and height from
the "Basic Display Parameters & Features" section [2].

Therefore, it makes sense that the X server reports the correct physical size
for my laptop's built-in display.

[1]
https://gitlab.freedesktop.org/xorg/xserver/-/blob/069ad69efe166105b8d2280bf2fb217d522b68a9/hw/xfree86/modes/xf86Crtc.c#L3175
[2]
https://gitlab.freedesktop.org/xorg/xserver/-/blob/069ad69efe166105b8d2280bf2fb217d522b68a9/hw/xfree86/modes/xf86Crtc.c#L3299

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to