Red Hat Bugzilla – Bug 863669
xdpyinfo getting wrong screen dimensions and dpi
Last modified: 2013-05-10 13:33:38 EDT
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120829 Firefox/10.0.7
I have a Dell Precision M4600 notebook with a Nvidia Quadro 2000M graphic card.
My problem is that xdpyinfo is getting wrong values:
dimensions: 1920x1080 pixels (508x286 millimeters)
resolution: 96x96 dots per inch
I tried to force the correct DisplaySize in the /etc/X11/xorg.conf file but it was not respected. My xorg.conf file is attached.
Curiously enough, the correct values are detected by xrandr command:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 59.9*+ 60.0 39.9
Steps to Reproduce:
1.xdpyinfo | grep -B2 resolution
xdpyinfo would get correct screen dimensions and dpi or at least respect the DisplaySize informed in xorg.conf
I tried to install nvidia proprietary driver but it also presented the same mistake. I later uninstalled nvidia proprietary driver and came back to the default nouveau driver.
Created attachment 622717 [details]
Yes, xdpyinfo will lie. It has to. That DPI number is sent once at X client connection time and there's no way to refresh it if the monitor configuration changes. It's also _one_ number, which means it can't help but be a lie if you have multiple displays connected.
The DPI values in xrandr are computed from the EDID of the attached display device, which means they can be (and apparently are) correct per-output.
DisplaySize being ignored is probably a bug though.
Could you please confirm if the DisplaySize is really being ignored (so a bug) or if it is just my xorg.conf that is not properly written?
I am trying without sucess to make nvidia-settings recognize the correct display size and maybe I should just quit if it is really a bug.
(In reply to comment #4)
> Could you please confirm if the DisplaySize is really being ignored (so a
> bug) or if it is just my xorg.conf that is not properly written?
> I am trying without sucess to make nvidia-settings recognize the correct
> display size and maybe I should just quit if it is really a bug.
Adam could you please reply Daniels question and probably close this issue?
In RANDR 1.2 the Monitor keyword in the Screen section doesn't really mean anything anymore. You need to associate Monitors with specific outputs in the Device section:
Option "Monitor-LVDS-1" "Monitor0"
Please reopen if that doesn't fix this for you.