modesetting driver sets incorrect DPI
Submitted by Eugene Shalygin
Assigned to Xorg Project Team
Description
Gentoo switched from xf86-video-intel to the modesetting driver, so did my machine. With this driver X sets screen DPI incorrectly (xf86-video-intel does this correctly), while xrandr reports correct screen size.
$ xrandr | grep eDP eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
which is the correct size.
$ grep "Image Size" /var/log/Xorg.0.log [ 632.157] (II) modeset(0): Max Image Size [cm]: horiz.: 38 vert.: 21 [ 632.157] (II) modeset(0): clock: 140.5 MHz Image Size: 382 x 215 mm [ 632.157] (II) modeset(0): clock: 92.5 MHz Image Size: 382 x 215 mm
which is also correct, but: $ xdpyinfo | grep -E "dime|reso" dimensions: 1920x1080 pixels (508x285 millimeters) resolution: 96x96 dots per inch