RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 863669 - xdpyinfo getting wrong screen dimensions and dpi
Summary: xdpyinfo getting wrong screen dimensions and dpi
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: xorg-x11-server
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Adam Jackson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 960058
TreeView+ depends on / blocked
 
Reported: 2012-10-06 14:00 UTC by Daniel Maia
Modified: 2013-05-10 17:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-10 17:33:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
xorg.conf (1.49 KB, text/plain)
2012-10-06 14:01 UTC, Daniel Maia
no flags Details

Description Daniel Maia 2012-10-06 14:00:38 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120829 Firefox/10.0.7
Build Identifier: 

I have a Dell Precision M4600 notebook with a Nvidia Quadro 2000M graphic card.

My problem is that xdpyinfo is getting wrong values:
screen #0:
  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  
   1680x1050      60.0  
   1400x1050      60.0  
   1280x1024      59.9  
   1280x960       59.9  
   ...

Reproducible: Always

Steps to Reproduce:
1.xdpyinfo | grep -B2 resolution
2.xrandr
3.


Expected Results:  
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.

Comment 1 Daniel Maia 2012-10-06 14:01:57 UTC
Created attachment 622717 [details]
xorg.conf

Comment 3 Adam Jackson 2012-10-10 13:54:27 UTC
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.

Comment 4 Daniel Maia 2012-10-10 16:21:07 UTC
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.

Comment 5 Tomas Pelka 2013-05-09 12:30:54 UTC
(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?

Thanks
Tom

Comment 6 Adam Jackson 2013-05-10 17:33:38 UTC
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:

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
    Option         "Monitor-LVDS-1" "Monitor0"
EndSection

Please reopen if that doesn't fix this for you.


Note You need to log in before you can comment on or make changes to this bug.