Bug 1186120

Summary: xdpyinfo claims my notebook screen is 1016x571 millimeters
Product: [openSUSE] openSUSE Tumbleweed Reporter: Gerald Pfeifer <gp>
Component: X.OrgAssignee: Gfx Bugs <gfx-bugs>
Status: VERIFIED WONTFIX QA Contact: Gfx Bugs <gfx-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Gerald Pfeifer 2021-05-17 10:29:00 UTC
% xdpyinfo | grep -C2 dimensions

screen #0:
  dimensions:    3840x2160 pixels (1016x571 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32

That would make quite a beast, more than a meter wide and half a meter tall.
I could ignore it, but this may be related to bug #1183425 and similar.

hwinfo --monitor, on the other hand, has this right:

30: None 00.0: 10002 LCD Monitor                                
  [Created at monitor.125]
  Unique ID: rdCR.imMygHf6Rb7
  Parent ID: _Znp.i2w32MX5d21
  Hardware Class: monitor
  Model: "BOE HF LCD Monitor"
  Vendor: BOE "BOE HF"
  Device: eisa 0x07c8 
  Resolution: 3840x2160@60Hz
  Size: 309x174 mm
  Year of Manufacture: 2018
  Week of Manufacture: 1
  Detailed Timings #0:
     Resolution: 3840x2160
     Horizontal: 3840 3888 3920 4000 (+48 +80 +160) -hsync
       Vertical: 2160 2163 2168 2222 (+3 +8 +62) +vsync
    Frequencies: 426.62 MHz, 106.66 kHz, 48.00 Hz
  Year of Manufacture: 2018
  Week of Manufacture: 1
  Detailed Timings #1:
     Resolution: 3840x2160
     Horizontal: 3840 3888 3920 4000 (+48 +80 +160) -hsync
       Vertical: 2160 2163 2168 2222 (+3 +8 +62) +vsync
    Frequencies: 533.28 MHz, 133.32 kHz, 60.00 Hz
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #26 (VGA compatible controller)
Comment 1 Stefan Dirsch 2021-05-17 11:47:04 UTC
Forget about what xdpyinfo tells you. Better check with xrandr.

On my laptop

# xdpyinfo |grep -C2 dimensions

screen #0:
  dimensions:    1920x1080 pixels (508x285 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32

# xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
[...]

Frameworks like Qt have optimizations for this ...
Comment 2 Gerald Pfeifer 2021-05-17 14:58:55 UTC
(In reply to Stefan Dirsch from comment #1)
> Forget about what xdpyinfo tells you. Better check with xrandr.

Thanks for the hint.

  % zypper rm xdpyinfo

Might it be an option to drop xdpyinfo from Tumbleweed?
Comment 3 Stefan Dirsch 2021-05-17 15:09:46 UTC
I'm afraid somebody will complain. More than users who complain about the wrong monitor size. I could patch xdpyinfo and just remove the size, but this may break super old scripts. Who knows ... whatever you do it will be wrong. So better don't touch ...