DPI set to wrong value
Submitted by Matwey V. Kornilov
Assigned to Xorg Project Team
Link to original bug (#101963)
Description
Created attachment 133102 Xorg.0.log
Hello,
In the Xorg.log (attached), I see line
[ 3488.168] (==) modeset(0): DPI set to (96, 96)
which is wrong because earlier
[ 3487.981] (II) modeset(0): clock: 138.7 MHz Image Size: 344 x 194 mm [ 3487.981] (II) modeset(0): h_active: 1920 h_sync: 1968 h_sync_end 2000 h_blank_end 2080 h_border: 0
server found correct physical geometry. Proper value for DPI should be around 140, not 96.
Using gdb I found that in my case inside xf86SetDpi() the following happens:
(gdb) print pScrn->monitor->widthmm $3 = 0 (gdb) print pScrn->monitor->heightmm $4 = 0 (gdb) print pScrn->monitor->DDC $5 = (void *) 0x0
Probably, correct values are lost somewhere in the middle.
Attachment 133102, "Xorg.0.log":
Xorg.0.log